cancel
Showing results for 
Search instead for 
Did you mean: 

Heap dump file - Generate to a different folder

Former Member
0 Kudos

Hello,

When the AS Java iis generating the heap dump file, is it possible to generate it to a different folder rather than the standard one: /usr/sap// ?

Best regards,

Gonçalo Mouro Vaz

Accepted Solutions (1)

Accepted Solutions (1)

former_member214355
Contributor
0 Kudos

Hello Gonçalo

I don't think this is possible.

As per SAP Note 1004255;

On the first occurrence (only) of an OutOfMemoryError the JVM

will write a heap dump in the

/usr/sap/ directory

Can i ask why you would like it in a different folder?

Is it a space issue?

Thanks

Kenny

former_member214355
Contributor
0 Kudos

Hello Gonçalo

The size of the heap dump file is usually about the size of the used

heap at the moment the heap dump is written. Therefore, with big heaps,

one has to take care about disk space. There is an additional option

which could be used to specify where the files should be written to -

-XX:HeapDumpPath=

Thanks

Kenny

Former Member
0 Kudos

Hello Kenny,

Thanks, it exactly serves my purposes.(10points!)

Best regards,

Gonçalo Mouro Vaz

Answers (0)