Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion JVM hanging after -main
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Drew Raines  
View profile  
 More options Apr 16 2009, 12:25 pm
From: Drew Raines <aarai...@gmail.com>
Date: Thu, 16 Apr 2009 11:25:36 -0500
Local: Thurs, Apr 16 2009 12:25 pm
Subject: JVM hanging after -main

I have a command line utility that calls (exit 0) at the end of
(-main).  It looks like this:

  (defn exit [status]
    (shutdown-agents)
    (flush)
    (System/exit status))

Yet, despite this, the JVM never exits.  Here is a snippet of jstack
output:

--8<---------------cut here---------------start------------->8---
  "DestroyJavaVM" prio=10 tid=0x00000000406c7c00 nid=0x445d waiting on condition [0x0000000000000000..0x0000000041e48d10]
     java.lang.Thread.State: RUNNABLE

     Locked ownable synchronizers:
          - None

  "pool-1-thread-10" prio=10 tid=0x00007fd9744fac00 nid=0x447c waiting on condition [0x0000000042e58000..0x0000000042e58da0]
     java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x00007fd981140198> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:1925)
        at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:358)
        at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947 )
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 907)
        at java.lang.Thread.run(Thread.java:619)
--8<---------------cut here---------------end--------------->8---

What else can I try to force everything to shut down?

Thanks!

-Drew

  jvm-hang.txt
11K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.