[users@httpd] Memory leak or normal behavior? (help!!)

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

 



I e-mailed this problem to the mailing list some days ago but it passed unoticed. Can anyone help me with this one please?

I am running a source-built version of apache 2.0.55 with modperl 2 and php 5.0.5. When one of my scripts uses a lot of memory then I can see the httpd processes get quite large, which is quite normal. But when my script finishes then this memory is not released from the httpd process (if it was being cached by Linux I would understand it). Is this a normal behavior? And if it is, will it not lead me to a fat-process-slow-response behaviour if I don't restart the service manually?

I've tried it using perl and php scripts. Especially the perl script was very simple. I just created an array filling it with garbage. Then at the end of the script I unset the array variable. Still the process that handled my request didn't free any memory after the end of the script. The same thing happens with php.

Shouldn't apache have a mechanism to free the memory it uses after a script execution.

A workaround that is working at the time (but I am not considering it as a solution) is setting only a few clients to start upon startup and allow each-one of them to execute
only 8 times before another new process takes their place.




---------------------------------------------------------------------
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