tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sateesh Narahari" <sateesh.narah...@gmail.com>
Subject RE: Still unable to get a heap dump from Tomcat running on Windows as a service
Date Tue, 02 Feb 2010 21:40:41 GMT
The default user account 'System' has some weird permission state on
Windows, so try the admin user.  Also, review the event log  ( Windows Log,
Security ) if it yields any information. 

I believe you can also download resource kit from Microsoft that has tools
that lets you watch all objects opened by a process ( so, look if Tomcat is
even trying to open the file ). Its been a while, so don't recall tool
sytax.


-----Original Message-----
From: Laird Nelson [mailto:ljnelson@gmail.com] 
Sent: Tuesday, February 02, 2010 1:31 PM
To: Tomcat Users List
Subject: Re: Still unable to get a heap dump from Tomcat running on Windows
as a service

On Tue, Feb 2, 2010 at 4:19 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> 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.
>

Well aware of that; thanks!  The reason I'm bringing it up on this list is
just because I'm using the graphical tool without doing any egregious
hacking, and it is not working the way I would expect it to.  In such cases
I blame the software until it is proven that I am putting in bad inputs, at
which point I cheerfully blame myself and move on.  No one has accused me so
far of putting in bad inputs, and I can't see any myself.


> > I have Tomcat 6.0.20 running as a service under the default
> > local user account
>
> What's a "default local user account"?


The one selected by default when one chooses the "Log On" tab of the
graphical Tomcat monitor.  The value of the label is: "Local System
account".  That radio button is checked.


>  Try using a real account, possibly one in the administrators group to see
> if that makes a difference.
>

I will try this; thanks.


>  > set to be allowed to interact with the desktop
>
> Not needed.
>

I'll make sure this is off.


>  > I've specified -XX:HeapDumpPath=C:\crap, and -XX:HeapDumpPath=C:/crap
> > to no avail.
>
> Try just leaving that parameter out.
>

Yep; tried that too.

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.
>

OK.


>  > 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.
>

OK; will change.


>  > I entered the JVM options one per line.
>
> That is a requirement.
>

Good to know; thanks.


> > Does anyone have any other suggestions to try before giving up on
> > Tomcat in favor of either Jetty or (God help me) JBoss?
>
> 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.
>

OK; for various reasons I can't do the reinstall (without bureaucratic
wrangling).  I did the initial install from the Windows executable installer
available from the main download site.  It was beautifully simple and I let
it set things up for me.  Is there any reason to suppose that such an
installation is somehow borked?  Is there a problem with the out-of-the-box
Windows experience that is heavily promoted on the Apache site?

Thanks for the help!

Best,
Laird


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message