jettero has asked for the wisdom of the Perl Monks concerning the following question:
I have a program with an evil memory leak. I think it's got a hash that get's bigger and bigger while it runs. It takes a few days before it get's outta hand.
While I was in the process of trackin' that down, I got to thinkin'. This particular program forks lotsa kids. They all die properly, but because of the stupid memory leak, it's a little like opening netscape recursively.
I don't need all the different parts of the program during the fork though. Is there a way (in perl) to limit the what parts of the program get copied in a fork? I know there's a way to do it in C (vfork/threads), but can ya do that stuff in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE (tilly) 1: Memory
by tilly (Archbishop) on Sep 03, 2000 at 18:27 UTC | |
|
Re: Memory
by cianoz (Friar) on Sep 03, 2000 at 17:21 UTC | |
by tilly (Archbishop) on Sep 03, 2000 at 18:17 UTC | |
|
Re: Memory
by Anonymous Monk on Feb 20, 2002 at 16:15 UTC |