LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-14-2015, 08:42 AM   #1
limors222
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
Wink Increase max tcp connections in RedHat


Hi all,

I can see that only 1000 tcp connections can be opened in redhat v6.5. Which setting should be configure in order to allow 10000 tcp connections opened simultaneously? other tcp connections attemts fail to open.

Any help will be appreciated ,
Limor
 
Old 04-14-2015, 10:51 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by limors222 View Post
Hi all,
I can see that only 1000 tcp connections can be opened in redhat v6.5. Which setting should be configure in order to allow 10000 tcp connections opened simultaneously? other tcp connections attemts fail to open.
First, have you contacted Red Hat support??? This is exactly why you pay them for a subscription/support, and this is something that's covered in their knowledgebase.

Look in /etc/sysctl.conf...try changing net.ipv4.netfilter.ip_conntrack_max to be whatever value you want, but be warned, you may have to change other things as well. Things like:
Code:
net.ipv4.netfilter.ip_conntrack_max
net.ipv4.tcp_tw_recycle
net.ipv4.tcp_tw_reuse
net.ipv4.tcp_orphan_retries
net.ipv4.tcp_fin_timeout
net.ipv4.tcp_max_orphans
net.ipv4.ip_local_port_range
....all have parts to play.
 
Old 04-15-2015, 02:47 AM   #3
limors222
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile Increase max tcp connections in RedHat - continue

First, thanks for your reply.
We don't have support, this is why I used this forum.
I changed file and got:
[root@redhat65-pc2 /proc/sys]$ sysctl -p
error: "net.ipv4.netfilter.ip_conntrack_max" is an unknown key
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_orphan_retries = 2
net.ipv4.tcp_fin_timeout = 20
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296

Error with setting net.ipv4.netfilter.ip_conntrack_max. Any idea what is missing?

Thanks
 
Old 04-15-2015, 06:14 AM   #4
limors222
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
I also tried the following setting, but same result
error: "net.netfilter.nf_conntrack_max" is an unknown key
net.ipv4.tcp_tw_reuse = 0
net.ipv4.tcp_orphan_retries = 1
net.ipv4.tcp_fin_timeout = 5
net.ipv4.ip_local_port_range = 1024 65000
fs.file-max = 375582
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296

Also set ulimit -n in etc/profile to be 65535
Added the following rows to /etc/security/limit.conf:
* soft nofile 65535
* hard nofile 65535
root hard nofile 65535
root soft nofile 65535
But again same result... only 1000 connections are getting response.
 
Old 04-15-2015, 08:57 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by limors222 View Post
First, thanks for your reply.
We don't have support, this is why I used this forum.
Using RHEL without support is a BAD IDEA, period. If this is a production server, you WILL NOT get patches/updates/security fixes/bugfixes. All you will wind up with is an insecure, unstable server that's more difficult to manage. PAY FOR RHEL if you're going to use it.
Quote:
I changed file and got:
[root@redhat65-pc2 /proc/sys]$ sysctl -p
error: "net.ipv4.netfilter.ip_conntrack_max" is an unknown key
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_orphan_retries = 2
net.ipv4.tcp_fin_timeout = 20
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296

Error with setting net.ipv4.netfilter.ip_conntrack_max.
Is the nf_conntrack module loaded and/or available???

Things like this are EXACTLY the reason you need to pay for RHEL...if you're not going to, then there is NO REASON to use it, versus using the free CentOS.
 
  


Reply



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
Max num of concurrent tcp connections && tcp auto tune rosv Linux - Networking 3 02-04-2011 02:57 AM
Increase max connections for my dedicated server bbrian017 Linux - Server 8 06-18-2010 03:52 PM
Regarding any parameter to Increase in TCP connections Balait4 Linux - Server 0 11-13-2009 03:17 AM
How to increase apache max connections? newlinuxnewbie Linux - General 5 08-29-2008 03:53 AM
increase max cuncurrent connections eyalr Linux - Networking 1 01-27-2005 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:56 PM.

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