Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 33579 invoked from network); 1 Oct 2010 17:01:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 17:01:42 -0000 Received: (qmail 97072 invoked by uid 500); 1 Oct 2010 17:01:41 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 96979 invoked by uid 500); 1 Oct 2010 17:01:41 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 96972 invoked by uid 99); 1 Oct 2010 17:01:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 17:01:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kevan.miller@gmail.com designates 209.85.160.182 as permitted sender) Received: from [209.85.160.182] (HELO mail-gy0-f182.google.com) (209.85.160.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 17:01:32 +0000 Received: by gyg4 with SMTP id 4so1530108gyg.13 for ; Fri, 01 Oct 2010 10:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=mQ+IUJMCJCuLLZXQPRvlDnzoiV1E+ywLYbb1IKi+vJk=; b=uf20uiYrGtIoeiF/8cGInei1YW2N9STjSRe+XjL9a/9fVAIFCSlKHUTW5zaES5mvgn T8e6zxlaH6qE+XgIssjgVmlYrwizs7cSDbDJzSTUKix96aM4OckSHTwqpM4AR5Y5cWB5 MnT86Y/Gh1ZVhl+MET1nI87mqgR8PGuU3oFeI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=bs1xbtO7l5P4ifm927tH0suKohqXQS1SXgqFRCCjYEIDR1/E22mIGZNcCNPT3cW1dW BM7ZkTDb9RO8YwbysR8evsND6bAiKDn8+q7H+B1NjG2y21yZvpgXyU7zrh/7WDsKVwqA K1LqCevnreTboEgAqEO3ikt/guelTLWXX1/W4= Received: by 10.101.139.28 with SMTP id r28mr779852ann.207.1285952471221; Fri, 01 Oct 2010 10:01:11 -0700 (PDT) Received: from [10.0.1.200] (cpe-075-189-199-238.nc.res.rr.com [75.189.199.238]) by mx.google.com with ESMTPS id f29sm2088304anh.11.2010.10.01.10.01.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 01 Oct 2010 10:01:10 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: Memory leak using Geronimo 2.1.4? Having 116760 instances of LifecycleEvent From: Kevan Miller In-Reply-To: <1285948748971-1615458.post@n3.nabble.com> Date: Fri, 1 Oct 2010 13:01:08 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1285948748971-1615458.post@n3.nabble.com> To: user@geronimo.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 1, 2010, at 11:59 AM, boes wrote: > I need help. How can I debug this problem? You've got a good start -- a heap dump that shows a number of = LifecycleEvent and Container instances. They should definitely be = investigated. I've found YourKit to be very helpful in analyzing heapdumps. I've never = used jhat, but have used Eclipse MAT, which should do the job, also...=20= Using the tool, you want to identify the GC roots of the LifeCycleEvent = and/or Container objects. By GC Root, I mean the chain of references = which are preventing the objects from being GC'ed.=20 > Is it a Geronimo or a Tomcat > issue? What part of Geronimo or Tomcat generates all these = LifecycleEvents? > Can it be a result of some programming errors in our application? I = looked > in the heap dump for classes from our own application and the first in = the > list only has 208 instances. I don't recall seeing a similar problem. So, can't predict where the = problem is, yet. What are you doing with the server. Are you = deploying/redeploying many applications? Are you stopping/starting = modules? LIfecycleEvents get generated when Tomcat components change state = (start, stop, etc). I think I recall a timer-based lifecycle event, = also. =20 Given the number of Container[] objects, I would say they must be = Container events... If you can inspect the contents of the = LifeCycleEvents, there should be a type field which will tell you what = type of events are being generated. --kevan=