vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Server unresponsive - Any ideas? (https://vborg.vbsupport.ru/showthread.php?t=194535)

Lea Verou 10-25-2008 04:50 PM

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.

Shamil. 10-25-2008 05:50 PM

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.

Lea Verou 10-25-2008 06:54 PM

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 [DATE]1224964644[/DATE] at [TIME]1224964644[/TIME] ---------------

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. :confused:

Lynne 10-25-2008 07:15 PM

Have you already posted in the Server Configuration forum over at vb.com to get your server optimized?

Lea Verou 10-25-2008 08:25 PM

Quote:

Originally Posted by Lynne (Post 1652601)
Have you already posted in the Server Configuration forum over at vb.com to get your server optimized?

No, should I?

azn_romeo_4u 10-25-2008 09:23 PM

Update your php maybe? Have you check your server error logs? Installed any mods lately?

Lynne 10-25-2008 10:07 PM

Quote:

Originally Posted by Michelle (Post 1652630)
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).

Lea Verou 10-26-2008 08:50 AM

Quote:

Originally Posted by azn_romeo_4u (Post 1652653)
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!

Angel-Wings 10-26-2008 10:05 AM

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 ?

Shamil. 10-26-2008 12:51 PM

What's your RAM usage? Try doing a grep command :)

kermit2 10-27-2008 11:16 PM

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

Marco van Herwaarden 10-28-2008 09:54 AM

Please start by posting in the Server Configuration forum on vB.com.

Lea Verou 10-28-2008 02:56 PM

Quote:

Originally Posted by Marco van Herwaarden (Post 1654397)
Please start by posting in the Server Configuration forum on vB.com.

I did, when Lynne told me so. ;)

Quote:

Originally Posted by kermit2 (Post 1654178)
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.
Quote:

Originally Posted by ct2k7 (Post 1653062)
What's your RAM usage? Try doing a grep command :)

Its usually 1,3GB - 1,8GB (out of 6)
Quote:

Originally Posted by Angel-Wings (Post 1652987)
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?

mandogon 10-28-2008 05:44 PM

cant you post the phpinfo page ?

mine looks like this - http://disputeclaims.org/phpinfo.php

Lea Verou 10-28-2008 07:42 PM

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

mandogon 10-28-2008 10:29 PM

This might be a shot in the dark but...

vBulletin 3.7.x supports PHP 5 without any problems, though you may need to disable strict mode for MySQL, see HERE on how to enable 'force_sql_mode'.

kermit2 10-30-2008 12:01 PM

You might want to run vmstat for a while, or keep an eye on things with top or ps too. If you add:

Quote:

if(IPADDRESS == '1.2.3.4') {
$config['Misc']['debug'] = 1;
}
, to the bottom of your config.php (obviously changing 1.2.3.4 to your IP address), you'll get some debugging info too, in particular how long each mysql is taking, and how long PHP spent running

Lea Verou 10-30-2008 12:16 PM

Jesus, I know how to enable debug mode for my IP address! LOL!
And I have done it already, nothing insighful.

ssslippy 10-30-2008 02:51 PM

I see no php cache installed. I recomend you install xcache. Also make sure you have gzip disable in vbulletin you have mod_deflate installed.

lasto 10-30-2008 07:33 PM

so your saying we can go to vb.com and ask them to optimize our server - would there be any benefits for this as im on a dedicated server and tbh never really throught of having it optimised for vb.

Lynne 10-30-2008 07:39 PM

Quote:

Originally Posted by lasto (Post 1656202)
so your saying we can go to vb.com and ask them to optimize our server - would there be any benefits for this as im on a dedicated server and tbh never really throught of having it optimised for vb.

They have a forum where you may request some help optimizing your server. You need to provide a list of information, then George makes some suggestions on what to change.

lasto 10-30-2008 07:43 PM

mine is dedciated but fully managed.But tbh i never ask them anything as i dont know what to ask so i may nip over to vb.com and annoy them over there (sorry i mean Ask :))

Cheers Lynne

SEOvB 10-30-2008 08:03 PM

could it be possible that microstats is reporting an error and your usage really isn't any where near that?

Lea Verou 12-04-2008 01:43 PM

@sssslippy: We have APC installed
@FRDS: Nope, vBulletin's debug mode reports the same.

@All: We had our server optimized and that helped a bit. However the problem persists, just with a slightly smaller frequence. Any ideas? :(


All times are GMT. The time now is 04:08 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01146 seconds
  • Memory Usage 1,764KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete