Re: Unresponsive apache webserver, memory issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "james" <james@xxxxxxxxxxxxxxxx> wrote:

> I'm having an issue with an apache web server running on CentOS5.
> After a few days/weeks of running the server will become unresponsive
> and will require a physical reboot in order to come back online. The
> system is so unresponsive when the issue occurs that login at console
> is not even possible.

What does syslog say? OOM kills happening?
What does the error log say?

> I have atop installed and have looked back before the crash to see
> what happened process wise and I can see the http starts using a lot
> of memory and CPU usage. The vmcommit jumps from 1.8 GB to 4.8GB in a
> matter of a few minutes. The VSIZE of the httpd process jumps from
> 8.1GB to 36.9GB. So apache is doing something -- but how can I get
> historical data for this? I also see that paging is very active,
> probably why the server is unresponsive. I have looked through the
> apache logs and system logs and there is nothing obvious that is
> consuming all that memory. I know of the server-status module for
> apache but that is only useful if you can get to the server during the
> crash (I can't) and doesn't have any historical data.

http://httpd.apache.org/docs/current/programs/other.html#log_server_status

How does your MPM config look like?
Take a look at:
http://wiki.apache.org/httpd/PerformanceScalingUp

> Once thing I have seen from server-status while the server is
> responding is the presence of many of these type of requests to the
> server from the server itself (always to "example.com" which is the
> first virtualhost listed in the apache config). I have researched this
> and on the apache wiki they say this is NOT a problem, however I don't
> see this at all on my other webservers. There are around 50-60 entries
> like the below at any one time -- meanwhile the server is handling
> between 2-5 requests.
> 
> 
> 	8-5 	- 	0/0/403 	. 	0.00 	2237 	0 	0.0 	0.00 	7.07 	::1 	example.com 
> OPTIONS * HTTP/1.0
> The unresponsive server issue occurs seemingly randomly, last time in
> the middle of the night with little or no user traffic.

What does your monitoring say?
What does your access log say?

> James

i

-- 
Igor GaliÄ

Tel: +43 (0) 664 886 22 883
Mail: i.galic@xxxxxxxxxxxxxx
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux