OA系统每隔一段时间就不能使用,必须重启tomcat服务,求助大神

求助各位大神,小弟真的无力解决。
系统表现可以打开登录界面,但是输入账户密码无法登录。系统显示tomcat服务正常运行

2019-11-21 8:04:23 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
    at org.apache.catalina.connector.Request.doGetSession(Request.java:2437)
    at org.apache.catalina.connector.Request.getSession(Request.java:2157)
    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
    at com.redmoon.oa.pvg.Privilege.getUser(Privilege.java:304)
    at com.redmoon.oa.flow.WorkflowDb.display(WorkflowDb.java:2806)
    at org.apache.jsp.desktop_jsp._jspService(desktop_jsp.java:394)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.cloudwebsoft.framework.security.ProtectFilter.doFilter(ProtectFilter.java:61)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.redmoon.oa.DownloadFilter.doFilter(DownloadFilter.java:131)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
    at java.lang.Thread.run(Thread.java:619)
2019-11-21 8:43:44 org.apache.catalina.core.StandardWrapperValve invoke

3个回答

百度上大致的回复都是这个 https://blog.csdn.net/c5153000/article/details/7280125

weixin_44700117
-zyfjava- 回复breezeair: 提高一下日志打印级别,下一次问题再出现从日志上分析哪个方法出的问题吧,我能想到的就是这个了
3 个月之前 回复
breezeair
breezeair 谢谢,只不过文件太多了,真不知道什么时候才能找到那个文件确定那个session
3 个月之前 回复

系统具体的现象是什么?是tomcat挂掉了,还是接口调不通?仔细检查下是不是代码设计的不合理导致的,比如jvm内存溢出、
session失效等等

breezeair
breezeair 系统表现就是可以打开登录界面,但是输入账户密码无法登录。系统显示tomcat服务正常运行
3 个月之前 回复

: Cannot create a session after the response has been committed,这可能是session没法创建的原因,你看下jsp里面会话session的保存时间,

breezeair
breezeair 回复 云书墨: 用的windows server 6.1,内存8g,平常占用5g,不做其他事,不够吗?
3 个月之前 回复
CloudBook
 云书墨 那可能是电脑配置太低,然后电脑内存溢出了,你找下网上清理Liunx缓存的命令,清理下就行
3 个月之前 回复
breezeair
breezeair web.xml 里面session-timeout 是 15
3 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问