Jump to content
xisto Community

Recommended Posts

When I type the command ulimit -a, I see open files parameter as 1024 (default). Setting the parameter as ulimit -n 50000, update this value to 50000, but only in current console session. How can I do to set this parameter for all sessions?Tks

Share this post


Link to post
Share on other sites

You've got to edit your ~/.bashrc file so that it defaults to what you need everytime you open a console. Technically, .bashrc is called everytime you open a console shell. Here's some more info:

System-wide settings can be made in /etc/profile. There, enable creation of core files, needed by programmers for debugging. A normal user cannot increase the values specified in /etc/profile by the system administrator, but he can make special entries in his own~/.bashrc.
Settings in ~/.bashrc

# Limits of physical memory:
ulimit -m 98304

# Limits of virtual memory:
ulimit -v 98304


Source: http://forums.xisto.com/no_longer_exists/

So, all you need to do is put ulimit -n 50000 in ~/.bashrc and it should do the trick.

Hope that helps.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.