LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2007, 04:21 AM   #1
51dunk
Member
 
Registered: Jan 2007
Distribution: Slackware 11, OpenSuse 10.2
Posts: 31

Rep: Reputation: 15
KeepAlive setting and Java Oracle JDBC


Here is the scenairo:

I got two PCs, one is Linux(RH4), which is installed a Java Oracle related application, and the other is Windows(2000), where the Oracle database stayed.

I want response quickly when the network between those PCs is suddenly down. So i notice that linux have KeepAlive attribute which can solve this.

I set the following KeepAlive attributes:

Code:
net.ipv4.tcp_keepalive_intvl = 5
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_time = 10
and also i add the "ENABLE=BROKEN" property to JDBC driverUrl to enable application to support TCP KeepAlive of OS.

but the result is not what i expected. The application just hangs and didn't report exception until around 15 mins after i cut the network.

What's yours idea? is KeepAlive set correctly? or how do i check if the KeepAlive package is sent?
 
  


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
jdbc mysql java - please help me j0hnd0e Linux - Software 2 07-22-2006 05:23 AM
Java JDBC driver mickeyboa Fedora 2 07-23-2005 07:53 AM
oracle jdbc driver for jsdk 1.5 beta? Ikebo Programming 0 10-17-2004 02:13 PM
jdbc connection in java balanagireddy Programming 2 07-01-2004 06:42 AM
JDBC connection in java balanagireddy Programming 1 06-30-2004 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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