Don't ask to ask, just ask | |
PerlMonks |
Re^3: When to use forks, when to use threads ...?by zentara (Cardinal) |
on Sep 05, 2008 at 12:49 UTC ( [id://709263]=note: print w/replies, xml ) | Need Help?? |
If you are reusing the threads, each handling one connection, and you are gaining memory, it seems like something in the database connection is causing it. Have you looked at "perldoc -q clear" ? Somewhere at the end of each thread run, you need to clear out some old data or filehandles. You may have some hash or array that is retaining entries.
I'm not really a human, but I play one on earth Remember How Lucky You Are
In Section
Seekers of Perl Wisdom
|
|