Home > Linux > Raising the ulimit -n above 1024

Raising the ulimit -n above 1024

November 7th, 2009 emran Leave a comment Go to comments
by default the ulimit is set to 1024 only, first u need to increase system wise with

“fs.file-max = 65536″

adding this one in sysctl.conf

and then “sysctl -p”

switch to /etc/securitty/limits.conf and add ther following lines

* hard nofile 65536
* soft nofile 16384

switch 2 user for which u need to increase the file-max for, with this the default for all users will be 16384,

u can increase with ulimit -n XXXX now

Categories: Linux Tags:
  1. No comments yet.
  1. No trackbacks yet.
5 visitors online right now
5 guests, 0 members
Max visitors today: 8 at 11:34 pm UTC
This month: 8 at 09-03-2010 11:34 pm UTC
This year: 43 at 06-10-2010 04:02 pm UTC
All time: 43 at 06-10-2010 04:02 pm UTC