Jan 29, 2012
7
0
51
cPanel Access Level
Root Administrator
Hello,
My PHP handler is configured to use fastcgi.

When I access a page hosted on my vps, it takes about 20~30 seconds to get a response from the server, and so begin loading. After that, the site opens normally and everything works perfectly. After a while without anyone accessing the site, the php process is terminated/killed, and if the site is accessed again, the delay to start loading happens again.

This problem could be something wrong with my hard drives?

I use Apache as webserver.
I've tried using nginx as a proxy server, and there were no changes, just a smaller memory footprint.

I opened a support ticket in the cPanel but got no solutions yet.

My VPS has 8 cores, Intel (R) Xeon (R) [email protected] CPU, 6GB DDR3, HDD 750GB, 7200 rpm, OpenVZ.
My load average is maintained in most cases, below 1.
The maximum memory consumption is about 20%.
There is no problem with the internet connection.
My I / O = 0 (highest priority).
Any other VPS on the same server works normally.

I am installing litespeed as webserver right now, but without much hope ..

Can anyone help me?

Thank you,
Vinicius Munich

EDIT: Litespeed installed .. In relation to the delay in starting to open the site, nothing has changed ... I'm running out of alternatives :/

EDIT2: My Includes:

pre_main_global.conf
<IfModule mod_fcgid.c>
FcgidMaxRequestLen 1073741824
</IfModule>
pre_virtualhost_global.conf
MaxRequestLen 20000000
FcgidMaxRequestLen 1073741824

# Fastcgi configuration for PHP5 - pre_main_global.conf
LoadModule fcgid_module modules/mod_fcgid.so
FcgidMaxRequestsPerProcess 10000
FcgidConnectTimeout 70
FcgidIOTimeout 1000
AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtml
#FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml

# PHP configuration pre_main_global.conf
post_virtualhost_global.conf
# mod_fcgid settings v2.36 post_virtualhost_global.conf
<IfModule mod_fcgid.c>
FcgidIdleTimeout 240
FcgidMaxProcesses 100
FcgidIOTimeout 150
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 20
FcgidMinProcessesPerClass 1

FcgidBusyScanInterval 90
FcgidBusyTimeout 600
FcgidErrorScanInterval 3
FcgidFixPathinfo 1
FcgidMaxProcessesPerClass 60
FcgidMaxRequestInMem 268435456
FcgidMaxRequestLen 1073741824
FcgidMaxRequestsPerProcess 0
FcgidOutputBufferSize 1048576
FcgidPassHeader HTTP_AUTHORIZATION
FcgidProcessLifeTime 500
FcgidSpawnScore 1
FcgidSpawnScoreUpLimit 10
FcgidTerminationScore 2
FcgidTimeScore 2
FcgidZombieScanInterval 3
</IfModule>
:/
 
Last edited:

fosterdv

Registered
Oct 16, 2010
3
0
51
I was actually wondering the same thing qwershops asked. I know I had some issues with some Wordpress sites, loading very slow and everything, but that was something to do with the installation of Wordpress. All of my sites load pretty fast.

Is this still an issue for you, and what type of sites are you running into these issues with?
 

srpurdy

Well-Known Member
Jun 1, 2011
101
0
66
cPanel Access Level
Root Administrator
Check your resolv.conf it's possible that the ip addresses your using for DNS is not correct and that is causing a delay to getting to your site. If this is for all sites on the vps box than that could be the problem.

20-30 second delay is not normal.
Since your on a VPS also check that your not using too much resources and run cat /proc/user_beancounters see if you have any problems there.

Shawn