I have a program that uses the Mail::Sender module that loops through and gets the names and e-mail addresses out of a MySQL database. At the top of the loop, I check the system uptime to get the load average so I can have the program sleep for 5 seconds to let things stabilize a bit. When this happens, the message "Sleeping" is printed out to a log file. However, I noticed that the program ended up sleeping without printing the message. The condition I set for load average was never reached so there was no reason for it to sleep. I ran a netstat -an and there were alot of tcp connections to port 25 in the TIME_WAIT mode.
What I'm trying to figure out is if the OS or Perl itself puts a limit on processes when it has a large number of connections in that mode forcing it to sleep. I am running this on Redhat Linux version 7.3. I'm really stumped as to why this would slow down as it has. I have a few ideas like sending the e-mails in batches, maybe forking new processes but right now I'm just stuck. Jessee -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]