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 [mailto:ljnel...@gmail.com] 
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
Windows?

On Mon, Feb 1, 2010 at 1:35 PM, Laird Nelson <ljnel...@gmail.com> wrote:

> On Mon, Feb 1, 2010 at 1:32 PM, Christopher Schultz <
> ch...@christopherschultz.net> 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?

Best,
Laird


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

Reply via email to