Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52903 invoked from network); 1 Feb 2010 18:33:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Feb 2010 18:33:26 -0000 Received: (qmail 13233 invoked by uid 500); 1 Feb 2010 18:33:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 13156 invoked by uid 500); 1 Feb 2010 18:33:22 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 13145 invoked by uid 99); 1 Feb 2010 18:33:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 18:33:22 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.96] (HELO qmta09.westchester.pa.mail.comcast.net) (76.96.62.96) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Feb 2010 18:33:13 +0000 Received: from omta03.westchester.pa.mail.comcast.net ([76.96.62.27]) by qmta09.westchester.pa.mail.comcast.net with comcast id chPC1d00i0bG4ec59iYtfN; Mon, 01 Feb 2010 18:32:53 +0000 Received: from [192.168.1.202] ([98.218.200.175]) by omta03.westchester.pa.mail.comcast.net with comcast id ciYt1d00F3nZbXm3PiYtyS; Mon, 01 Feb 2010 18:32:53 +0000 Message-ID: <4B671E53.80605@christopherschultz.net> Date: Mon, 01 Feb 2010 13:32:51 -0500 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Getting a heap dump on OOME from Tomcat-as-a-service on Windows? References: <2c0ebf0c1001310744x2e2a00d0id3a6884c6bd8e8c8@mail.gmail.com> In-Reply-To: <2c0ebf0c1001310744x2e2a00d0id3a6884c6bd8e8c8@mail.gmail.com> X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Laird, On 1/31/2010 10:44 AM, Laird Nelson wrote: > I have Tomcat 6 running as a service on Windows 2003. > > I go to the Tomcat service monitor, choose configure, choose the Java tab, > and add: > > -XX:+HeapDumpOnOutOfMemoryError > > ...as one of the Java options. > > When the OutOfMemoryError that I'm concerned about hits, I look around on > the disk to find an .hprof file. I searched the entire computer; no such > file is found. Have you tried the -XX:HeapDumpPath option as well? I suspect that your service doesn't have privileges to write to the cwd of the java process, so it doesn't write to the file. I don't know much about windows privs, but I suspect that writing to %TEMP% will work, though I have no idea where %TEMP% points for service runners. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktnHlMACgkQ9CaO5/Lv0PB4/gCeLDWxZWWduo4DfI6QRaYBBaYn IZwAoMCuS2gkGzA8MpA+p6TCdFMD+m83 =u1Ip -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org