java heap dump file gets too big

P

petereakin

Hi all

I have a tomcat server running on linux, there appears to have been a
crash last night and a massive heap file has been created which has
taken up all available disk space I think. As a result the core file
has not been created and I therefore don't have any meaningful
information as to why the crash occured.

Is there a way to tell tomcat or the JVM not to create the heap dump
file or can i limit the size of the file?

Also I need to make sure that the core file is still created?

Thanks
Peter
 
B

badjomoise

Hi,
I am very happy to write you this message because i have to know more
about programmation.I will be much gratefull if you could help me by
teaching me or by sending me some books..
 
P

petereakin

Guys can any1 give me any help with my original question? I really need
some advice on this.
 
P

petereakin

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?

Any help would be appreciated.
Peter
 
G

Gordon Beaton

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
 
P

petereakin

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
 
Joined
Sep 8, 2010
Messages
1
Reaction score
0
Heap dump file

Tool name called IBM Support Assistant. By using ISA, user can download MDD4J performance tool for finding memory leak in IBM WAS based applications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top