Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4DA26200CF8 for ; Wed, 16 Aug 2017 00:35:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4C9441674AE; Tue, 15 Aug 2017 22:35:07 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9111F1674E9 for ; Wed, 16 Aug 2017 00:35:06 +0200 (CEST) Received: (qmail 31497 invoked by uid 500); 15 Aug 2017 22:35:03 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 31486 invoked by uid 99); 15 Aug 2017 22:35:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2017 22:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E6DFAC0042 for ; Tue, 15 Aug 2017 22:35:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id liNG6BXevYr7 for ; Tue, 15 Aug 2017 22:35:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 779C05F239 for ; Tue, 15 Aug 2017 22:35:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AE553E01E5 for ; Tue, 15 Aug 2017 22:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3652620D34 for ; Tue, 15 Aug 2017 22:35:00 +0000 (UTC) Date: Tue, 15 Aug 2017 22:35:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-5665) High CPU usage on sun.reflect.Generated* class loads by log4j MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Aug 2017 22:35:07 -0000 [ https://issues.apache.org/jira/browse/FELIX-5665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127984#comment-16127984 ] ASF GitHub Bot commented on FELIX-5665: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/felix/pull/116 > 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)