LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2011, 07:48 AM   #1
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 56

Rep: Reputation: 15
open file limit on Debian Squeeze ( 6.0.1)


Hi

I have a problem with open file limit. The software I'm installing claims "Open file limit (ulimit -H -n) too low (1014), need at least 6311" but when I check the linit I get the following

Code:
# uname -a
Linux server 2.6.32-5-amd64 #1 SMP Mon Mar 7 21:35:22 UTC 2011 x86_64 GNU/Linux
# cat /etc/debian_version
6.0.1



# cat /proc/sys/fs/file-max
610576
# ulimit -Hn
1024
# ulimit -Sn
1024
# sysctl -a | grep file-max
fs.file-max = 610576
Not sure how do I change the limit if fs.file.max = 610576 - should ulimit -Hn not show the same value ? Or I'm getting something wrong ? The only setting with value 1024 is "kernel.max_lock_depth = 1024"

Any help really apreciated

Thanks

Greg
 
Old 04-28-2011, 08:21 AM   #2
Ladowny
Member
 
Registered: Oct 2006
Distribution: Debian, OpenBSD, FreeBSD
Posts: 56

Original Poster
Rep: Reputation: 15
I managed to increase the limit editing the file

Code:
# vi /etc/security/limits.conf
Adding a line

Code:
username            hard    nofile            6400
Greg
 
Old 04-28-2011, 08:29 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
That is the correct answer.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] open file limit jindalarpan Linux - Server 3 11-26-2009 04:35 PM
Too many file open - How can we define Max limit of file descriptor janeshb Linux - Server 11 09-29-2009 11:41 AM
maximum open-file limit(RHEL-as4) edenCC Linux - General 0 12-12-2006 11:24 PM
java: need lots of socket connections open at once, but hit file limit BrianK Programming 6 01-10-2006 10:02 PM
Low open file descriptor limit Suse 9.2 kryten SUSE / openSUSE 3 12-20-2004 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration