pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vadim Nasardinov <vadimn@redhat.com>
To: pgsql-jdbc@postgresql.org
Cc: temp02@bluereef.com.au
Subject: Re: Can't throw the dreaded 'idle in transaction' - need help!
Date: Tue, 23 Nov 2004 10:15:29 -0500
Message-ID: <200411231015.29259@vadim.nasardinov> (raw)
In-Reply-To: <002d01c4d122$2abdc6b0$2201010a@bluereef.local>
References: <02fe01c4d054$b60a5fe0$2201010a@bluereef.local>
	<41A1870F.4030506@opencloud.com>
	<002d01c4d122$2abdc6b0$2201010a@bluereef.local>

On Tuesday 23 November 2004 01:03, Temp02 wrote:
> We don't use any Java locking with the application we leave it all
> up to the DB.

Not a single synchronized block of code in your entire application?

Did you try sending a SIGQUIT to your application, as Oliver suggested
in http://archives.postgresql.org/pgsql-jdbc/2004-11/msg00169.php


  | $ cat Main.java 
  | public class Main {
  |     public static void main(String[] _) throws InterruptedException {
  |         while (true) {
  |             Thread.sleep(1000);
  |         }
  |     }
  | }
  | 
  | $ javac Main.java 
  | $ java -cp . Main &
  | [1] 9346
  | $ ps -ef | grep java
  | vadim     9346  7513  3 10:03 pts/0    00:00:00 java -cp . Main


In response to a SIGQUIT, the JRE should dump stack traces for all the
current threads, like so:

  | $ kill -QUIT 9346
  | Full thread dump Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode):
  | 
  | "Signal Dispatcher" daemon prio=1 tid=0x08095950 nid=0x2482 waiting on condition [0..0]
  | 
  | "Finalizer" daemon prio=1 tid=0x08090e90 nid=0x2482 in Object.wait() [4c792000..4c79287c]
  | 	at java.lang.Object.wait(Native Method)
  | 	- waiting on <0x44590490> (a java.lang.ref.ReferenceQueue$Lock)
  | 	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:111)
  | 	- locked <0x44590490> (a java.lang.ref.ReferenceQueue$Lock)
  | 	at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
  | 	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
  | 
  | "Reference Handler" daemon prio=1 tid=0x080902e8 nid=0x2482 in Object.wait() [4c711000..4c71187c]
  | 	at java.lang.Object.wait(Native Method)
  | 	- waiting on <0x44590380> (a java.lang.ref.Reference$Lock)
  | 	at java.lang.Object.wait(Object.java:429)
  | 	at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:115)
  | 	- locked <0x44590380> (a java.lang.ref.Reference$Lock)
  | 
  | "main" prio=1 tid=0x0805ab88 nid=0x2482 waiting on condition [bfffd000..bfffd55c]
  | 	at java.lang.Thread.sleep(Native Method)
  | 	at Main.main(Main.java:4)
  | 
  | "VM Thread" prio=1 tid=0x0808f088 nid=0x2482 runnable 
  | 
  | "VM Periodic Task Thread" prio=1 tid=0x080981a0 nid=0x2482 waiting on condition 
  | "Suspend Checker Thread" prio=1 tid=0x08094f98 nid=0x2482 runnable 


Except yours will be a lot longer.




view thread (6+ messages)

Message-ID: <200411231015.29259@vadim.nasardinov>
Permalink:  ../200411231015.29259@vadim.nasardinov/
Also on:    postgresql.org/message-id/200411231015.29259@vadim.nasardinov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: vadimn@redhat.com, temp02@bluereef.com.au
  Subject: Re: Can't throw the dreaded 'idle in transaction' - need help!
  In-Reply-To: <200411231015.29259@vadim.nasardinov>
  References: <02fe01c4d054$b60a5fe0$2201010a@bluereef.local> <41A1870F.4030506@opencloud.com> <002d01c4d122$2abdc6b0$2201010a@bluereef.local> <200411231015.29259@vadim.nasardinov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox