struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] [Resolved] (WW-3902) Performance - Locks in class loader
Date Wed, 17 Oct 2012 18:36:03 GMT


Lukasz Lenart resolved WW-3902.

    Resolution: Fixed
      Assignee: Lukasz Lenart

Patch applied, thanks!
> Performance - Locks in class loader
> -----------------------------------
>                 Key: WW-3902
>                 URL:
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - JSON
>    Affects Versions: 2.3.5
>            Reporter: Pelladi Gabor
>            Assignee: Lukasz Lenart
>            Priority: Minor
>              Labels: patch, performance
>             Fix For: 2.3.6
>         Attachments: WW-3902.diff
> JSONWriter is causing locks in class loader, because it always invokes Introspector.getBeanInfo().
That in turn tries to load a class with "BeanInfo" suffix in Introspector.findExplicitBeanInfo().
Such class does not exists, but we try to load it over and over again for every JSON result.
Class loading involves a lock in the application server, and this causes performance issue
in heavily multithreaded applications.
> This could be solved by caching the BeanInfo for the classes, for which I have created
a patch.
> The issue is also mentioned here:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message