Jump to content

Recommended Posts

I have PHP5-CGI installed, Apache, and MYSQL installed.

Prior to adding these settings, PHP5-CGI would endlessly have >15 processes, each eating up 5 mb of ram. So I added these settings to /etc/apache2/conf.d/php5-fcgid.conf and the PHP5-cgi processes were limited.

However, now, everytime I open let's say 20 threads/pages in 4 or 5 minutes, the server stops running properly, things freeze and pages stop loading, until 2 or 3 minutes pass by, then it's lightening bolt fast again.

 

AddHandler fcgid-script .fcgi .php

 

# Where to look for the php.ini file?

DefaultInitEnv PHPRC "/etc/php5/cgi"

# Where is the PHP executable

FCGIWrapper /usr/bin/php-cgi .php

# Maximum requests a process handles before it is terminated

MaxRequestsPerProcess 1500

# Maximum number of PHP processes.

MaxProcessCount 15

# Number of seconds of idle time before a process is terminated

IPCCommTimeout 240

IdleTimeout 240

 

ServerLimit 2048

ThreadLimit 100

StartServers 10

MinSpareThreads 30

MaxSpareThreads 100

ThreadsPerChild 64

MaxClients 2048

MaxRequestsPerChild 5000

I am running a website (smf forum) that averages around 450 users per 20 minutes, so it gets a little hectic. So, what's going on?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.