This one has myself and other colleagues stumped, hopefully you can help:
I keep rebooting a system running a perl-ldap script (through a Web server) a
few times daily because it runs out of memory and I'm unable to kill the
multiple zombie(?) perl processes. The perl-ldap calls in the script are:
use Net::LDAP;
use Net::LDAP::Constant qw(LDAP_SUCCESS);
use CGI qw(:standard);
use URI::Escape;
$ldap = Net::LDAP->new(...);
$mesg = $ldap->search (...);
foreach my $entry ($mesg->sorted(...)) { }
$ldap->unbind();
$ldap->disconnect();
The directory is sizable. Following is the software used:
Windows 2000
Netscape Directory Server 4.15
ActiveState Perl 5.6.1 build 628
perl-ldap 0.28
The perl script is called through the Netscape Server's dsgw (CGI gateway).
My best guess is that Web searchers may be halting the page download while the
script is still running, and for some reason the perl.exe processes aren't
exiting.
Any suggestions on how to address the problem? And/or is there some way of
limiting the resources used by perl-ldap to sidetrack the memory issue?
Thanks!