LinuxQuestions.org
Review your favorite Linux distribution.
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 05-02-2014, 03:15 AM   #1
dnyaneshwar.sonawane
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Post Centos 6.4 ulimit and HAProxy issue


I have a haproxy setup on centos 6.4 and now i have to test it with maximum number of supported connections by it,

When i increase the maxconn in HAProxy it gives the following errror,

Starting haproxy: [WARNING] 121/130735 (21932) : [/usr/sbin/haproxy.main()] Cannot raise FD limit to 134529346.
[WARNING] 121/130735 (21932) : [/usr/sbin/haproxy.main()] FD limit (1024) too low for maxconn=67264666/maxsock=134529346. Please raise 'ulimit-n' to 134529346 or more to avoid any trouble.
[ALERT] 121/130735 (21932) : [/usr/sbin/haproxy.main()] Cannot fork.
[FAILED]

and when i try to increase the ulimit to 2 million or more then i m not able to login that centos machine.

how we can achieve this, to maximize the ulimit and maxconn more than million or billion ?

Thanks..!
 
Old 05-03-2014, 01:37 PM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Try this: http://www.cyberciti.biz/faq/linux-i...of-open-files/
 
Old 05-05-2014, 02:16 AM   #3
dnyaneshwar.sonawane
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by robertjinx View Post
I tried to set ulimit 2000000 but its not working . it blocks ssh login for all users.
 
Old 05-07-2014, 02:48 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Have you tried to set /proc/sys/fs/file-max ?
 
Old 05-29-2014, 01:55 PM   #5
pburwell
LQ Newbie
 
Registered: Jun 2010
Location: PA, USA | NJ, USA
Distribution: CentOS 6
Posts: 22

Rep: Reputation: 0
Quote:
Originally Posted by robertjinx View Post
Have you tried to set /proc/sys/fs/file-max ?
cat /etc/sysctl.conf |grep "fs.file-max"
 
  


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
ulimit -s 40960 vs ulimit ulimit -s 10240 centguy Linux - Software 2 10-22-2016 11:38 PM
[SOLVED] How can i set ulimit value in centos jsaravana87 Linux - Server 4 04-30-2012 08:58 AM
haproxy question cbtshare Linux - Server 1 11-07-2010 02:44 PM
haproxy agarwalpranay Linux - Newbie 4 06-19-2010 01:31 AM
Booting Centos 5.4 Issue: "CentOS CD Not found in any of the media drives. Please i g.navink Red Hat 1 04-07-2010 04:12 PM

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

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