LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-05-2019, 10:49 PM   #1
bentech4u
Member
 
Registered: Feb 2009
Posts: 41

Rep: Reputation: 1
How to solve TCP connection timeout (not in ssh)


HI

We have some Red Hat Linux Sevres which is having TCP connection timeout, not SSH connection, as an example oracle connection connected from TOD.

SSH i managed to add keepalive and it's working fine
 
Old 01-06-2019, 08:29 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 bentech4u View Post
HI
We have some Red Hat Linux Sevres which is having TCP connection timeout, not SSH connection, as an example oracle connection connected from TOD. SSH i managed to add keepalive and it's working fine
As has been suggested to you in the past, have you contacted Red Hat and Oracle support?? You are PAYING for these things (RIGHT???), as as such, get support. According to this:
https://www.linuxquestions.org/quest...9/#post5934091

...Oracle is customizing things just for your company. With that level of involvement, you should easily be able to get them to give you some support. All that aside, you don't actually tell us what the situation is, the network environment, or what the actual problem is. Saying "TCP connection timeout" is meaningless, since it can have a LOT of different causes, depending on what you're trying to do, and how. Setting things for Tomcat is different than setting expire_times variables in the database, and those may not even apply for you.

Provide details and we may be able to help, but you really should use the RHEL and Oracle support you're paying for.
 
Old 01-06-2019, 12:57 PM   #3
bentech4u
Member
 
Registered: Feb 2009
Posts: 41

Original Poster
Rep: Reputation: 1
first of all, using Red Hat or Oracle Linux doesn't that I am paying for it.

this is what i was looking for

---------------------------------------

Linux has built-in support for TCP keepalive. You need procfs and sysctl support to be able to configure the kernel parameters at runtime.

The procedures involving TCP keepalive use three user-driven variables:

tcp_keepalive_time

the interval between the last data packet sent (simple ACKs are not considered data) and the first keepalive probe; after the connection is marked to need keepalive, this counter is not used any further

tcp_keepalive_intvl

the interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime

tcp_keepalive_probes

the number of unacknowledged probes to send before considering the connection dead and notifying the application layer


------------------

thanks for your suport
 
1 members found this post helpful.
Old 01-06-2019, 02:24 PM   #4
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 bentech4u View Post
first of all, using Red Hat or Oracle Linux doesn't that I am paying for it.
Then you should NOT be using it; those are both commercial products. Without paying for them, you have **NONE** of the bugfixes, security updates, or anything else that lets your systems be stable. Pay for what you use, or use the free versions (MySQL and CentOS).
Quote:
this is what i was looking for
---------------------------------------
Linux has built-in support for TCP keepalive. You need procfs and sysctl support to be able to configure the kernel parameters at runtime. The procedures involving TCP keepalive use three user-driven variables:

tcp_keepalive_time
the interval between the last data packet sent (simple ACKs are not considered data) and the first keepalive probe; after the connection is marked to need keepalive, this counter is not used any further

tcp_keepalive_intvl
the interval between subsequential keepalive probes, regardless of what the connection has exchanged in the meantime

tcp_keepalive_probes
the number of unacknowledged probes to send before considering the connection dead and notifying the application layer
Great; again, you didn't provide any details when asking your question, and still don't. What do any of these things apply to? RHEL? Oracle? For what purpose??
 
  


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
VPNC seems to timeout quickly- how do I lengthen the timeout? spiffytech Linux - Software 30 10-05-2018 04:04 AM
trying to solve "auth/tcp (2): bind: Address already in use" plisken Slackware 1 03-03-2014 02:20 PM
How to solve TCP sequence number approximation vulnerability issue 5883 Linux - Security 3 04-23-2013 09:42 AM
how to solve solve broken shell problem prasanth.george Red Hat 1 01-21-2011 09:48 AM
log for TCP/IP (TCP) connection? fireball003 Linux - Server 4 12-04-2008 01:58 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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