Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0036141 | Openbravo ERP | A. Platform | public | 2017-05-30 17:05 | 2017-06-08 17:12 | ||||||||||||||
Reporter | alostale | ||||||||||||||||||
Assigned To | alostale | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | 3.0PR17Q3 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | caristu | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0036141: stateful WS calls create HttpSessions that live till Tomcat kills them | ||||||||||||||||||
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. | ||||||||||||||||||
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 | ||||||||||||||||||
Proposed Solution | Make configurable interval after request completion to expire the session (defaulting it to 1 minute). | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | Performance | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | 36141.diff (2,028) 2017-05-30 17:07 https://issues.openbravo.com/file_download.php?file_id=10813&type=bug Selection_187.png (8,031) 2017-05-30 17:10 https://issues.openbravo.com/file_download.php?file_id=10814&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2017-05-30 17:05 | alostale | New Issue | |||||||||||||||||
2017-05-30 17:05 | alostale | Assigned To | => platform | ||||||||||||||||
2017-05-30 17:05 | alostale | Modules | => Core | ||||||||||||||||
2017-05-30 17:05 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||
2017-05-30 17:05 | alostale | Relationship added | related to 0035994 | ||||||||||||||||
2017-05-30 17:07 | alostale | File Added: 36141.diff | |||||||||||||||||
2017-05-30 17:07 | alostale | Tag Attached: Performance | |||||||||||||||||
2017-05-30 17:10 | alostale | File Added: Selection_187.png | |||||||||||||||||
2017-05-30 17:12 | alostale | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15242#r15242 | ||||||||||||||||
2017-05-30 17:16 | alostale | Note Added: 0097022 | |||||||||||||||||
2017-05-31 10:41 | alostale | Summary | statefull WS calls create HttpSessions that live till Tomcat kills them => stateful WS calls create HttpSessions that live till Tomcat kills them | ||||||||||||||||
2017-05-31 10:41 | alostale | Description Updated | bug_revision_view_page.php?rev_id=15246#r15246 | ||||||||||||||||
2017-06-01 16:52 | alostale | Proposed Solution updated | |||||||||||||||||
2017-06-01 16:52 | alostale | Assigned To | platform => alostale | ||||||||||||||||
2017-06-01 16:53 | alostale | Review Assigned To | => caristu | ||||||||||||||||
2017-06-01 17:13 | hgbot | Checkin | |||||||||||||||||
2017-06-01 17:13 | hgbot | Note Added: 0097084 | |||||||||||||||||
2017-06-01 17:13 | hgbot | Status | new => resolved | ||||||||||||||||
2017-06-01 17:13 | hgbot | Resolution | open => fixed | ||||||||||||||||
2017-06-01 17:13 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/0d4ef3abdea42bf29136282daccb0753c96420f9 [^] | ||||||||||||||||
2017-06-01 17:16 | alostale | Relationship added | duplicate of 0036162 | ||||||||||||||||
2017-06-01 17:16 | alostale | Relationship replaced | related to 0036162 | ||||||||||||||||
2017-06-05 10:06 | caristu | Note Added: 0097120 | |||||||||||||||||
2017-06-05 10:06 | caristu | Status | resolved => closed | ||||||||||||||||
2017-06-05 10:06 | caristu | Fixed in Version | => 3.0PR17Q3 | ||||||||||||||||
2017-06-05 13:40 | hgbot | Checkin | |||||||||||||||||
2017-06-05 13:40 | hgbot | Note Added: 0097131 | |||||||||||||||||
2017-06-05 13:40 | caristu | Note Deleted: 0097120 | |||||||||||||||||
2017-06-05 13:40 | caristu | Note Added: 0097132 | |||||||||||||||||
2017-06-08 17:12 | hudsonbot | Checkin | |||||||||||||||||
2017-06-08 17:12 | hudsonbot | Note Added: 0097234 | |||||||||||||||||
2017-06-08 17:12 | hudsonbot | Checkin | |||||||||||||||||
2017-06-08 17:12 | hudsonbot | Note Added: 0097240 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|