By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,541 Members | 1,427 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,541 IT Pros & Developers. It's quick & easy.

I've Hit the Process Limit

P: 5
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:
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 './';          # databases
  6. require './';        # file i/o
  7. &initialize_db ();
  8. &initialize_file ();
  9. .
  10. more stuff goes here
  11. .
  12. }
  13. subroutines go here
Sep 1 '09 #1
Share this Question
Share on Google+
6 Replies

Expert Mod 100+
P: 589
Does the script make any calls using backticks, or the system function, or qx() operator, or open a pipe to another command?
Sep 1 '09 #2

P: 5
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.
Sep 1 '09 #3

Expert Mod 100+
P: 589
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.
Sep 1 '09 #4

Expert Mod 2.5K+
P: 3,503
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.


Sep 2 '09 #5

P: 5
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!
Sep 5 '09 #6

Expert Mod 2.5K+
P: 3,503
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.


Sep 5 '09 #7

Post your reply

Sign in to post your reply or Sign up for a free account.