Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043440 | Openbravo ERP | A. Platform | public | 2020-03-05 19:16 | 2023-12-11 23:24 |
Reporter | ioritzCia | ||||
Assigned To | ioritzCia | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | out of date | ||
Platform | OS | 30 | OS Version | Ubuntu 18.04 | |
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | dmitry_mezentsev | ||||
OBNetwork customer | |||||
Web browser | Google Chrome | ||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0043440: [Performance] With an certain code in evenhandlers it is possible to leave non reusable connections in the pool | ||||
Description | With an certain code in evenhandlers it is possible to leave non reusable connections in the pool. Code must be improved in the eventhandlers, but some changes are required in platform as well. | ||||
Steps To Reproduce | - In tomcat conf in server.xml file un comment line: <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> and put maxThreads="5" - In an environment with retail apply the attached patch - Log in the system with a user and go to User -> User roles and activate and deactivate some user roles - Open, refresh and close windows - Log out and log in with another user - Do the same - Wait more than two minutes - Go to the database and execute 'select * from pg_stat_activity order by xact_start;' - There are connections with state_change older than 2 minutes that the pool should have closed (because of the default db.pool.minEvictableIdleTimeMillis=120000 configuration in Openbravo.properties) | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | Performance | ||||
Relationships | |||||
Attached Files | UserRoleEventHandler.diff (5,913) 2020-03-05 19:16 https://issues.openbravo.com/file_download.php?file_id=14142&type=bug UserRoleEventHandlerv2.diff (5,958) 2020-03-13 10:57 https://issues.openbravo.com/file_download.php?file_id=14165&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-03-05 19:16 | ioritzCia | New Issue | |||
2020-03-05 19:16 | ioritzCia | Assigned To | => platform | ||
2020-03-05 19:16 | ioritzCia | File Added: UserRoleEventHandler.diff | |||
2020-03-05 19:16 | ioritzCia | Web browser | => Google Chrome | ||
2020-03-05 19:16 | ioritzCia | Modules | => Core | ||
2020-03-05 19:16 | ioritzCia | Resolution time | => 1584572400 | ||
2020-03-05 19:16 | ioritzCia | Triggers an Emergency Pack | => No | ||
2020-03-05 19:17 | ioritzCia | Tag Attached: Performance | |||
2020-03-05 19:22 | ioritzCia | Web browser | Google Chrome => Google Chrome | ||
2020-03-05 19:22 | ioritzCia | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20521#r20521 | ||
2020-03-13 10:57 | caristu | File Added: UserRoleEventHandlerv2.diff | |||
2020-03-13 11:01 | caristu | Note Added: 0118582 | |||
2020-03-13 11:01 | caristu | Assigned To | platform => ioritzCia | ||
2020-03-13 11:01 | caristu | Status | new => feedback | ||
2020-03-13 11:03 | caristu | Note Edited: 0118582 | bug_revision_view_page.php?bugnote_id=0118582#r20556 | ||
2020-03-13 11:04 | caristu | Web browser | Google Chrome => Google Chrome | ||
2020-03-13 11:04 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=20557#r20557 | ||
2023-12-11 23:24 | dmitry_mezentsev | Review Assigned To | => dmitry_mezentsev | ||
2023-12-11 23:24 | dmitry_mezentsev | Note Added: 0158061 | |||
2023-12-11 23:24 | dmitry_mezentsev | Status | feedback => closed | ||
2023-12-11 23:24 | dmitry_mezentsev | Resolution | open => out of date |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|