Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I raise max number of open files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Sun Feb 12, 2006 8:13 pm    Post subject: How do I raise max number of open files? Reply with quote

I've added this to /etc/security/limits.conf
Code:
*               hard    nofile          4096

And I've made sure /etc/pam.d/login contains
Code:
session    required     /lib/security/pam_limits.so

But it doesn't work. Both root and a user has 1024 set for max number of open files.

What am I doing wrong?
_________________
Excelsior!
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Sun Feb 12, 2006 8:50 pm    Post subject: Reply with quote

Now try something like
Code:
ulimit -n 2006

In /etc/security/limits.conf you are configuring a resource limit, not setting a default value.
Back to top
View user's profile Send private message
Herodot
Guru
Guru


Joined: 29 Jul 2002
Posts: 429
Location: Professor Xavier's school for gifted youngsters

PostPosted: Sun Feb 12, 2006 9:04 pm    Post subject: Reply with quote

limn wrote:
Now try something like
Code:
ulimit -n 2006

In /etc/security/limits.conf you are configuring a resource limit, not setting a default value.


Hah! That works! Thanks!
_________________
Excelsior!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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