LinuxQuestions.org
Help answer threads with 0 replies.
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 01-01-2008, 03:53 PM   #1
jancat
Member
 
Registered: Dec 2007
Posts: 36

Rep: Reputation: 15
Hard Limit: 100 MAXCONNECTIONS: 1024


The OS enforces a limit on max open files
Hard Limit: 100 MAXCONNECTIONS: 1024
Fix MAXCONNECTIONS

I m using CentOS release 4.6 (Final)
kernel = 2.6.9-67.0.1.ELsmp #1 SMP

what must I do for solve it ?
 
Old 01-01-2008, 04:12 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
Are you saying you are exceeding the number of open files? If so, is this intentional? The limits are enforced to protect your system. You may need to asses the software that's opening the file and get it to start closing some. If you really need to alter the setting:

You can increase the maximum number of open files by setting a new value in kernel variable /proc/sys/fs/file-max as follows (login as the root):

Code:
# sysctl -w fs.file-max=100000
Above command forces the limit to 100000 files. You need to edit /etc/sysctl.conf file and put (or edit) the following line so that after reboot the setting will remain as it is:

Code:
# vi /etc/sysctl.conf
Append a config directive as follows:

Code:
fs.file-max = 100000
Save and close the file. Users need to log out and log back in again to changes take effect or just type command:

Code:
# sysctl -p
Verify your settings with command:

Code:
# cat /proc/sys/fs/file-max
OR
# sysctl fs.file-max
 
Old 01-01-2008, 04:17 PM   #3
jancat
Member
 
Registered: Dec 2007
Posts: 36

Original Poster
Rep: Reputation: 15
I m taking this error on configuration unrealircd.
 
Old 01-01-2008, 04:25 PM   #4
jancat
Member
 
Registered: Dec 2007
Posts: 36

Original Poster
Rep: Reputation: 15
[root@server ~]# sysctl fs.file-max
fs.file-max = 100000
[root@server ~]#

dont work too.
 
Old 01-01-2008, 04:27 PM   #5
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
It might be worth your while to post a query on unrealircd forum. Have a look at this:

http://www.unrealircd.com/faq.php#46

Last edited by harry edwards; 01-01-2008 at 04:33 PM.
 
Old 01-01-2008, 04:49 PM   #6
jancat
Member
 
Registered: Dec 2007
Posts: 36

Original Poster
Rep: Reputation: 15
I found its about cpanel shell fork bomb protect. I disable and it was ok.
 
  


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
GRUB MBR /boot and 1024-cylinder limit tdxloki Linux - Newbie 2 10-28-2005 01:20 PM
the 1024 cylinder limit visited... ngjunkie0011 SUSE / openSUSE 5 07-04-2005 10:46 AM
Debian 3.0r2 sparcstation20 scsi 1024 cylinder limit NeeD_ResT Debian 2 10-31-2004 05:34 PM
problem about 1024 cylinder limit hard disk guru Linux - Newbie 3 08-30-2003 04:02 PM
Partitioning, 1024 Cylinder Limit & LBA mlbl Linux - Software 7 03-18-2002 12:38 AM

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

All times are GMT -5. The time now is 09:54 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