• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to perform a core dump

 
Jay Damon
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a previous post, jiju ka suggested I take a core dump when the problem was observed. kundan sinha inquired as to how to perform a core dump but there was no response, subsequent post (as suggested) or anything in search history that indicates how a dump on a running server is performed.

Can someone outline how to perform a core dump on a running server? Also, what kinds of information are provided? I am currently tackling a memory leak issue. Would looking at a core dump be useful?
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think a core dump would be helpful. I think Jiju means a thread dump. Here is an introduction to Java Stack Traces that includes how to generate the dump. They are useful in detecting deadlocked threads, which may or may not be part of your problem.
 
Adam Richards
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you still want a core dump, look at the Java Native Interface (JNI). Java can't read memory locations directly.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!