mina2.0.9 session.close cpu100%
来源:互联网 发布:java猜数字文档 编辑:程序博客网 时间:2024/05/17 03:57
Please implement IoHandler.inputClosed(IoSession) method in your handler and close the session manually. If not, the inputClosed event will not stop being fired.
Mina doesn't close sessions actively since 2.0.9. There will be no issue if custom handlers are derived from IoHandlerAdapter. But if some handler implements the IoHandler interface and forgets to close sessions after inputClosed event, same problem will occur.
See the IoHandlerAdapter:
public void inputClosed(IoSession session) throws Exception { session.close(true);}
First of all there is no restriction from MINA on number of connections. And This is not a MINA specific problem. This occurs when thepeer client resets the connection in middle of conversation. It's just an information that a client has quit brutally. It is very common case with the devices sending data using GPRS. So, it is not really a problem at server side and ts best to clean resources in this scenario, if you have kept any stuff related to the Client there. There is nothing to fix here, except logging less.
转载:https://issues.apache.org/jira/browse/DIRMINA-1001
http://stackoverflow.com/questions/9526702/apache-mina-java-io-ioexception-connection-reset-by-peer
- mina2.0.9 session.close cpu100%
- session close 错误
- session.close()
- session is close的问题
- HibernateUtil中的Session Close错误
- Nhibernate中报错 session is close!
- 图解 Hibernate,session.close(),session.clear()区别
- session close 或 no session 问题
- MINA2.0用户手册中文版--第四章 MINA中的Session
- MINA2.0用户手册中文版--第四章 MINA中的Session
- Hibernate 里 session.flush() session.clear() session.close() 区别
- Hibernate 里 session.flush() session.clear() session.close() 区别
- PowerShell Search and Close Servers Session Automaticlly
- 一个由session.close()引发的血案
- ActiveMQ session.close与session.commit的区别
- ElasticSearch CPU100%
- hibernate里session.clear(),session.close(),session.flush(),session.save()的含义
- close ()
- 32位和64位系统对于程序员的影响
- android监听网络
- 背包问题
- 黑马程序员----Static关键字使用
- Google -gson 最全的文档
- mina2.0.9 session.close cpu100%
- [C++]LeetCode 5: Longest Palindromic Substring(最长回文子串)
- 三种嵌入式web服务器(Boa / lighttpd / shttpd)的 linux移植笔记
- Spark/Java8 lambda表达式
- const char*, char const*, char*const使用时的区别
- js字符串加密的几种方法
- 甲亢不能吃什么?
- poj 1469 COURSES
- excel转换成PDF的软件