ASF GitHub Bot commented on FELIX-5665:

GitHub user anilutcs opened a pull request:


    Terminate class load for sun.reflect.GeneratedMethodAccessor* when the 
property is set

    Refer to https://issues.apache.org/jira/browse/FELIX-5665 for more details.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/anilutcs/felix trunk

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #116
commit 27be0aa4a0c04e5028c2bc959d3576e928b123d5
Author: aattuluri <anilkumar_attul...@intuit.com>
Date:   2017-08-08T23:12:03Z

    Add property based termination of class search for 
sun.reflect.GeneratedMethodAccessor* classes.

commit daad505112c1cca0e6490c6a4c3462fe32a4ad3a
Author: aattuluri <anilkumar_attul...@intuit.com>
Date:   2017-08-09T03:49:06Z

    Move termination to not incur the cost of boot delegation.

commit e06ff2a77aa395a0140512168a22cb6237638ed1
Author: aattuluri <anilkumar_attul...@intuit.com>
Date:   2017-08-09T03:56:06Z

    Rename property.


> High CPU usage on sun.reflect.Generated* class loads by log4j 
> --------------------------------------------------------------
>                 Key: FELIX-5665
>                 URL: https://issues.apache.org/jira/browse/FELIX-5665
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: framework-5.6.4
>            Reporter: AnilKumar Attuluri
>             Fix For: framework-5.6.8
>         Attachments: IMG_1.jpg, IMG_2.jpg
> We have been running some performance tests to prepare our OSGi bundle 
> (*running in Apache Karaf*) for production.
> Just to give some background about our OSGi bundle, we converted an existing 
> Spring application into an OSGi bundle with all the current dependencies 
> packaged into the bundle as an uber artifact.
> When we run >= 500 TPS (each of these calls results in a http call made via a 
> library) we run into this high CPU usage spikes reaching up to 100% CPU. 
> Please see the image attached, the spikes in the image are 100% CPU usage 
> while the average is about 40%. Also see the CPU sampler image which points 
> to 
> *org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation*
> Is there an existing bug/documentation that already captures this?
> We don't see this behavior when we run the same app in standalone JVM.

This message was sent by Atlassian JIRA

Reply via email to