Re: Correct way of avoiding a shutdown delay caused by the Reaper thread
Vinod Johnson - Sun Microsystems <[email protected]> Mon, 7 Aug 2006 16:22:34 -0400
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Greg Luck wrote: > Hi > > I am, and it appears many others have had, trouble with RMI when > trying to shutdown a JVM. > > The issue is that the Reaper thread is not a daemon thread and does > not complete until the GC controlled by sun.rmi.dgc.client.gcInterval > has been run. Because this interval is 60 seconds it causes an > unacceptably long time to shutdown. > Without going into Reaper thread for a moment, could you explain a little more? I'm assuming that you want a timely shutdown of your server VM? Under what conditions do you want the shutdown to be triggered? Clients dereferencing their stubs? Client VM shutdown/termination? Other? > > So, I am wondering if their is a best practice for avoiding the > Reaper thread issue. The other idea I had was to set the > sun.rmi.dgc.client.gcInterval to 1 second, but I am unsure what > problems that may cause. > This would result in your RMI client VMs running GC every 1 second. Doesn't seem desireable to me in general. > > Regards > > Greg Luck > > web: http://gregluck.com > skype: gregrluck > yahoo: gregrluck > mobile: +61 408 061 622 -- - vinod =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html