Thank you much for the hint Jozef, you pointed mi in the right direction. As you wrote, all core.async thread are daemon threads, but i was using another clojure library (pedestal) which uses executors threadpool for SSE heartbeat functionality, and this was indeed the problem.
I already submitted an pull request to library maintainers: https://github.com/pedestal/pedestal/pull/250 Dňa pondelok, 24. februára 2014 19:18:42 UTC+1 Jozef Wagner napísal(-a): > > All threads in default core.async threadpool should be daemon, so they > should not block when JVM is about to exit. Maybe it is a tomcat issue. > > > On Mon, Feb 24, 2014 at 7:06 PM, Jan Herich <jan.h...@gmail.com<javascript:> > > wrote: > >> Hi Folks, >> >> I developed an pedestal application which uses core.async for real-time >> server push. >> Everything works fine, except little problem when i run the application >> as the Servlet >> in Tomcat (7.0.52). >> >> The problem is, that if i shutdown the tomcat instance with shutdown >> script >> (default bin/shutdown.sh), it won't quit. >> >> I can see with VisualVM that it is because of the core.async executors >> threadpool >> used to dispatch go blocks which is not properly teared down. >> >> Any ideas how to solve this ? >> >> Cheers >> >> Jan >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com<javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Clojure" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.