Bug 758667 - Browser resources consumption grows when saving assets
Summary: Browser resources consumption grows when saving assets
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ER4
: BRMS 5.3.0.GA
Assignee: Mark Proctor
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-30 11:40 UTC by Jiri Locker
Modified: 2022-11-15 23:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously when saving assets in the BRMS user interface, the browser CPU usage spiked and from a user's perspective the browser appeared to freeze. This issue was present in JBoss BRMS 5.2.0, however, is not present in JBoss BRMS 5.3.0.
Clone Of:
Environment:
Firefox 3, 5; IE8
Last Closed:
Type: ---


Attachments (Terms of Use)

Description Jiri Locker 2011-11-30 11:40:55 UTC
Description of problem:
Saving certain types of assets (e.g. models, dsl configurations, not rules) causes a significant peak in browser's CPU usage. From the user's point of view the browser simply freezes for a period of time. Duration of the peak load and memory usage increases with the number of continuous save operations, where 'continuous' means without logging out and back in.

Version-Release number of selected component (if applicable):
BRMS 5.3.0.DEV5

How reproducible:
always

Steps to Reproduce:
1. import mortgage sample repo; open ApplicantDsl
2. keep saving it repeatedly until browser response time becomes uncomfortable (~10 rounds)
3. after logging out, browser memory usage drops
  
Actual results:
It's not possible to work in Guvnor continuously without relogging if you save models and DSL configurations (maybe other asset types too) often.

Expected results:
Guvnor's resources (CPU, memory) demand shouldn't depend on the number of performed save operations. User shouldn't be forced to relog in order to continue working.

Additional info:

Comment 1 Toni Rikkola 2011-12-08 12:30:51 UTC
My guess is that the suggestion completition engine is doing too much or leaking memory.

Comment 2 Geoffrey De Smet 2011-12-19 09:28:46 UTC
To add the logging to every service call, we 'll have to create a simple "AbstractGuvnorServlet (or Service)" and let all our guvnor services extend that. Then put an Interceptor on it that only activates during development to log it.

Seam doesn't provide such an Interceptor out of the box, but it should be easy to write (and to contribute back to seam).

Comment 3 Jiri Locker 2011-12-20 14:19:47 UTC
I just noticed a mistake in the description (expected results) and I don't know how to edit it. Just s/Guvnor/Browser/. It's the browser that is consuming more and more CPU and memory. Seems like there's a poor JavaScript code on the client side.

Comment 4 Jiri Locker 2012-01-31 13:38:33 UTC
Confirming the regression, couldn't reproduce with 5.2.

Comment 5 Ryan Zhang 2012-02-15 09:12:35 UTC
Please verify the issue on 5.3 ER4.

Comment 7 Jiri Locker 2012-05-07 18:01:51 UTC
Couldn't reproduce in ER6, so I consider this issue fixed.

Comment 9 lcarlon 2012-06-04 02:51:00 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Previously when saving assets in the BRMS user interface, the browser CPU usage spiked and from a user's perspective the browser appeared to freeze. This issue was present in JBoss BRMS 5.2.0, however, is not present in JBoss BRMS 5.3.0.


Note You need to log in before you can comment on or make changes to this bug.