I found in my application that we have created threads and which not joined anywhere.
Now I have created another thread which will join the threads. After this one I got some what better memory usage. The aggressive memory eating by my application getting reduced now.
sub MemoryCleanup { while(1) { foreach(threads->list()) { $_->join() if($_->is_joinable()); } sleep(5); } }
In reply to Re: Memory management
by sathishperl
in thread Memory management
by sathishperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |