in reply to Parallel::ForkManager Memory issue
You don't pass any arguments to $pm->finish, so (on the child side) this call is equevalent to CORE::exit(0) (see the finish sub in http://cpansearch.perl.org/src/SZABGAB/Parallel-ForkManager-1.03/lib/Parallel/ForkManager.pm).
What if you replace the system call with exec which replaces the current child process instead of spawning new subchild, thus freeing the child's memory?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parallel::ForkManager Memory issue
by hotel (Beadle) on Mar 17, 2013 at 12:58 UTC | |
by aitap (Curate) on Mar 17, 2013 at 16:59 UTC | |
by hotel (Beadle) on Mar 18, 2013 at 00:00 UTC |