[ 
https://jira.nuxeo.org/browse/NXP-5995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoit Delbosc resolved NXP-5995.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 5.4.1

Counting async thread execution on daily bench 

before fix:
http://qa.nuxeo.org/hudson/job/FT-nuxeo-5.4-funkload-bench/703/artifact/trunk/jboss/log/thread-usage-end.html

Thread Name     CPU (milliseconds)
Nuxeo Async Events 1-3  697810
Nuxeo Async Events 1-1  697780
Nuxeo Async Events 1-2  696890
Nuxeo Async Events 1-4  693550
TOTAL async thread: 2786s

after fix:
http://qa.nuxeo.org/hudson/job/FT-nuxeo-5.4-funkload-bench/709/artifact/trunk/jboss/log/thread-usage-end.html

Thread Name     CPU (milliseconds)
Nuxeo Async Events 1-4  351860
Nuxeo Async Events 1-3  351280
Nuxeo Async Events 1-1  348970
Nuxeo Async Events 1-2  348800
TOTAL async thread: 1400s

=> 2 times faster

> Improve performance of bundle events processing in async listener
> -----------------------------------------------------------------
>
>                 Key: NXP-5995
>                 URL: https://jira.nuxeo.org/browse/NXP-5995
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Improvement
>    Affects Versions: 5.4
>            Reporter: Benoit Delbosc
>            Assignee: Benoit Delbosc
>             Fix For: 5.4.1
>
>
> Async listener should not iterate on events when receiving EventBunde
>     public void handleEvent(EventBundle events) {
>         for (Event event : events) {
>             handleEvent(event);
>         }
>     }
> For async listener events are ReconnectedEventBundle and iterating on them 
> will reconnect all events, this means opening a session and create document 
> model and context for each event (see 
> ReconnectedEventBundleImpl.getReconnectedEvents())
> This is very expensive and useless if the listener is not interested in any 
> event in the bundle.
> A first optimisation may be to use containsEventName in the listener to check 
> if the interesting event is present in the bundle,
> that should not reconnect any events.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to