Back to the index page  
  FAQ   Search   Memberlist   Usergroups   Register   Profile      Log in 
Change Number of User Processes

 
Post new topic   Reply to topic    The Xserve Chronicles Forum Index » General View previous topic :: View next topic  
Change Number of User Processes
 PostPosted: Fri Jun 16, 2006 7:54 am Reply with quote  
Message
  dave
Site Admin

Joined: 22 Apr 2006
Posts: 54

In Debian:

http://gentoo-wiki.com/SECURITY_Limit_User_Processes

Edit /etc/security/limits.conf

# Prevents anyone from dumping core files.
* hard core 0

# This will prevent anyone in the 'users' group from having more than 150 processes, and a warning will be given at 100 processes.
@users soft nproc 100
@users hard nproc 150

To check, if you are protected. You can run this cute little forkbomb:

:(){ :|:& };:


In OS X Tiger:

http://www.macosxhints.com/article.php?story=20050709233920660&mode=print

So, you just need to have launchd launch processes with a higher limit. If you run launchctl limit right now, you will see that the maxproc is set to 100. To change this, you need to create the /etc/launchd.conf file (if it does not already exist) and add the following line:

limit maxproc 512 2048
View user's profile Send private message Send e-mail
Post new topic   Reply to topic    The Xserve Chronicles Forum Index » General

Page 1 of 1
All times are GMT - 8 Hours

Display posts from previous:

  

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum