Connecting Tech Pros Worldwide Help | Site Map

I've Hit the Process Limit

Newbie
 
Join Date: Sep 2009
Location: Melbourne, Florida
Posts: 5
#1: Sep 1 '09
My first post. Thanks in advance.

My ISP shut me down temporarily and told me in an e-mail message:

==========
The problem was that you had hit your process limit with perl processes spawned from the following script:
~/www/cgi-bin/cq/coins
You should check this script to make sure that it doens't spawn enough processes to tank your account again.
==========

I've been developing Perl code on the web since 1998 and never had this happen. Don't processes on the server kill themselves when they end? Do I have to do something special at the end of each script?

First few lines:
Expand|Select|Wrap|Line Numbers
  1. #!/usr/local/bin/perl -T
  2. use AnyDBM_File;
  3. use CGI::Carp qw(fatalsToBrowser);
  4. use CGI qw(:standard);
  5. require './lb_db.pl';          # databases
  6. require './lb_file.pl';        # file i/o
  7. &initialize_db ();
  8. &initialize_file ();
  9. .
  10. more stuff goes here
  11. .
  12. }
  13. subroutines go here
  14.  
Member
 
Join Date: Jun 2009
Posts: 54
#2: Sep 1 '09

re: I've Hit the Process Limit


Does the script make any calls using backticks, or the system function, or qx() operator, or open a pipe to another command?
Newbie
 
Join Date: Sep 2009
Location: Melbourne, Florida
Posts: 5
#3: Sep 1 '09

re: I've Hit the Process Limit


Hi RonB -- None of those things are done. The most exotic I get is DBM hashes, flat file operations, and a call to the time() function. I don't know what backticks are, so I may be doing those and not know it. -- Unlike most of my sites, this one is actually getting traffic, about 150 visits per day. Maybe it's just the traffic load? I use flat file locks to do sharing of the DBM hashes. Hmmm. -- Paul R.
Member
 
Join Date: Jun 2009
Posts: 54
#4: Sep 1 '09

re: I've Hit the Process Limit


150 hits per day is nothing.

The first place to start is to talk to you provider and find out the details of how many processes per day you're allowed and how may they counted the day that triggered the shutdown. You also want to clarify if the process count that they are referring to is the count of executions of the script (your 150 hit count) or of sub process that the script created.

I'd need to see your entire script to say if it's creating sub processes.
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#5: Sep 2 '09

re: I've Hit the Process Limit


I have to agree with Ron, we definitely need more information.

If I were you, I would contact the ISP and find out what limit exactly was hit and what the numbers were. That will at least give you an idea where they set their limits on things.

Regards,

Jeff
Newbie
 
Join Date: Sep 2009
Location: Melbourne, Florida
Posts: 5
#6: Sep 5 '09

re: I've Hit the Process Limit


Thanks, guys. I have asked the ISP for more info, but got nothing of substance. It might be a fluke that will not happen again. It has never happened over the past 13 years.

The site is getting 150 visits per day, about 900 page views per day. But that's not even one script execution a minute. So I don't get it.

This is a great forum. Thanks!
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#7: Sep 5 '09

re: I've Hit the Process Limit


Quote:

Originally Posted by statmatics View Post

Thanks, guys. I have asked the ISP for more info, but got nothing of substance. It might be a fluke that will not happen again. It has never happened over the past 13 years.

The site is getting 150 visits per day, about 900 page views per day. But that's not even one script execution a minute. So I don't get it.

This is a great forum. Thanks!

Yeah, that just seems weird to me. If they had such an incredibly low limit, how would they be able to host any major sites? Sounds like it might have just been a fluke. If it happens again, open a ticket with them to force them to look into why its happening.

Regards,

Jeff
Reply

Tags
isp, processes