tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sateesh Narahari" <>
Subject RE: Getting a heap dump on OOME from Tomcat-as-a-service on Windows?
Date Mon, 01 Feb 2010 22:41:59 GMT
When you view service properties, does it run under system account or did
you give it a specific account to run under. You might try to use your
account under 'Log On' tab and see if you get results.  

(Assume this works when you run this from commandline ).

-----Original Message-----
From: Laird Nelson [] 
Sent: Monday, February 01, 2010 2:23 PM
To: Tomcat Users List
Subject: Re: Getting a heap dump on OOME from Tomcat-as-a-service on

On Mon, Feb 1, 2010 at 1:35 PM, Laird Nelson <> wrote:

> On Mon, Feb 1, 2010 at 1:32 PM, Christopher Schultz <
>> wrote:
>> Have you tried the -XX:HeapDumpPath option as well?
> Yes, with no results.
>> 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.
> Duh; why didn't I think of that?  Thanks for pointing that out.  I'll try
> it.

Gave Everyone full control of the C:\crap directory.  Configured Tomcat
through the service monitor to also append -XX:HeapDumpPath=C:\crap to the
list of Java options.  Started and stopped the service.  Ran the build.
Heap dumped, but no file was produced.  Searched the entire computer for
.hprof files; no results.

Anything else before giving up?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message