Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5665

High CPU usage on sun.reflect.Generated* class loads by log4j

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-5.6.4
    • framework-5.6.8
    • Framework
    • None
    • Important

    Description

      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.

      Attachments

        1. FELIX-5665.patch
          5 kB
          Karl Pauls
        2. IMG_1.jpg
          3.04 MB
          AnilKumar Attuluri
        3. IMG_2.jpg
          4.60 MB
          AnilKumar Attuluri

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              aattuluri AnilKumar Attuluri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: