Welcome Guest, Not a member yet? Register   Sign In
Incredibly Slow CodeIgniter Application
#12

[eluser]manasrawat[/eluser]
Hi,
My application is crazy slow too. Sometimes It takes close to a minute to load.
I did not know about profiler - so I put log_message('debug','function start/end') type steps in the app to do the job.
But I am unable to pin point the error.
In my logs, I see that the app takes many seconds (from 4 to 55) in the step "Config class initialized". Some sample lines from the log file are as under. I am a total CI newbie. Can any one recommend how I should go about troubleshooting this?

Code:
DEBUG - 2013-04-01 11:46:39 --> M5 dashboard view  sendMessage js function end
DEBUG - 2013-04-01 11:46:39 --> M5 dashboard view  sendChat js function start
DEBUG - 2013-04-01 11:46:39 --> M5 dashboard view  sendChat js function end
DEBUG - 2013-04-01 11:46:39 --> File loaded: application/views/dashboard/dashboard.php
DEBUG - 2013-04-01 11:46:39 --> File loaded: application/views/layouts/footer.php
DEBUG - 2013-04-01 11:46:42 --> Final output sent to browser
DEBUG - 2013-04-01 11:46:42 --> Total execution time: 0.1384
DEBUG - 2013-04-01 11:46:51 --> Config Class Initialized
DEBUG - 2013-04-01 11:46:51 --> Hooks Class Initialized
DEBUG - 2013-04-01 11:46:51 --> URI Class Initialized
DEBUG - 2013-04-01 11:46:51 --> Router Class Initialized
DEBUG - 2013-04-01 11:46:51 --> Output Class Initialized
DEBUG - 2013-04-01 11:46:51 --> Input Class Initialized

Code:
DEBUG - 2013-04-01 11:47:01 --> M5 dashboard controller  checkGuardian function start
DEBUG - 2013-04-01 11:47:01 --> M5 dashboard controller  checkGuardian function end
DEBUG - 2013-04-01 11:47:01 --> M5 dashboard controller  getProfileDetails function end
DEBUG - 2013-04-01 11:47:01 --> Final output sent to browser
DEBUG - 2013-04-01 11:47:01 --> Total execution time: 0.1145
DEBUG - 2013-04-01 11:47:05 --> Config Class Initialized
DEBUG - 2013-04-01 11:47:05 --> Hooks Class Initialized
DEBUG - 2013-04-01 11:47:05 --> URI Class Initialized

Code:
DEBUG - 2013-04-01 00:10:00 --> File loaded: application/views/layouts/header.php
DEBUG - 2013-04-01 00:10:00 --> File loaded: application/views/login.php
DEBUG - 2013-04-01 00:10:00 --> File loaded: application/views/layouts/footer.php
DEBUG - 2013-04-01 00:10:00 --> Final output sent to browser
DEBUG - 2013-04-01 00:10:00 --> Total execution time: 0.0735
DEBUG - 2013-04-01 00:10:48 --> Config Class Initialized
DEBUG - 2013-04-01 00:10:48 --> Hooks Class Initialized
DEBUG - 2013-04-01 00:10:48 --> URI Class Initialized

Code:
DEBUG - 2013-04-01 00:14:33 --> File loaded: application/views/layouts/header.php
DEBUG - 2013-04-01 00:14:33 --> File loaded: application/views/login.php
DEBUG - 2013-04-01 00:14:33 --> File loaded: application/views/layouts/footer.php
DEBUG - 2013-04-01 00:14:33 --> Final output sent to browser
DEBUG - 2013-04-01 00:14:33 --> Total execution time: 0.1434
DEBUG - 2013-04-01 00:14:43 --> Config Class Initialized
DEBUG - 2013-04-01 00:14:43 --> Hooks Class Initialized
DEBUG - 2013-04-01 00:14:43 --> URI Class Initialized
DEBUG - 2013-04-01 00:14:43 --> Router Class Initialized

Code:
DEBUG - 2013-04-01 11:47:05 --> M5 dashboard controller  recommendationUpdateAjax function start
DEBUG - 2013-04-01 11:47:05 --> M5 dashboard controller  recommendationUpdate function start
DEBUG - 2013-04-01 11:47:05 --> M5 dashboard controller  recommendationUpdate function end
DEBUG - 2013-04-01 11:47:05 --> M5 dashboard controller  recommendationUpdateAjax function end
DEBUG - 2013-04-01 11:47:05 --> Final output sent to browser
DEBUG - 2013-04-01 11:47:05 --> Total execution time: 0.0723
DEBUG - 2013-04-01 11:48:00 --> Config Class Initialized
DEBUG - 2013-04-01 11:48:00 --> Hooks Class Initialized
DEBUG - 2013-04-01 11:48:00 --> URI Class Initialized

Can anyone please help?


Messages In This Thread
Incredibly Slow CodeIgniter Application - by El Forum - 03-28-2013, 02:34 PM
Incredibly Slow CodeIgniter Application - by El Forum - 03-28-2013, 04:08 PM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 12:59 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 09:07 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 09:47 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 10:43 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 11:01 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 11:15 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 11:20 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 11:25 AM
Incredibly Slow CodeIgniter Application - by El Forum - 03-29-2013, 11:30 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 12:00 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 02:43 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 04:28 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 04:39 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 04:39 AM
Incredibly Slow CodeIgniter Application - by El Forum - 04-01-2013, 04:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB