jmap Questions

8

I am creating heap dump using below command: jmap -dump:file=DumpFile.txt <process-id> I have opened the generated file - DumpFile.txt but it is not in readable format. So please let me kn...
Oliguria asked 28/2, 2013 at 8:38

3

Solved

I am trying to analyse a heap dump taken from a java process that ran into memory issues. The dump was taken using jmap. I am using jhat on the dump file - I am getting java.io.IOException: Unrec...
Collodion asked 19/3, 2013 at 18:0

8

Solved

I have generated a heap dump from my java application which has been running for some days with the jmap tool -> this results in a large binary heap dump file. How can I perform memory analysis of...
Charters asked 20/10, 2014 at 7:25

12

Solved

So I am looking at a heap with jmap on a remote box and I want to force garbage collection on it. How do you do this without popping into jvisualvm or jconsole and friends? I know you shouldn't be...
Sarene asked 19/8, 2010 at 16:17

5

When I use jmap to get the heap info about a process, I got error like that: $jmap -heap process_id Attaching to process ID process_id, please wait... Error attaching to process: sun.jvm.hotspot....
Hillock asked 2/8, 2016 at 1:29

2

Solved

I understand the difference between new gen / old gen /perm gen, but I don't know what "To Space" and "From Space" are. I am seeing my "From Space" hitting 99.8% used while the "To Space" always se...
Cobweb asked 27/2, 2013 at 21:11

3

When I ran below jmap command: jmap -histo 14104 I am able to see very nice output of my objects, there instances, bytes used. num #instances #bytes class name --------------------------------...
Trishatriskelion asked 5/8, 2015 at 13:17

1

Solved

I am trying to take heap dump using below 2 commands jcmd $pid GC.heap_dump /tmp/filename.dump jmap -dump:format=b,file=/tmp/filename.dump $pid jcmd produces file size of ~300M and jmap produc...
Stenophyllous asked 28/8, 2018 at 8:33

1

Solved

jmap help shows: ... -dump:<dump-options> to dump java heap in hprof binary format dump-options: live dump only live objects; if not specified, all objects in the heap are dumped. ....
Ayrshire asked 3/4, 2019 at 13:30

5

In few circumstance, our application is using around 12 GB of memory. We tried to get the heap dump using jmap utility. Since the application is using some GB of memory it causes the application to...
Lustre asked 30/12, 2013 at 3:12

1

Solved

Using jmap on Ubuntu Mate 18.04-64bits with Oracle JDK 10.0.1-64bits, the tool works only when running both the target and the tool as root, but using the same normal user for running both gives th...
Hainan asked 22/6, 2018 at 11:15

3

Solved

I'm on ubuntu, and I need to confirm the heap size setting is being used by tomcat. How can I do that? I tried jmap but that doesn't seem to be on the server, can I download it individually someh...
Malignant asked 21/12, 2011 at 20:25

2

I get the following exception when i take a heapdump using jmap -F -dump:format=b,file=/tmp/heapdump/before.hprof 10737 Attaching to process ID 10737, please wait... Exception in thread "main" j...
Cumquat asked 20/11, 2013 at 23:40

3

Long story short, some coworkers are running a pretty old setup(oc4j jdk1.5.6 in x86_64) with an application which happens to be mission critical. They recently have tried to deploy a new version o...
Ermey asked 25/3, 2017 at 9:5

2

Solved

Problem We are trying to find the culprit of a big memory leak in our web application. We have pretty limited experience with finding a memory leak, but we found out how to make a java heap dump u...
Wolsey asked 28/8, 2015 at 13:2

3

Solved

We recently had one of our JVM's crash, leaving behind a core dump file produced by the gcore command. We want to have a look at the contents of the file and find out exactly what caused the crash....
Charwoman asked 2/4, 2012 at 17:41

2

Solved

I troubleshoot a weird memory leak. It's specific to Java8, not happening on 7u79. I don't have access to Java code. I know exactly which user action causes a leak, I know the leak is about the cl...
Darryldarryn asked 21/9, 2016 at 12:5

3

Solved

Does my java application continue running while jmap is taking its memory dump?
Petrography asked 13/3, 2011 at 2:32

1

Solved

I want to figure out why JVM heap usage on Elasticsearch node is staying consistently above 80%. In order to do this, I take a heap dump by running jmap.exe -heap:format=b 5348 (5348 is the Proc...
Valerle asked 4/3, 2016 at 9:55

1

We are working over our client's production server heap to detect and solve memory leaks. For this we are using jmap periodically to collect the necessary information. But last week we couldn't ta...
Winonawinonah asked 13/12, 2013 at 16:14

1

Had a Java core dump; running jmap with: /usr/java/jdk1.8.0_25/bin/jmap -dump:format=b,file=dump.hprof /usr/bin/java core.31497 Gives the following exception: Attaching to core core.31497 from...
Sungkiang asked 12/11, 2014 at 8:11

0

Using the tool jmap, you can create a memory dump in two formats: Binary format: jmap -dump:format=b,file=binary_dump.dat <pid> or Other format: jmap -dump:file=other_format_dump.dat &lt...
Abate asked 19/6, 2015 at 16:13

1

We have java streaming server running in production and it requires ~10GB of RAM for operation so we have 32GB installed. Memory is gradually increased until limit is reached and out-of-memory exce...
Duclos asked 4/6, 2014 at 9:33

1

Solved

I'm trying to troubleshoot a permgen leak, and wanted to ask you folks for your opinions on how to interpret the output from jmap -permstat. Let's say that I have a jmap -permstat report, like thi...
Wellmeaning asked 13/11, 2012 at 17:49

5

Solved

I have a java program which keeps calling java.util.zip to compress/decompress data. It runs out of memory within a few seconds. I had a memory dump with jmap and I'm viewing it with jhat. Finalize...
Renell asked 21/11, 2012 at 18:54

© 2022 - 2024 — McMap. All rights reserved.