Home
 

Customer Support

Search for keywords:

Browse by category:

How can I kill off my processes on the shell
server?

In order to preserve service quality for all other customers on our shared hosting infrastructure, resource limitations on the shell server prevent creating too many processes under a single user account. If your account is spawning too many processes, you might get an error message such as:

bash: fork: Resource temporarily unavailable


One solution is to kill off the excess processes. However, because exposing the full process table to shell accounts on a shared server is a potential security risk, your scripts will need to report to your terminal or log their indvidual process IDs. This is done easily via PHP using the posix_getpid() function, which requires enabling the POSIX module in your php.ini file.

In Perl, the process ID is contained in the special variable $$.

Once your program is logging or reporting to your console its process ID upon startup, you now have the information needed to terminate any such process using the kill command.


User-Contributed Notes

add a note
There are no user-contributed notes for this topic.

Related Questions:


How do I get ssh to authenticate me via public/private keypairs instead of by password?

What is a good SSH or Telnet program for me to use?

How do I change the timezone for my account?

Do you support SCP?

Can I use gcc or a compiler?

How do I run a script in a restricted shell?

How can I make Pico my default editor instead of Vi?

Do I get a shell with my account?

What if I need a certain program installed in my bin?

Can I have Emacs?

Can I have Eggdrop or run some other bot or daemon?

Do I get root access?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us