Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:01:11+00:00 2026-06-09T04:01:11+00:00

In a java heap dump how do I know exactly where in the code/which

  • 0

In a java heap dump how do I know exactly where in the code/which thread caused the dump?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:01:12+00:00Added an answer on June 9, 2026 at 4:01 am

    For reading the memory dumps:

    I would recommend you to try "eclipse memory analyzer" From here

    Another option (free) would be opening this with JVisualVM (available at $JAVA_HOME/bin)
    jhat is cool too but was already recommended 🙂

    Now, you’re asking about the thread that caused memory heap-dump and not about how to proceed with memory dump…
    It depends on how did you obtain the memory dump.
    There are different ways to obtain the dump.

    1. On your process you can instruct the JVM to produce memory dump once OutOfMemory error is encountered, in this case I believe it will be the JVM itself.

    2. You can trigger the heap dump creation from the MBean given you have a JMX Server running along with your JVM
      Example

    3. You can even use system calls (on linux) externally to your application: kill -3 _YOUR_JAVA_PROCESS_ID_ will generation the heapdump.

    But I hardly can imagine why would you need such an information. Later in comments you mention ‘exact line of code’ but these ways are usually external to your JVM… Are you sure you need a line of code that generated heap dump itself, or you’re trying to identify the real issue?

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does java 6 generate thread dump in addition to heap dump (java_pid14941.hprof) this is
I know the default Java heap memory is 128 MB. Since it is the
So I am writing a Java code to represent a heap sort and to
I have a curious problem, I need to analyze a Java heap dump (from
I want to get a heap dump (suspected memory leak) of a certain Java
The sun JVM supports a -XX:+HeapDumpOnOutOfMemoryError option to dump heap whenever a java process
I have a java application which is getting an OutOfMemoryError, for heap space. I've
I have a Java binary heap dump file. Is there a generic way to
I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than
I am new to Java, I just gone through heap dump analysis using eclispe's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.