Your Ad Here Your Ad Here
Results 1 to 4 of 4

Thread: How Can I Change "ulimit" From Command Line In Linux?

  1. #1
    Can I change the ulimit value from the command
    line? I've tried: ulimit -n 11000 and it works but
    it switches back to 1024 right away.

    I've tried logged in as root using putty and logged
    in as myself using:

    su
    password
    ulimit -n 11100

    Either way it won't stay.

    Any suggestions?

    Thanks,

    Pieeyed

  2. BitTorrent   -   #2
    ulimit works in increments of 1024, I believe.

    So could you try "ulimit -n 10240"?

  3. BitTorrent   -   #3
    Thanks, I tried it but it still goes back to 1024

    Pieeyed

  4. BitTorrent   -   #4
    To increases the number of open files to 90000 for the root account do the following: Edit the .bashrc file vi /root/.bashrc and add the following line:

    ulimit -n 90000


    You must exit from your terminal and re-login for the change to take effect.

    /edit: I'm no Linux-guy so this might be different on certain distro's.

    In older 2.2 kernels, though, the number of open files per process is still limited to 1024, even with the above changes.
    Last edited by FransTormer; 02-26-2009 at 08:01 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •