You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2017/08/11 09:04:01 UTC

[jira] [Comment Edited] (FELIX-5665) High CPU usage on sun.reflect.Generated* class loads by log4j

    [ https://issues.apache.org/jira/browse/FELIX-5665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123055#comment-16123055 ] 

Karl Pauls edited comment on FELIX-5665 at 8/11/17 9:03 AM:
------------------------------------------------------------

[~aattuluri], I'm not sure wrt to the default behaviour. If my patch does what I think it does and it resolves the problem for you we might want to make it always work like this as I don't see any downsides - unless I'm missing something?

Anyways, first things first - lets see if it works for you. FWIW, I think your patch looks good now. We certainly can entertain the idea of applying it in case we can not get my approach to work. At any rate, having some tests for this will be very worthwhile - hence, at a minimum, we might want to take some of your testcases and adapt them to my approach.


was (Author: karlpauls):
[~aattuluri], I'm not sure wrt to the default behaviour. If my patch does what I think it does and it resolves the problem for you we might want to make it always work like this as I don't see any downsides - unless I'm missing something?

Anyways, first things first - lets see if it works for you.

> 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: FELIX-5665.patch, 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
(v6.4.14#64029)