LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to solve TCP connection timeout (not in ssh) (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-solve-tcp-connection-timeout-not-in-ssh-4175645628/)

bentech4u 01-05-2019 10:49 PM

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

TB0ne 01-06-2019 08:29 AM

Quote:

Originally Posted by bentech4u (Post 5945167)
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.

bentech4u 01-06-2019 12:57 PM

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

TB0ne 01-06-2019 02:24 PM

Quote:

Originally Posted by bentech4u (Post 5945338)
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??


All times are GMT -5. The time now is 02:14 AM.