You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Gert Vanthienen (Created) (JIRA)" <ji...@apache.org> on 2012/03/26 14:38:26 UTC
[jira] [Created] (XBEAN-203) Performance improvement by adding
local cache for MultiParentClassLoader#loadClass
Performance improvement by adding local cache for MultiParentClassLoader#loadClass
----------------------------------------------------------------------------------
Key: XBEAN-203
URL: https://issues.apache.org/jira/browse/XBEAN-203
Project: XBean
Issue Type: Improvement
Components: classloader
Affects Versions: 3.7
Reporter: Gert Vanthienen
While profiling for performance issues on ServiceMix, we noticed a lot of time was spent waiting for the object lock to access MultiParentClassLoader's loadClass() method, especially when using things like JAXP. We managed to get significant improvements by adding a local cache to avoid the synchronized method invocation for previously loaded classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (XBEAN-203) Performance improvement by adding
local cache for MultiParentClassLoader#loadClass
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/XBEAN-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet updated XBEAN-203:
----------------------------------
Fix Version/s: 3.12
Assignee: Guillaume Nodet
> Performance improvement by adding local cache for MultiParentClassLoader#loadClass
> ----------------------------------------------------------------------------------
>
> Key: XBEAN-203
> URL: https://issues.apache.org/jira/browse/XBEAN-203
> Project: XBean
> Issue Type: Improvement
> Components: classloader
> Affects Versions: 3.7
> Reporter: Gert Vanthienen
> Assignee: Guillaume Nodet
> Fix For: 3.12
>
> Attachments: 0001-XBEAN-203-Performance-improvement-by-adding-local-ca.patch
>
>
> While profiling for performance issues on ServiceMix, we noticed a lot of time was spent waiting for the object lock to access MultiParentClassLoader's loadClass() method, especially when using things like JAXP. We managed to get significant improvements by adding a local cache to avoid the synchronized method invocation for previously loaded classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (XBEAN-203) Performance improvement by adding local
cache for MultiParentClassLoader#loadClass
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/XBEAN-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed XBEAN-203.
---------------------------------
Resolution: Fixed
Fixed with a very minor modification to avoid a duplicate call to reference.get() which could actually be cleared the second time.
http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-classloader/src/main/java/org/apache/xbean/classloader/MultiParentClassLoader.java?rev=1347593&r1=1347592&r2=1347593&view=diff
> Performance improvement by adding local cache for MultiParentClassLoader#loadClass
> ----------------------------------------------------------------------------------
>
> Key: XBEAN-203
> URL: https://issues.apache.org/jira/browse/XBEAN-203
> Project: XBean
> Issue Type: Improvement
> Components: classloader
> Affects Versions: 3.7
> Reporter: Gert Vanthienen
> Assignee: Guillaume Nodet
> Fix For: 3.12
>
> Attachments: 0001-XBEAN-203-Performance-improvement-by-adding-local-ca.patch
>
>
> While profiling for performance issues on ServiceMix, we noticed a lot of time was spent waiting for the object lock to access MultiParentClassLoader's loadClass() method, especially when using things like JAXP. We managed to get significant improvements by adding a local cache to avoid the synchronized method invocation for previously loaded classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (XBEAN-203) Performance improvement by adding
local cache for MultiParentClassLoader#loadClass
Posted by "Gert Vanthienen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/XBEAN-203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gert Vanthienen updated XBEAN-203:
----------------------------------
Attachment: 0001-XBEAN-203-Performance-improvement-by-adding-local-ca.patch
Attached the output from git format-patch for the change we did to improve performance.
> Performance improvement by adding local cache for MultiParentClassLoader#loadClass
> ----------------------------------------------------------------------------------
>
> Key: XBEAN-203
> URL: https://issues.apache.org/jira/browse/XBEAN-203
> Project: XBean
> Issue Type: Improvement
> Components: classloader
> Affects Versions: 3.7
> Reporter: Gert Vanthienen
> Attachments: 0001-XBEAN-203-Performance-improvement-by-adding-local-ca.patch
>
>
> While profiling for performance issues on ServiceMix, we noticed a lot of time was spent waiting for the object lock to access MultiParentClassLoader's loadClass() method, especially when using things like JAXP. We managed to get significant improvements by adding a local cache to avoid the synchronized method invocation for previously loaded classes.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira