# Tuning SUSE TCP connections

**URL:** <https://forums.suse.com/t/tuning-suse-tcp-connections/25231>\
**Category:** SLES Networking\
**Created:** [March 7, 2014, 8:45pm UTC](https://forums.suse.com/t/tuning-suse-tcp-connections/25231 "2014-03-07T20:45:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cisaksen](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cisaksen](https://forums.suse.com/u/cisaksen)\
**Post date:** [March 7, 2014, 8:45pm UTC](https://forums.suse.com/t/tuning-suse-tcp-connections/25231/1 "2014-03-07T20:45:08Z")

</div>

I’m trying to determine if I have a tcp connections issue and I’m looking for any information on what the default tcp connections are and how they can be tuned for say mysql.

The issue I am dealing with is I’m running 17 instances of mysql on a single server. There desn’t appear to be a problem with this other than the fact that I have a large amount of time\_waits in netstat. Here is a small sample of what they look like:

tcp 0 0 127.0.0.1:3306 127.0.0.1:47441 TIME\_WAIT  
tcp 0 0 127.0.0.1:47092 127.0.0.1:3315 TIME\_WAIT  
tcp 0 0 127.0.0.1:46813 127.0.0.1:3317 TIME\_WAIT  
tcp 0 0 127.0.0.1:3306 127.0.0.1:46659 TIME\_WAIT  
tcp 0 0 127.0.0.1:41084 127.0.0.1:3312 TIME\_WAIT  
tcp 0 0 127.0.0.1:49826 127.0.0.1:3321 TIME\_WAIT  
tcp 0 0 127.0.0.1:38991 127.0.0.1:3314 TIME\_WAIT  
tcp 0 0 127.0.0.1:38876 127.0.0.1:3314 TIME\_WAIT

Someone suggested that mysql may not be getting enough tcp connections. I haven’t change the default of 151 connection for mysql (5.6).

Any information would be helpful.

thank you

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [March 7, 2014, 9:13pm UTC](https://forums.suse.com/t/tuning-suse-tcp-connections/25231/2 "2014-03-07T21:13:48Z")

</div>

> [@](#):
>
> On Fri 07 Mar 2014 06:54:02 PM CST, cisaksen wrote:
> 
> I’m trying to determine if I have a tcp connections issue and I’m  
> looking for any information on what the default tcp connections are and  
> how they can be tuned for say mysql.
> 
> The issue I am dealing with is I’m running 17 instances of mysql on a  
> single server. There desn’t appear to be a problem with this other than  
> the fact that I have a large amount of time\_waits in netstat. Here is a  
> small sample of what they look like:
> 
> tcp 0 0 127.0.0.1:3306 127.0.0.1:47441  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:47092 127.0.0.1:3315  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:46813 127.0.0.1:3317  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:3306 127.0.0.1:46659  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:41084 127.0.0.1:3312  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:49826 127.0.0.1:3321  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:38991 127.0.0.1:3314  
> TIME\_WAIT  
> tcp 0 0 127.0.0.1:38876 127.0.0.1:3314  
> TIME\_WAIT
> 
> Someone suggested that mysql may not be getting enough tcp connections.  
> I haven’t change the default of 151 connection for mysql (5.6).
> 
> Any information would be helpful.
> 
> thank you

Hi  
This is normal, because TIME\_WAIT means the connection has been  
closed and it’s just waiting to make sure there are no stray packets  
before it really closes.

So maybe it’s a red-herring so to speak?

–  
Cheers Malcolm Â°Â¿Â° SUSE Knowledge Partner (Linux Counter #276890)  
openSUSE 13.1 (Bottle) (x86\_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
