Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 25 Oct 2008, 18:50
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Unhappy Server unresponsive - Any ideas?

Lately, many users were complaining about the site being slow (I also experienced such issues myself).

We installed microstats and found out that the problem is that those times that the page takes a long time to load, its because of PHP, and not mySQL (for instance: Page generated in 29,596240 seconds (99,26% PHP - 0,74% MySQL) with 25 queries).

If it was mySQL, it would be easier to troubleshoot it and find out which queries are slow. But how do I proceed now, that PHP is the problem?

Note: It doesn't happen every time a page is loaded, but some of the times.
Reply With Quote
  #2  
Old 25 Oct 2008, 19:50
Shamil. Shamil. is offline
 
Join Date: Sep 2008
Can you give us more information e.g, shared server, VPS, dedicated. Processor type/power, RAM. What Web Server software, e.g Apache/nginx etc.
Reply With Quote
  #3  
Old 25 Oct 2008, 20:54
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
I'm sorry, you're right, I should have provided more information.
The server is a dedicated server at rackspace.
  • Memory: 6 GB DDR RAM
  • Hard Drive: 250GB SATA
  • Hard Drive: 250GB SATA
  • Whitebox Server: Dual Socket Dual Core AMD Opteron 2214HE
  • Linux OS: Red Hat Enterprise Linux 5 - 64 bit
The web server software is Apache.

--------------- Added 25 Oct 2008 at 20:57 ---------------

By the way, when I disabled hooks (for myself only) it was still slow sometimes, even though the page generation time (provided by debug mode) was much less.

Last edited by Lea Verou; 25 Oct 2008 at 20:57. Reason: Auto-Merged DoublePost
Reply With Quote
  #4  
Old 25 Oct 2008, 21:15
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Have you already posted in the Server Configuration forum over at vb.com to get your server optimized?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 25 Oct 2008, 22:25
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by Lynne View Post
Have you already posted in the Server Configuration forum over at vb.com to get your server optimized?
No, should I?
Reply With Quote
  #6  
Old 25 Oct 2008, 23:23
azn_romeo_4u azn_romeo_4u is offline
 
Join Date: Feb 2006
Update your php maybe? Have you check your server error logs? Installed any mods lately?
Reply With Quote
  #7  
Old 26 Oct 2008, 00:07
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by Michelle View Post
No, should I?
I would recommend it. They have helped me get each of my servers running well (we've moved servers or changed configurations a few times over the years).
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #8  
Old 26 Oct 2008, 10:50
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by azn_romeo_4u View Post
Update your php maybe? Have you check your server error logs? Installed any mods lately?
PHP is quite up to date (version 5.2.x). I haven't installed any mods lately (but I'm constantly adding some of my own). Nothing weird in the server error logs.

@Lynne: Thanks, I'll give it a try!
Reply With Quote
  #9  
Old 26 Oct 2008, 12:05
Angel-Wings's Avatar
Angel-Wings Angel-Wings is offline
 
Join Date: Sep 2007
Hmmm - maybe some PHP issues.

Can you copy the board to a test environment enabling the PHP error reporting in case there's something wrong ?
Reply With Quote
  #10  
Old 26 Oct 2008, 14:51
Shamil. Shamil. is offline
 
Join Date: Sep 2008
What's your RAM usage? Try doing a grep command
Reply With Quote
  #11  
Old 28 Oct 2008, 01:16
kermit2 kermit2 is offline
 
Join Date: Jun 2008
Are you able to identifiy if it's particular pages that take a long time to load?

Obviously there are things like xcache and eaccelerator, but with PHP times that high there must be a bigger underlying problem. Might be worth running vmstat and seeing what's going on when the pages are taking a long time to load
Reply With Quote
  #12  
Old 28 Oct 2008, 11:54
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Please start by posting in the Server Configuration forum on vB.com.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #13  
Old 28 Oct 2008, 16:56
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
Originally Posted by Marco van Herwaarden View Post
Please start by posting in the Server Configuration forum on vB.com.
I did, when Lynne told me so.

Originally Posted by kermit2 View Post
Are you able to identifiy if it's particular pages that take a long time to load?

Obviously there are things like xcache and eaccelerator, but with PHP times that high there must be a bigger underlying problem. Might be worth running vmstat and seeing what's going on when the pages are taking a long time to load
Its not particular pages. It happens randomly, on random pages and it happens more frequently during peak hours.
Originally Posted by ct2k7 View Post
What's your RAM usage? Try doing a grep command
Its usually 1,3GB - 1,8GB (out of 6)
Originally Posted by Angel-Wings View Post
Hmmm - maybe some PHP issues.

Can you copy the board to a test environment enabling the PHP error reporting in case there's something wrong ?
Wouldn't that show up in the error logs?
Also wouldn't it occur in specific pages, all the time, if that was the problem?
Reply With Quote
  #14  
Old 28 Oct 2008, 19:44
mandogon's Avatar
mandogon mandogon is offline
 
Join Date: Aug 2006
Real name: Armando
cant you post the phpinfo page ?

mine looks like this - http://disputeclaims.org/phpinfo.php
Reply With Quote
  #15  
Old 28 Oct 2008, 21:42
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Real name: Lea Verou
I was asked for this at vb.com as well but I was hesitant to post it due to security reasons. Anyway, since I seem to be the only one with similar hesitations, here it is:
http://www.e-steki.gr/test.php
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Linux] loadsock (retrieve server load from remote server) fastforward vBulletin 2.x Full Releases 5 18 Mar 2002 11:55



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:56.

Layout Options | Width: Wide Color: