LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-11-2018, 11:05 AM   #1
chatur
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
Ubuntu : max connections on port limited to 4036


Hi,

We are seeing a strange behavior when trying to make connections to a port on one of the Ubuntu boxes. We are on Ubuntu - 12.04 LTS (we are already working on upgrades , but until that happens we are on this version).

We have a messaging server running on that port .

Once the connections on the port reaches a count of 4036 connections - any new connections attempts see one of the following two behaviors

(1) An existing connection is dropped and the new connection succeeds
(OR)
(2) New connection hangs and timeout.

I have checked the following and cannot find any limitations that may prevent the port from making more than 4036 connections.

(1) ulimit setting - soft and hard both set 65 K
(2) looked for the max open files allowed on the OS .-->
cat /proc/sys/fs/file-max -- 601850
(3) Looked at the count of open file descriptors using --> lsof |wc -l ( was about 2k)
(4) sysctl -A -- to check if there is any limit that may be imposed here.


Can someone please point in the direction that can help me find where this limit may be coming from and how I can up this limit ?

Thanks

Last edited by chatur; 07-11-2018 at 11:32 AM.
 
Old 07-13-2018, 02:08 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
if i take the ubuntu out of the equation, i get a lot of hits:
https://www.startpage.com/do/dsearch...imited+to+4036
i don't know what you already tried and what not. please be precise in sharing your troubleshootings.
i suspect most actions require a server restart at the very least, many also a reboot (kernel stuff).
 
Old 07-13-2018, 09:21 AM   #3
chatur
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for your response. After hours of google search - this finally helped us.

https://blog.james-carr.org/crouchin...g-891723a5eca0
 
  


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
Apache max connections Skillz Linux - Server 1 03-01-2010 05:05 PM
max connections yuhuashi Programming 1 09-25-2004 10:38 AM
Max connections from a IP cli_man Linux - Networking 2 04-08-2004 02:57 PM
IE max connections mrozkan General 16 03-20-2004 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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