Tomcat会话意外到期 [英] Tomcat sessions expiring unexpectedly

查看:102
本文介绍了Tomcat会话意外到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在运行处理超过100个并发会话的tomcat应用程序服务器。
在过去的两个月中,最活跃的用户注意到有时候他们会从系统中被踢出来。

We are running tomcat application server that handle over 100 concurrent sessions. In the last 2 months the most active users noticed that sometimes they are getting kicked off from the system.

据我所知,日志tomcat会话没有任何理由过期。

As I understood from the log tomcat sessions are getting expired without any reason.

我发现Web应用程序方面没有任何问题。
tomcat方面有什么问题吗?

I see no problems from the web application side. Is there any problem from the tomcat side?

Tomcat 6.0.18。

Tomcat 6.0.18.

推荐答案

如果没有代码机会触发这个,我会看一下内存使用情况。此可能是Tomcat耗尽内存并使会话无效以进行恢复的效果。

If there has been no code chance triggering this, I would look at memory usage. This might be the effect of Tomcat running out of memory and invalidating sessions to recover.

如果在所有可能的监视器垃圾收集中,和/或用jconsole或jvisualvm进行监视。

If at all possible monitor garbage collections, and/or put surveillance on with jconsole or jvisualvm.

这篇关于Tomcat会话意外到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆