Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-23-2011, 01:17 PM
|
#1
|
LQ Newbie
Registered: Apr 2011
Posts: 5
Rep:
|
Service httpd auto stop
Hi all,
I have VPS and run a website. But every random 10-20 minutes service httpd stop.
My VPS: 768 MB RAM
Quote:
[root@vps ~]# service httpd status
httpd dead but pid file exists
[root@vps ~]#
|
Error log:
Quote:
[Sat Apr 23 20:44:57 2011] [notice] Digest: done
[Sat Apr 23 20:44:57 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Apr 23 20:45:02 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Sat Apr 23 21:09:42 2011] [notice] caught SIGTERM, shutting down
[Sat Apr 23 21:09:44 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Apr 23 21:09:44 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 23 21:09:44 2011] [notice] Digest: done
[Sat Apr 23 21:09:44 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Apr 23 21:21:07 2011] [notice] caught SIGTERM, shutting down
[Sat Apr 23 21:21:09 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Apr 23 21:21:09 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 23 21:21:09 2011] [notice] Digest: done
[Sat Apr 23 21:21:09 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Apr 23 21:27:28 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Sat Apr 23 21:31:23 2011] [notice] caught SIGTERM, shutting down
[Sat Apr 23 21:31:24 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Apr 23 21:31:24 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 23 21:31:24 2011] [notice] Digest: done
[Sat Apr 23 21:31:24 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Apr 23 21:32:03 2011] [notice] caught SIGTERM, shutting down
[Sat Apr 23 21:32:04 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Apr 23 21:32:04 2011] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 23 21:32:04 2011] [notice] Digest: done
[Sat Apr 23 21:32:04 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sat Apr 23 21:36:32 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Sun Apr 24 00:48:32 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Apr 24 00:48:32 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Apr 24 00:48:32 2011] [notice] Digest: done
[Sun Apr 24 00:48:32 2011] [warn] pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Apr 24 00:48:32 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sun Apr 24 00:48:55 2011] [error] server reached MaxClients setting, consider raising the MaxClients setting
|
Help me plz . Thanks
|
|
|
04-23-2011, 02:40 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Not sure if it's directly related, but you're hitting a maxclients limit very clearly... why? Under powered / poorly configured system, or being DDOS'd or similar? Fix that and other more obscure things may well go away. Fix it properly though... don't just make the error message go away.
|
|
|
04-23-2011, 09:43 PM
|
#3
|
LQ Newbie
Registered: Apr 2011
Posts: 5
Original Poster
Rep:
|
Thank you acid_kewpie.
This is file httpd.conf
...
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 500
MaxClients 500
MaxRequestsPerChild 4000
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
...
Can you help me resolve this problem?
Thank you.
|
|
|
04-24-2011, 03:01 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Not from that. Are you using prefork of worker? you need to understand WHY you are exceeding the number of connections. are you getting flooded? I could never tell that from some config settings. the /server-status page might help you if it's enabled.
|
|
|
All times are GMT -5. The time now is 07:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|