LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-11-2012, 03:16 AM   #1
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Rep: Reputation: Disabled
plesk httpd service getting down after every 2 to 3 hours


plesk 9.5 httpd service getting down after every 2 to 3 hours
It is a shared hosting server.
 
Old 07-11-2012, 08:40 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,232
Blog Entries: 27

Rep: Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332Reputation: 5332
I suspect that questions about this would best be directed to Plesk, as it's a commercial product. http://www.parallels.com/products/plesk/

If you want more assistance from us, you would need to provide lots more information about what's going on.
 
Old 07-13-2012, 06:25 AM   #3
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Original Poster
Rep: Reputation: Disabled
I have installed Plesk 9.5 on centos , but from last few days
I need to restart httpd service more than 10 times in a single day. It is a VPS hosted only
28 domains.

Here are the httpd error_log file content at the time it shows httpd is down.

[Fri Jul 13 15:52:35 2012] [notice] mod_bw : Memory Allocated 0 bytes (each conf takes 28 bytes)
[Fri Jul 13 15:52:35 2012] [notice] mod_bw : Version 0.8 - Initialized [0 Confs]
[Fri Jul 13 15:52:35 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Fri Jul 13 15:52:35 2012] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads.
[Fri Jul 13 15:52:35 2012] [notice] Apache configured -- resuming normal operations
[Fri Jul 13 15:53:51 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting

Is any one can help me to resolve this .

Thanks
 
Old 07-13-2012, 09:46 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by Anup D. View Post
I have installed Plesk 9.5 on centos , but from last few days I need to restart httpd service more than 10 times in a single day. It is a VPS hosted only 28 domains.

Here are the httpd error_log file content at the time it shows httpd is down.

[Fri Jul 13 15:52:35 2012] [notice] mod_bw : Memory Allocated 0 bytes (each conf takes 28 bytes)
[Fri Jul 13 15:52:35 2012] [notice] mod_bw : Version 0.8 - Initialized [0 Confs]
[Fri Jul 13 15:52:35 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
[Fri Jul 13 15:52:35 2012] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads.
[Fri Jul 13 15:52:35 2012] [notice] Apache configured -- resuming normal operations
[Fri Jul 13 15:53:51 2012] [error] server reached MaxClients setting, consider raising the MaxClients setting

Is any one can help me to resolve this .
Did you read what you posted??? Specifically, pay attention to the line bolded above. It's telling you it reached the MaxClients setting, and even told you to raise it. Did you??

And again, Plesk is a commercial product that you're paying for...contact Plesk tech support.
 
Old 07-14-2012, 06:04 AM   #5
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.
Here are the httpd.conf file content. Please tell me to which no. I raise it.

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 300
MaxClients 300
MaxRequestsPerChild 4000
</IfModule>


<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
 
Old 07-14-2012, 02:18 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,657

Rep: Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911Reputation: 6911
Quote:
Originally Posted by Anup D. View Post
Thanks for your reply.
Here are the httpd.conf file content. Please tell me to which no. I raise it.
Again, Plesk is commercial, pay-for software. You should contact them for support, since you are paying for it. And again, the error is clear, you raise the MaxClients line. You don't say where what you posted came from, but if you tried to look up this error (or contacted support), you'd see the likely place to change it is /etc/httpd/conf.d/swtune.conf.
 
Old 07-20-2012, 12:04 AM   #7
Anup D.
LQ Newbie
 
Registered: Jan 2012
Location: Nanded
Distribution: RHEL
Posts: 25

Original Poster
Rep: Reputation: Disabled
I increased MaxClient value in swtune.conf

and it's solved the issue.

Thank you
 
  


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
DHCP works but the service keeps stopping every few hours michael.smith Linux - Networking 4 02-02-2010 12:22 PM
HTTPD service Uttam Shrestha Rana Linux - Server 2 12-10-2007 11:16 AM
Plesk httpd.include help DropHit Linux - Software 2 02-14-2005 12:47 PM
Plesk httpd.include help DropHit Linux - Software 1 02-14-2005 09:18 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:41 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
Open Source Consulting | Domain Registration