You could try using use threads ( stack_size => 4096 );. On my system that means that 500 simple threads consume 177 MB, or around 350k per thread.
If that is still too much, then a IO::Select solution will definitely consume less memory, and probably wouldn't be much more complex for an application as simple as this.
In reply to Re: Multiple threads for many connections - memory problem
by BrowserUk
in thread Multiple threads for many connections - memory problem
by skorczynski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |