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?
In reply to Re: Parallel::ForkManager Memory issue
by aitap
in thread Parallel::ForkManager Memory issue
by hotel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |