Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

FN-FORUM: Apache eating a lot of memory

date posted 17th January 2008 17:43

Hi,

We put a new web server live this morning, and through the day monit has
been reporting rather large memory usage for apache:

Jan 17 15:49:57 www monit[3071]: 'apache' total mem amount of 1418980kB
matches resource limit [total mem amount>512001kB]
Jan 17 16:10:57 www monit[3071]: 'apache' total mem amount of 527700kB
matches resource limit [total mem amount>512001kB]
Jan 17 16:22:57 www monit[3071]: 'apache' total mem amount of 595260kB
matches resource limit [total mem amount>512001kB]
Jan 17 16:28:57 www monit[3071]: 'apache' total mem amount of 574272kB
matches resource limit [total mem amount>512001kB]

Usually apache sits at around 20meg, but these are rather large, it's
been reporting these sorts of numbers all day randomly.

apache modules:

www:~# apache2 -M
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
mime_module (shared)
python_module (shared)
negotiation_module (shared)
php5_module (shared)
setenvif_module (shared)
status_module (shared)
unique_id_module (shared)
Syntax OK

Relevant apache config:

Timeout 120
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5



StartServers 10
MinSpareServers 10
MaxSpareServers 15
MaxClients 150
MaxRequestsPerChild 1000



StartServers 10
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 1000


mod-python is enabled but not doing anything at the moment, I have
turned off mod-security but it didn't seem to stop the messages.

During testing none of these messages were occuring. There's 2 gig of
ram in the machine and swap hasn't been touched, so it's recovering from
the high memory usage and monit isn't restarting apache.

The server is debian 4.0, with nothing special configured. There's only
one vhost setup. The error logs don't show anything. The access log
shows around 150,000 hits for the day so far.

Anyway enough rambling, anyone come across similar problem before?

Martin



Messages by Day
January 31st 2008
January 30th 2008
January 29th 2008
January 28th 2008
January 27th 2008
January 26th 2008
January 25th 2008
January 24th 2008
January 23rd 2008
January 22nd 2008
January 21st 2008
January 20th 2008
January 19th 2008
January 18th 2008
January 17th 2008
January 16th 2008
January 15th 2008
January 14th 2008
January 13th 2008
January 12th 2008
January 11th 2008
January 10th 2008
January 9th 2008
January 8th 2008
January 7th 2008
January 6th 2008
January 5th 2008
January 4th 2008
January 3rd 2008
January 2nd 2008
January 1st 2008


Messages by Month
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000