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 6753845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:12:37+00:00 2026-05-26T13:12:37+00:00

The man page says If the given process is running on a 64-bit VM,

  • 0

The man page says

If the given process is running on a 64-bit VM, you may need to specify the -J-d64 option

and that’s it. Some heap dump howtos do include it, without explanation.

More specifically, I’m trying to figure out if not specifying that option might be corrupting my heap dumps (jhat can’t read them). Experimenting blindly is costly, as the heap is large, the system is a live one, and there are specific points during operation at which I need 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-05-26T13:12:38+00:00Added an answer on May 26, 2026 at 1:12 pm

    Snippet of jmap‘s help message:

    λ > jmap 
    Usage:
        jmap [option] <pid>
            (to connect to running process)
        jmap [option] <executable <core>
            (to connect to a core file)
        jmap [option] [server_id@]<remote server IP or hostname>
            (to connect to remote debug server)
    
    where <option> is one of:
        <none>               to print same info as Solaris pmap
        -heap                to print java heap summary
        ... stuff ...
        -J<flag>             to pass <flag> directly to the runtime system
    

    So you see the -J flag passes arguments directly to the JVM.

    Look at the jvm help message:

    λ > java
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)
    
    where options include:
        -d32          use a 32-bit data model if available
        -d64          use a 64-bit data model if available (implies -server, only for x86_64)
    

    So jmap -J-d64 is really telling jmap to start java -d64, using a 64-bit model instead of 32-bit.

    If the process you’re running jmap on is not a 64-bit JVM, do not pass the -J-d64 argument.

    edit since I have done a lot of jmap/jhat to troubleshoot

    When you say corrupted, do you mean jhat actually reports a corrupted heap dump? Or is it because your heap dump is too large to read? jhat will attempt to load the entirety of the dump into memory, so you will need at least as much free memory as the size of the dump. You might need to specify -Xmx to jhat, as well as J-d64 to increase the heap space.

    A much better alternative that I use is Eclipse Memory Analyzer Tool, which does selective loading of the heap dump rather than preload everything. It was much better on 6+ GB heap dumps than jhat was for me.

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

Sidebar

Related Questions

The man page for the splice system call says that splice may fail and
From the XDrawString man page it seems that it aceepts signed 32 bit x
GNU xargs has option '-x'. The man page says: -x Exit if the size
The man page for Bash says, regarding the -c option: -c string If the
The man page of epoll_ctl() says about EPOLLPRI : There is urgent data available
After reading the mkdir(2) man page for the Unix system call with that name,
The man page says: fgets() return s on success, and NULL on error or
I looked at bash man page and the [[ says it uses Conditional Expressions.
I could use getpass() to get a password. However, the man page says: This
From the recv(2) man page: MSG_WAITALL This flag requests that the operation block until

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.