http://www.perlmonks.org?node_id=709263


in reply to Re^2: When to use forks, when to use threads ...?
in thread When to use forks, when to use threads ...?

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
  • Comment on Re^3: When to use forks, when to use threads ...?