> OK I have just learned that the java is not running through tomcat
> but is running on a unix server and is using AIX 5.1 I think. I
> don't have much experience with this but I'm guessing there should
> be a setting in the java virtual machine?
I believe the size of the heap dump is directly related to the size of
the heap itself. On AIX I suspect you're using IBM's rather than Sun's
JVM, but you should still be able to type "java -X" to see what
options you can use to limit the size of the heap (-Xmx for example).
Note that if *no* core dump was created (not even an empty file), it
is likely due to a ulimit setting affecting the Java process. Type
"ulimit -a" in a shell. If corefile size is 0, no attempt will be made
to create a corefile regardless of its size or the available space.
Note that this is a per-process setting, so changing the ulimit value
in *your* shell won't have the desired effect.
I suspect the heap dump is more useful than the corefile, for example
if your application is running out of memory. IBM Alphaworks has some
tools to help analyze the Java heap dump, use Google.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
petereakin@gmail.com - 25 Apr 2006 08:46 GMT
Yea i thought the heap dump size would be related to the heap itself
but is there a way I can leave the heap size as it is but when a crash
occurs not create a dump file which is so large?
Is there a way to limit the size of the dump file?
Thanks again.
Peter