in reply to Memory management
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); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Memory management
by BrowserUk (Patriarch) on Nov 09, 2010 at 18:12 UTC | |
by sathishperl (Novice) on Nov 11, 2010 at 17:25 UTC |