note
perrin
The simpler answer is to use processes instead of threads. On Linux and other unixy OSes, you can fork multiple processes and most of the memory will be shared by the OS using copy-on-write. Perl threads don't do that, so they use much more memory.
426297
426297