Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0023428Openbravo ERPA. Platformpublic2013-03-28 01:402013-05-29 11:48
egoitz 
AugustoMauch 
urgentmajorhave not tried
newopen 
5
 
 
Core
No
0023428: When login the application the cpu consumes a lot of resources for few seconds and the memory also increases a lot
When login the application the cpu consumes a lot of resources for few seconds and the memory also increases a lot.

-Login the application while you are monitoring the system with visualvm.
*You will see that the cpu goes near to 100% for few seconds and that tomcat uses a lot of memory also for few seconds.

Performance
depends on design defect 0023550 closed alostale MenuManager resources consumption 
depends on defect 0023934 closed alostale Sequential scan on AD_Session when logging in 
html opener.html (522) 2013-04-15 12:22
https://issues.openbravo.com/file_download.php?file_id=6095&type=bug
html launcher.html (759) 2013-04-15 12:24
https://issues.openbravo.com/file_download.php?file_id=6096&type=bug
Issue History
2013-03-28 01:40egoitzNew Issue
2013-03-28 01:40egoitzAssigned To => AugustoMauch
2013-03-28 01:40egoitzModules => Core
2013-03-28 01:40egoitzTriggers an Emergency Pack => No
2013-04-02 08:41alostaleTag Attached: Performance
2013-04-02 11:54jonalegriaesarteTarget Version => 3.0MP23
2013-04-15 12:22alostaleFile Added: opener.html
2013-04-15 12:24alostaleFile Added: launcher.html
2013-04-15 12:31alostaleNote Added: 0057890
2013-04-15 13:28alostaleRelationship addeddepends on 0023550
2013-04-15 13:51alostaleNote Added: 0057902
2013-04-15 13:51alostaleTypedefect => design defect
2013-04-15 13:51alostaleTarget Version3.0MP23 =>
2013-05-29 11:48alostaleRelationship addeddepends on 0023934

Notes
(0057890)
alostale   
2013-04-15 12:31   
To test this issue.

* Open your /etc/hosts and add aliases to 127.0.0.1 with names lh1, lh2, ..., lhn where n is the number of simultaneous sessions to open
* Copy attached opener.html file to the web directory in your serving Tomcat
* Open your java profiler (such as VisualVM) and start profiling your OB instance
* Open with a browser attached launcher.html file, set number of sessions to open and interval in seconds. This will open a new popup for each session.
* Check times and memory consumption.

Executing this test for 20 sessions with 1 second interval, in a standard Openbravo instance removing all widgets in workspace, here you can find times splitted in different methods: https://docs.google.com/spreadsheet/ccc?key=0AmPGxKaZaJn-dGVOMXhGYzRGRlUzNWlmTHFJcGhtUmc&usp=sharing [^]

Also in this test case, analyzing a memory dump got after execution, it can be seen each of the 20 sessions is retaining ~7MB
(0057902)
alostale   
2013-04-15 13:51   
Updating to design defect to collect different issues related with resources consumed during log in/session change