paip. 解决java程序不能自动退出
原因:有东西在运行,所以,不能自动退出..
作者Attilax 艾龙, EMAIL:1466519819@qq.com
来源:attilax的专栏
地址:http://blog.csdn.net/attilax
jprofile..有好几个线程在运行..不知拉个?? 有线程池proxool以及缓存memcache.
////解析以及解决:
添加System.exit(0); 报以下信息.
2014-01-08 10:10:53 [thrd:Shutdown Hook] INFO loger:org.logicalcobwebs.proxool.maindb (org.logicalcobwebs.proxool.ConnectionPool.shutdown.484) - Shutting down 'maindb' pool immediately [Shutdown Hook]
2014-01-08 10:10:53 [thrd:Shutdown Hook] INFO loger:org.logicalcobwebs.proxool.PrototyperController (org.logicalcobwebs.proxool.PrototyperController.shutdown.100) - Stopping Prototyper thread
2014-01-08 10:10:53 [thrd:Shutdown Hook] INFO loger:org.logicalcobwebs.proxool.HouseKeeperController (org.logicalcobwebs.proxool.HouseKeeperController.shutdown.107) - Stopping HouseKeeper thread
原来是线程池proxool的原因。。