tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: How to get heap dump of Tomcat running as windows service.
Date Wed, 12 Sep 2012 12:14:11 GMT
On 12/09/2012 11:02, Aditi Sinha wrote:
> Hi,
> 
> 
> 
> We have web server hosted on Tomcat 7.0.22. Tomcat is running as windows
> service.
> 
> When we try to get the heap  dump of Tomcat using the following command
> 
> 
> 
> *jmap -dump:format=b,file=heap.bin <pid>*
> 
> 
> 
> we get below error
> 
> 
> 
> *<pid>: Not enough storage is available to process this command.*

probably because you have set a large heap size.

> When Tomcat is started manually in console (using command “catalina.bat
> start”), we are able to take the heap dump.

because you are probably not setting a heap size.

> Is there any workaround which would allow to take heap dump when Tomcat
> running as windows service?

make some more disk space available, sufficient to permit the heap to be
written to file.


p

> Thanks & Regards,
> 
> Aditi
> 


-- 

[key:62590808]


Mime
View raw message