Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 35718 invoked from network); 2 Feb 2010 23:49:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 23:49:58 -0000 Received: (qmail 42317 invoked by uid 500); 2 Feb 2010 23:49:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 42239 invoked by uid 500); 2 Feb 2010 23:49:54 -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 42228 invoked by uid 99); 2 Feb 2010 23:49:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 23:49:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.22.94.67] (HELO virtual.halosg.com) (72.22.94.67) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 23:49:44 +0000 Received: (qmail 12057 invoked from network); 2 Feb 2010 17:49:23 -0600 Received: from 209-255-238-122.ip.mcleodusa.net (HELO ?192.168.59.125?) (209.255.238.122) by halosg.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 2 Feb 2010 17:49:22 -0600 Message-ID: <4B68BA07.3070205@hanik.com> Date: Tue, 02 Feb 2010 16:49:27 -0700 From: Filip Hanik - Dev Lists User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Still unable to get a heap dump from Tomcat running on Windows as a service References: <2c0ebf0c1002021253i6f8a1938y35d89ce39f1b3ba3@mail.gmail.com> <99C8B2929B39C24493377AC7A121E21F96C401D8B8@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: <99C8B2929B39C24493377AC7A121E21F96C401D8B8@USEA-EXCH8.na.uis.unisys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org set the HeapDumpPath option, so you can actually write to a location on disk On 02/02/2010 02:19 PM, Caldarale, Charles R wrote: >> From: Laird Nelson [mailto:ljnelson@gmail.com] >> Subject: Still unable to get a heap dump from Tomcat running on Windows >> as a service >> >> I am still unable to get Tomcat to dump heap when it encounters an >> OutOfMemoryError. >> > You appear to be unique in that regard, since no one else seems to be having that problem. > > >> I'm using the graphical program that comes up when you select "Monitor >> Tomcat" from the Windows Start Menu. I assume this is TomcatW.exe? >> > Not quite; it's tomcat6w.exe (note the digit and no caps). > > >> I have Tomcat 6.0.20 running as a service under the default >> local user account >> > What's a "default local user account"? Try using a real account, possibly one in the administrators group to see if that makes a difference. > > >> set to be allowed to interact with the desktop >> > Not needed. > > >> I've specified -XX:HeapDumpPath=C:\crap, and -XX:HeapDumpPath=C:/crap >> to no avail. >> > Try just leaving that parameter out. > > >> I've set the working path for the Startup and Shutdown tabs >> to C:\crap and C:/crap with no effect. >> > The Shutdown working path doesn't matter, since that's not normally used. Try setting the Startup path to the Tomcat installation directory after reinstalling Tomcat. The direction of the slash doesn't seem to matter; I get the .hprof file generated in the designated directory regardless of which I use. > > >> I've set memory to a minimum of 512 and a maximum of 1024 MB. >> > You normally want those to be the same for a server environment to avoid heap thrashing. > > >> I entered the JVM options one per line. >> > That is a requirement. > > >> The tomcat documentation says to enter them separated by either >> a "#" or a ";" >> > That's for command-line usage, not the GUI. > > >> Does anyone have any other suggestions to try before giving up on >> Tomcat in favor of either Jetty or (God help me) JBoss? >> > Sounds like a baby with the bathwater solution... > > I would try removing the existing Tomcat service, reinstalling the current (6.0.24) Tomcat from the .zip download, using the service.bat script to create the service, and only then try recreating the OOM problem. Unpack the .zip download into someplace other than C:\Program Files. Also try setting the Level on the Logging tab to Debug rather than Error to see if that shows anything interesting. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org