memory usage is growing

Support and queries relating to all previous versions of ZoneMinder
Locked
spitzmann007
Posts: 13
Joined: Thu Feb 05, 2009 12:48 am

memory usage is growing

Post by spitzmann007 »

I have seen the memory usage of /usr/sbin/apache2 is growing fast. Something occurs which triggers that issue. The memory usage grows 0.5 % each 30 seconds. My system has 2GB RAM. In almost a hour the process grew up to 27,5%
I restarted apache and then it came back to normal memory usage. I'm afraid this problem would happen in a production environment.

this is my zoneminder version v1.23.3
my system is a Pentium D 3.0GHz cache 4MB - 2GB RAM
debian lenny 32bit version
Paranoid
Posts: 129
Joined: Thu Feb 05, 2009 10:40 pm

Post by Paranoid »

See http://httpd.apache.org/docs/2.2/mod/mp ... tsperchild

This limits the maximum amount of requests a child process can handle before dying. Once it dies all memory is released. Tweaking this value will limit the impact of any possible memory leak in apache.
Locked