-
Poster
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
-
-
02-26-2009, 07:26 PM
BitTorrent -
#2
Poster
ulimit works in increments of 1024, I believe.
So could you try "ulimit -n 10240"?
-
-
02-26-2009, 07:40 PM
BitTorrent -
#3
Poster
Thanks, I tried it but it still goes back to 1024
Pieeyed
-
-
02-26-2009, 07:46 PM
BitTorrent -
#4
Poster
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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks