LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-11-2013, 09:10 PM   #1
dch921
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
Tons of PHP processes on CENTOS 6.4 x86_64


I have had a dedicated sever with hostgator running CENTOS 6.4 x86_64 and using fcgi-php. Its been up and running 1 site for about 2 months now. Just migrated another user from shared hosting to the dedicated server and now that user is bring to server to a crawl. Their site is a wordpress blog with maybe 30K pageviews a month.

When I ssh into the server I am seeing 20 - 40 php processes running. These are eating up all the system resources to the point of making the server nearly unresponsive forcing me to reboot the server.

I have tried to limit the number of processes running by that user using /etc/security/limits.conf which doesn't seem to make a different.

I have search and search the web and tried changing fcgi configurations to limit the processes also with no help.

I'm not sure how to track down what is causing all these php processes to pop up and how to prevent it. Any help would be great.
 
Old 07-12-2013, 02:44 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,550

Rep: Reputation: 137Reputation: 137
Maybe you better run PHP as an apache module instead? I found some info regarding this topic. Hope this helps...

http://wpguru.co.uk/2012/02/the-prob...i-application/

Cite from that site:
Quote:
The Solution

The reason this seems to be happening is that FastCGI is running low on memory. By default the Apache configuration does not include a statement to allocate enough memory, but we can do this by adding the following line to httpd.conf (thanks to Baldock for this tip):

FcgidMaxRequestLen 33554432

Restart Apache with “service httpd restart” and all your troubles go away.
Cheers,
j

Last edited by j-ray; 07-12-2013 at 02:48 AM. Reason: added the cite
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: CentOS-announce Release for CentOS-6.4 i386 and x86_64 LXer Syndicated Linux News 0 03-09-2013 04:50 PM
[SOLVED] CentOS: php-devel-5.1.6-32.el5.x86_64 from base has depsolving problems lrtward Linux - Server 7 03-23-2012 12:05 PM
LXer: CentOS-announce Release for CentOS-5.6 i386 and x86_64 LXer Syndicated Linux News 0 04-09-2011 06:00 AM
[SOLVED] Trying to test PHP connectivity to Postgresql 8.3.9 (CentOS 5.5 x86_64) kapshure Linux - Newbie 9 08-06-2010 05:20 PM
LXer: Xen 3.2 on CentOS 5.2 x86_64 / RHEL 5.2 x86_64 LXer Syndicated Linux News 0 07-12-2008 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration