[Melbourne-pm] Perl garbage collection behaviour

Daniel Pittman daniel at rimspace.net
Tue Aug 23 23:43:45 PDT 2005

"Leigh Sharpe" <lsharpe at pacificwireless.com.au> writes:

> ----- Original Message ----- 
> From: "Harley Mackenzie" <hjm at bigpond.com>
> To: <Melbourne-pm at pm.org>
> Sent: Wednesday, August 24, 2005 4:12 PM
> Subject: [Melbourne-pm] Perl garbage collection behaviour
>> I have an application that I have developed that regularly polls a
>> database table for new records, sleeps for most of the time and otherwise
>> periodically generates some reports and faxes. The application works fine
>> except for the memory behaviour, wheret 8KB of memory is used up for each
>> database poll (running on Windows Server 2003) as reported by Windows task
>> manager, with the memory requirements starting out at about 5 KB and over a
>> couple of days eventually exhausting all of the available virtual memory and
>> causing mayhem on the server.
> So, instead of a program which continually sleeps and wakes, why not
> make it a one-shot app and have task scheduler run it at the
> appropriate interval?

I second this recommendation:  there is no garbage collector as good, or
as fast, as exit(), so if you can rely on that, do. :)


More information about the Melbourne-pm mailing list