Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Where is the bottleneck?
PostPosted: Fri Jan 11, 2013 10:36 am 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I have a bottleneck. Using debian linux with drupal site. Problem is with non cached administration pages of site. They take too long to load. I just tested the page and only to generate text/html file it takes 5.7 seconds and this is without other css/images that take another 3 seconds at least. So this is pretty slow and it is 23 kb html. I do see that my query takes a lot to process.

Query is Executed 175 queries in 103.69 ms. Queries exceeding 5 ms are highlighted. Page execution time was 5200.81 ms. Memory used at: devel_boot()=2.7 MB, devel_shutdown()=53.83 MB, PHP peak=54.5 MB.

So I am wondering where does this 5 seconds go to, who is to blame? Is it CPU and if so is there any way to make it faster other then to upgrade linode (I have 2GB linode)?


Top
   
PostPosted: Fri Jan 11, 2013 12:59 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
With Drupal and other similar software it's a good idea to debug performance problems by disabling modules one by one until performance improves. It could be there's a serious cpu hog module in there, 5 seconds is a fairly long time though, are there any modules that are accessing external APIs? A slow network call could easily account for a 5s delay.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Fri Jan 11, 2013 3:58 pm 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
Is there some other way I could do this, to messure somehow?
This would be pretty slow way to determin the problem, disabling modules and also I can't disable most as I need them and also I do have other sites on server so the respons is also changing when there is more load. Advise me how to do some testing?


Top
   
PostPosted: Fri Jan 11, 2013 4:03 pm 
Offline
Senior Newbie

Joined: Thu May 26, 2011 8:24 pm
Posts: 11
You could install xhprof on the webserver and hit that page with profiling turned on, then you could look at the call graph to see what functions are taking so long.

That said I would imagine its almost certainly DB related in some way or another.


Top
   
PostPosted: Fri Jan 11, 2013 4:32 pm 
Offline
Senior Member

Joined: Tue Sep 13, 2011 7:13 am
Posts: 67
I'll try xhprof.


Top
   
PostPosted: Fri Jan 11, 2013 4:42 pm 
Offline
Senior Newbie

Joined: Thu May 26, 2011 8:24 pm
Posts: 11
There's actually a module for it. http://drupal.org/project/XHProf (I haven't used it so ymmv)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group