Project:
View Revisions: Issue #36141 | [ Back to Issue ] | ||
Summary | 0036141: stateful WS calls create HttpSessions that live till Tomcat kills them | ||
Revision | 2017-05-31 10:41 by alostale | ||
Description | Whenever a call to a stateful WebService is done, a new HttpSession is correctly created in Tomcat. This session is not automatically closed when request finalizes, so it's kept till Tomcat times it out (typically after one hour). In instances with many WS requests this can potentially cause a high heap consumption. |
||
Revision | 2017-05-30 17:16 by alostale | ||
Description | Whenever a call to a statefull WebService is done, a new HttpSession is correctly created in Tomcat. This session is not automatically closed when request finalizes, so it's kept till Tomcat times it out (typically after one hour). In instances with many WS requests this can potentially cause a high heap consumption. |
||
Revision | 2017-05-30 17:12 by alostale | ||
Steps To Reproduce | 1. Enable debug logging in org.openbravo.erpCommon.security.SessionListener 2. Execute 1000 times http://localhost:8080/openbravo/ws/dal/Country/100 [^] -> Check logs: 1000 sessions are created and kept 3. Stop Tomcat -> Check logs: there are 100 lines like: d05203b3 2550326 [localhost-startStop-2] INFO org.openbravo.erpCommon.security.SessionListener - Deactivated session: 4BC123C1CC9F40C0BCD387BBA1DD5179 4. Take a memory dump -> Check there are 1000 retained session objects retaining up to ~900KB |
||
Revision | 2017-05-30 17:10 by alostale | ||
Steps To Reproduce | 1. Enable debug logging in org.openbravo.erpCommon.security.SessionListener 2. Execute 100 times http://localhost:8080/openbravo/ws/dal/Country/100 [^] -> Check logs: 100 sessions are created and kept 3. Stop Tomcat -> Check logs: there are 100 lines like: d05203b3 2550326 [localhost-startStop-2] INFO org.openbravo.erpCommon.security.SessionListener - Deactivated session: 4BC123C1CC9F40C0BCD387BBA1DD5179 |
Copyright © 2000 - 2009 MantisBT Group |