Perl script and out of memory errors
Posted
by
Kevin
on Server Fault
See other posts from Server Fault
or by Kevin
Published on 2012-02-29T20:41:32Z
Indexed on
2012/03/22
23:31 UTC
Read the original article
Hit count: 464
perl
We have a midsized server with 48GB of RAM and are attempting to import a list of around 100,000 opt-in email subscribers to a new list management system written in Perl. From my understanding, Perl doesn't have imposed memory limits like PHP, and yet we are continuously getting internal server errors when attempting to do the import. When investigating the error logs, we see that the script ran out of memory. Since perl doesn't have a setting to limit the memory usage (as far as I can tell) why are we getting these errors? I doubt a small import like this is consuming 48GB of ram.
We have compromised and split the list into chunks of 10,000, but would like to figure out the root cause for future fixes. This is a CentOS machine with Litespeed as the web server.
© Server Fault or respective owner