Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- How to find memory leak in perl server
- Yuri Shtil
June 8, 2008, 7:11 pm
rate this thread
Re: How to find memory leak in perl server
YS> I have written an event driven network server in perl. However, when running
YS> tests I see that the server process increases in memory and slows down.
YS> How would you recommend to approach the problem? What to look for in order
YS> to identify the cause of the memory leaks?
Do you create variables?
Do you keep their contents around after you need them?
Generally, Perl will use as much memory as you need, but there's a
threshold where that gets annoying (perhaps due to memory fragmentation
or too much memory used--it really depends on what your process does)
and you're better off exiting and restarting. It's best to use as
little memory as possible and allocate new memory as infrequently as
possible if you want to run forever. Whether this is feasible with your
server, we don't know.
- » FAQ 5.27 How do I print to more than one file at once?
- — Previous thread in » PERL Discussions