vaseems / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

不可正常关闭 #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
在shutdown  
tomcat之后有线程未被关闭,抛出以下异常,tomcat已停止服务��
�但
java进程还在

信息: Stopping Coyote HTTP/1.1 on http-8080
2010-5-28 16:49:15 org.apache.coyote.ajp.AjpAprProtocol destroy
信息: Stopping Coyote AJP/1.3 on ajp-8009
Exception in thread "Thread-4" java.lang.NullPointerException
    at org.slf4j.impl.Log4jLoggerAdapter.error(Log4jLoggerAdapter.java:571)
    at
net.rubyeye.xmemcached.impl.MemcachedHandler.onExceptionCaught(MemcachedHandler.
java:108)
    at
com.google.code.yanf4j.core.impl.AbstractSession.onException(AbstractSession.jav
a:286)
    at
com.google.code.yanf4j.core.impl.AbstractSession.onIdle(AbstractSession.java:177
)
    at
com.google.code.yanf4j.nio.impl.AbstractNioSession.onEvent(AbstractNioSession.ja
va:452)
    at com.google.code.yanf4j.nio.impl.Reactor.checkIdle(Reactor.java:469)
    at com.google.code.yanf4j.nio.impl.Reactor.checkExpiredIdle(Reactor.java:460)
    at
com.google.code.yanf4j.nio.impl.Reactor.checkSessionTimeout(Reactor.java:360)
    at com.google.code.yanf4j.nio.impl.Reactor.run(Reactor.java:122)

Original issue reported on code.google.com by minminzh...@163.com on 28 May 2010 at 9:13

GoogleCodeExporter commented 9 years ago
不好意思,再补充下:
我是在tomcat 
JVM中使用xmemcached的,现在在关闭tomcat之前先shutdown 
xmemecached了,这
时候不抛出异常了,但是JVM进程依然还在,再者就是shutdown 
xmemecached后,缓存中的对象会
清除吗?应该不会吧?

Original comment by minminzh...@163.com on 28 May 2010 at 9:22

GoogleCodeExporter commented 9 years ago
jvm仍然在,是指tomcat进程在,还是什么?

shutdown是是关闭xmemcached,不会清除缓存,xmc只是个client,数��
�是保存在memcached的。

Original comment by killme2...@gmail.com on 28 May 2010 at 9:36

GoogleCodeExporter commented 9 years ago
十分感谢您的回答,JVM仍然,指我shutdown 
tomcat后,tomcat停止请求了,http请求连接不上
tomcat,但在eclipse中的console栏中,红色的指示灯依然亮着,任��
�管理器中javaw进行依然存
在。在linux中运行 ps -ef|grep /data/tomcat/ 
依然能查询到进程。请指导,谢谢

Original comment by minminzh...@163.com on 28 May 2010 at 10:06

GoogleCodeExporter commented 9 years ago
你说说的你的测试场景吧,我不明白了。你是在eclipse中启动t
omcat? tomcat中启动xmc,怎么
测试?

Original comment by killme2...@gmail.com on 28 May 2010 at 10:09

GoogleCodeExporter commented 9 years ago
不好意思,可能我的表达能力不行,谢谢你的耐心。你说的��
�对的,在eclipse中启动tomcat,
在项目中启动时加载xmc的client,在tomcat关闭时shutdown 
xmc。这时就出现tomcat已正常关闭
了,但是eclise的红色状态灯还是亮着的,jvm进程还在。

Original comment by minminzh...@163.com on 29 May 2010 at 12:52

GoogleCodeExporter commented 9 years ago
这个就太复杂了,可能是eclipse问题,可能是tomcat问题,可能�
��xmc问题。简单地排除吧,先
不在tomcat中使用xmc,直接写个程序跑一下xmc的例子,shutdown之
后看看进程有没有退出吧。

Original comment by killme2...@gmail.com on 29 May 2010 at 1:52

GoogleCodeExporter commented 9 years ago
嗯,我也正想用此法,待我试试

Original comment by minminzh...@163.com on 29 May 2010 at 5:43

GoogleCodeExporter commented 9 years ago
实在不好意思啊,是我的rmi有问题,呵呵

Original comment by minminzh...@163.com on 29 May 2010 at 6:16

GoogleCodeExporter commented 9 years ago

Original comment by killme2...@gmail.com on 30 May 2010 at 4:45

GoogleCodeExporter commented 9 years ago
hi,这个问题具体怎么解决的哈,还能具体点,多谢啦

Original comment by geer1...@gmail.com on 13 Jun 2010 at 2:26

GoogleCodeExporter commented 9 years ago
1.2.5发布,加快了关闭的速度,请试用。

Original comment by killme2...@gmail.com on 22 Jun 2010 at 10:18

GoogleCodeExporter commented 9 years ago
我用的是1.3.3还有这个问题!!

Original comment by CrazyCh...@gmail.com on 22 Oct 2012 at 7:20