Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83C0C17911 for ; Mon, 13 Oct 2014 08:41:34 +0000 (UTC) Received: (qmail 71783 invoked by uid 500); 13 Oct 2014 08:41:34 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 71626 invoked by uid 500); 13 Oct 2014 08:41:33 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 71616 invoked by uid 99); 13 Oct 2014 08:41:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2014 08:41:33 +0000 Date: Mon, 13 Oct 2014 08:41:33 +0000 (UTC) From: "Francisco Salvador (JIRA)" To: java-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AXIS2-5673) AxisAdminServlet initialization causes a memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14169080#comment-14169080 ] Francisco Salvador commented on AXIS2-5673: ------------------------------------------- Since I do not have a deep understanding of the architecture nor the components I have just patched the initialization. Probably the ContextConfiguration should manage stopping the ListenerManager before reassigning the reference but I would prefer some input here. > AxisAdminServlet initialization causes a memory leak > ---------------------------------------------------- > > Key: AXIS2-5673 > URL: https://issues.apache.org/jira/browse/AXIS2-5673 > Project: Axis2 > Issue Type: Bug > Components: admin console > Affects Versions: 1.6.2 > Reporter: Francisco Salvador > Priority: Minor > Attachments: AXIS2-5673.patch > > > After initialization of the AxisServlet, the initialization of the AxisAdminServlet associates to the ConfigurationContext (Shared amongs AxisServlets) a new ListenerManager overriding the existing one. > The Listermanager.stop() method is never called on the old one so the system shutdown hook is never removed causing the object to be skipped form the garbage collection. > This causes a memory leak and the following OutOfMemoryError: PermGen after the axis2 application is reloaded several times. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org