Possumfoot has asked for the wisdom of the Perl Monks concerning the following question:
I have a very simple perl script that I am using to run a backup job on a Windows Server 2003. The script uses system() to call a stand-alone .exe which backs up a GroupWise post office. It calls this .exe 4 times for 4 different POs. During the process, there seems to be some threshold where the machine locks up and this error is repeated in the event log:
Event ID 2019: The server was unable to allocate from the system nonpaged pool because the pool was empty.
From the research that I have done this seems to be a memory leak. I have adjusted the memory settings on the server. This pushed the threshold further down the road but did not get rid of it. I suspect that this is caused by using the system() command. I was using ActivePerl 5.8.4 build 810. I have just recently upgraded this to the latest version and am running a test now.
In the event that this does not fix my problem, does anyone have any suggestions how I might find/fix the leak or at least flush the memory after each system() call so that it does not lock up the server?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Activeperl & Memory Leaks
by Util (Priest) on Jan 18, 2005 at 17:55 UTC | |
by Possumfoot (Initiate) on Jan 18, 2005 at 19:49 UTC |