Mod_perl memory leak

I recently discovered that one of our sites has a memory leak in it, it is very strange because it happened suddenly. I used GTop to measure the memory size for each process, and it tells me that the real value is approximately 65 MB (on the server) for each request and an additional 5 MB of shared access.

I tried preloading the modules in the startup.pl a file specified in the performance tuning article for mod_perl. Nothing happened if the fact that the total memory was reduced to 3.7 MB, in this situation, I thought that my application was leaking in memory before any line of code was executed. I measured the memory to find out that the total cost is actually 64 MB, my questions are: is there a default memory allocation for each process? Is there a configuration problem? Is mod_perl a memory leak?

Many thanks.

+4
source share
2 answers

This is probably the question that is best asked on the mod_perl mailing list. Too many variables (perl / mod_perl / apache versions, which modules you load, which OS you are running, what MPM is, apache configuration, etc.) to help in this Q / A forum, since there is no β€œright” answer .

+1
source

In mod_perl, you can cause a memory leak using the core exit () function

0
source

Source: https://habr.com/ru/post/1309015/


All Articles