Bug 176 : Shutdown taking 1 minute or so ... should be immediate
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.2.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
17/11/2009
Updated 
17/11/2009
Type 
Bug
 
Attachments 
No attachments

Refer to this discussion:

http://groups.google.com/group/ebean/browse_thread/thread/ddbc0eb7f5336ec3#

 
Rob 17 Nov 10:35
Found it

The problem was that Ebean starts a Timer to run cache warming queries. This had a delay of 30 seconds.

The Timer created was not a daemon... and so effectively blocked the shutdown of the JVM - hence the shutdown was effectively delayed by 30 seconds or so.

The fix was to change the Timer to be a daemon.

woResponse

Upload a file