From: | "Sanju Nath" <snath(at)riainternational(dot)com> |
---|---|
To: | <TimothyReaves(at)westfieldgrp(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Is this a time-out issue? |
Date: | 2003-01-30 22:26:20 |
Message-ID: | CHEPIOKPIBGNNMCAKGMIAEPKCEAA.snath@riainternational.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Interesting.
Have you confirmed that the socket connection isn't timing out?
Because the socket could be closed by the client app. or AIX or SuSE or the
server app., due to inactivity.
The socket calls and the flags that are passed in those socket calls by the
application could be potential causes for socket closure. And then if no
activity, then AIX or SuSE may be intervening to force socket closure, which
a restart of the application causes it to be active again because of fresh
socket calls. Come to think of it...it may not be on the AIX side, since
you state that restarting the java app. causes things to be ok again.
netstat commands should be useful in monitoring the state of the socket
connections. ESTABLISHED or TIME_WAIT states should be watched for perhaps.
Not sure if this is helpful or you've already considered these. Otherwise,
it could be java app. to jdbc to db.
Sanju Nath.
Ria International.
-----Original Message-----
From: pgsql-jdbc-owner(at)postgresql(dot)org
[mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of
TimothyReaves(at)westfieldgrp(dot)com
Sent: Thursday, January 30, 2003 12:14 PM
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [JDBC] Is this a time-out issue?
Hello all.
I'm running 7.2 on a SuSE 8.0 machine. Overall this is running very
well. Except for the following. We have an application running on an
RS/6000. It opens a socket to the machine running SuSE. On this SuSE
machine is a Java application that reads in data from the socket, parses
it, and writes it via JDBC to the database, which is running on the same
machine.
There are about 100,000 rows a day added to the db. When this is
running all seems O.K. However, every once in a while, the data stops
being written to the db.
What happens is that the client still sends data, but it does not get
written to the db. If I restart the Java app, all is well again. This
seems to happen after extended periods of being idle. Currently the app is
in testing, so goes for days without receiving data. I have been unable to
determine where the breakage is. I think the issue is that the connection
to the db times out, or the socket to the client times out.
Any ideas?
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-01-30 23:21:04 | Re: Is this a time-out issue? |
Previous Message | TimothyReaves | 2003-01-30 18:13:38 | Is this a time-out issue? |