Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 80196 invoked from network); 23 Jun 2009 11:37:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 11:37:08 -0000 Received: (qmail 52895 invoked by uid 500); 23 Jun 2009 11:37:19 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 52849 invoked by uid 500); 23 Jun 2009 11:37:19 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 52839 invoked by uid 99); 23 Jun 2009 11:37:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 11:37:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erik.engbrecht@gmail.com designates 209.85.219.223 as permitted sender) Received: from [209.85.219.223] (HELO mail-ew0-f223.google.com) (209.85.219.223) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 11:37:10 +0000 Received: by ewy23 with SMTP id 23so2344306ewy.12 for ; Tue, 23 Jun 2009 04:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=KxXl3a/DWgHAEhAXbdU8du1LP1t3IHsFAG6fPXi392U=; b=fH5VVYvVV8bNlm0yUCqXJSUYL8AI9luY8KPK8rlea6a+xOPkgXG7DGzo9d+wB2TH/X Chml1icGsedFC3EB9x6aarAb8MpLjAAx4YOAMZJLc6bE16e75jgATdpEB3ojcqNek6Hr P3uTERgui8oqAm18mSTfTrFc8sxy6VjsLVgwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ImBaIyWeHndzj4bwW9bFJNnlkX+GfRvbjYdGq2gHkNv1IOW4EEoPVaCE7U3O7FCLDx 2wIEe6E1da9RrGXZ+bmPbQXzNY0lYb2tHb9y+myHxmWUUwFr5SlsuDZwYeaTmAy4ZfLh cm89bHDiSfnZellMtwUvk20uGsZSbihdObdxE= MIME-Version: 1.0 Received: by 10.216.29.196 with SMTP id i46mr2600244wea.113.1245757009332; Tue, 23 Jun 2009 04:36:49 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Jun 2009 07:36:49 -0400 Message-ID: <9d8b82ea0906230436l1598b9f3l5b6738c251dc8d2b@mail.gmail.com> Subject: Re: Memory usage -> stability probs? From: Erik Engbrecht To: esme-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016368e2f4e0488f6046d026818 X-Virus-Checked: Checked by ClamAV on apache.org --0016368e2f4e0488f6046d026818 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -XX:+*HeapDumpOnOutOfMemoryError** **is also very useful for post-mortems.* On Tue, Jun 23, 2009 at 2:46 AM, Vassil Dichev wrote: > > I added code that will dump memory information every 10 minutes. Please > put > > the new code live. If it barfs, please send me the output (privately is > > better so we don't spam the list with a 10MB file) > > I'm running an instance on my local box and will see if I can find memory > > leaks. > > This is cool, but I'm afraid we might need some extra info from the > JVM. I'm not sure you can change the command-line or environment you > use to start the application in Stax, but this should display detailed > information for the Sun JVM. > > MAVEN_OPTS=-verbose:gc -XX:+PrintGCDetails -XX:+PrintClassHistogram > > and for extra debugging, you can turn on the built in profiler with > the following options: > > -Xrunhprof:heap=sites,cpu=samples,doe=y > > It will make the JVM run even slower, but could really pinpoint where > the problem was. > > As for thread dumps, they're even more useful if you encounter the > 100% CPU issue, but we need to send a signal to the JVM, which I'm not > sure you can do at all in a managed stax environment. There are > solutions to trigger it programmatically, but you need to include a > native library, which is another restriction we might not be able to > overcome. > > All in all, it would be much better if we can reproduce it locally, > where we can play with the application. I assume you couldn't set > MAVEN_OPTS last time there was a problem, since there was no feedback. > Monitoring an app for memory problems in a restricted environment is > notoriously hard. > > Vassil > -- http://erikengbrecht.blogspot.com/ --0016368e2f4e0488f6046d026818--