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 E42AF9C3F for ; Thu, 9 Feb 2012 11:23:22 +0000 (UTC) Received: (qmail 95090 invoked by uid 500); 9 Feb 2012 11:23:21 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 94970 invoked by uid 500); 9 Feb 2012 11:23:20 -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 94962 invoked by uid 99); 9 Feb 2012 11:23:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 11:23:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 11:23:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6C8221ACD41 for ; Thu, 9 Feb 2012 11:22:59 +0000 (UTC) Date: Thu, 9 Feb 2012 11:22:59 +0000 (UTC) From: "Sagara Gunathunga (Commented) (JIRA)" To: java-dev@axis.apache.org Message-ID: <659426373.18991.1328786579445.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <43830827.76283.1327492842601.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AXIS2-5233) OutOfMemory after redeploy services 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-5233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13204451#comment-13204451 ] Sagara Gunathunga commented on AXIS2-5233: ------------------------------------------- Can you provide more details to reproduce this issue ? If we know exact conditions that cause to this issue then it's easy to fix. > OutOfMemory after redeploy services > ----------------------------------- > > Key: AXIS2-5233 > URL: https://issues.apache.org/jira/browse/AXIS2-5233 > Project: Axis2 > Issue Type: Bug > Components: kernel > Affects Versions: 1.6.1 > Reporter: Oleh > > We have OutOfMemory error after redeploy services. > PROBLEM: > Class org.apache.axis2.deployment.DeploymentEngine has scheduler. > If (hotdeployment = true) we have startSearch in loadServices method. > But we don't clean old scheduler in startSearch method ! > Old SchedulerTask has old RepositoryListener (old WSInfoList) > Old WSInfoList has all old services ! > The scheduler starts thread as deamon. > The Thread is running..running..... > New deploy -> new Thread > The Thread has old data (WSInfoList) and may be GC don't clear memory (Thread has link to data) > We have result:OutOfMemory :( > SOLUTION 1 > Fixed class org.apache.axis2.deployment.DeploymentEngine > Method startSearch(RepositoryListener listener) > Old Variant > protected void startSearch(RepositoryListener listener) { > scheduler = new Scheduler(); > scheduler.schedule(new SchedulerTask(listener), new DeploymentIterator()); > } > Fix Variant > protected void startSearch(RepositoryListener listener) { > if (scheduler != null) { > scheduler.cleanup(); // May be it is very important !!! : ) > } > scheduler = new Scheduler(); > scheduler.schedule(new SchedulerTask(listener), new DeploymentIterator()); > } > SOLUTION 2 (temp) - Disable Hot Deployment > File axis2.xml > false -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org