Questions tagged [jmap]

A Hotspot JVM command-line utility that prints memory-related statistics for a running JVM or core file.

jmap is a command-line utility that serves as a tool for troubleshooting various memory-related issues in a Java Virtual Machine (JVM). jmap is distributed as a part of Oracle's Hotspot JVM, and so it can be used only for the Hotspot JVM.

jmap usually prints memory-related statistics for a running JVM or core file. Typical uses of jmap are :

  • jmap -histo <jvm-pid> - which prints class histogram of the instances present in the heap
  • jmap -heap <jvm-pid> - which prints a heap summary

A full list of command line options is available here.

163 questions
0
votes
1 answer

jmap -F(force) option doesn't work

I was diagnosing a JVM problem with jmap command: jmap -histo:live and got the following prompt: : Unable to open socket file: target process not responding or HotSpot VM not loaded The -F option can be used when the target process is…
Weibo Li
  • 3,565
  • 3
  • 24
  • 36
0
votes
0 answers

Several Full GCs, heap size reached XmX which is 1.2g but heap dump shows data only for 200m

We noticed frequent Full GC entries in the GC log(for more than 3-4 hrs). Our XmX was 1.2g and all full GC's didn't recover much. VM stayed at around 1 g. To see what is held in the heap, we took the heap dump but in Memory Analyzer Tool, we see…
0
votes
1 answer

How represent Routing in JMapViewer

I use JMapViewer to draw the map in my java desktop application. I would know if exists some methods that I can use to draw the shortest path between to Point following the car path.
0
votes
0 answers

Alignment in JMapPane in java Swing ANd Geotools10.X

I am having a problem displaying a plot in jmap pane... i have a application written using geotools 10 and java swing. we are using JMapPane to display shape file map. when a user clicks a plot a new tab is opened and the details of the plots are…
adhikari
  • 112
  • 2
  • 13
0
votes
1 answer

Java memory: where are the references coming from?

I have a Java program that is using a lot of memory. I used jmap -histo:live to track down the objects that are using all the memory. There are only a couple of types that are using up most of the memory, there are > 1M of them, but I can't…
OneSolitaryNoob
  • 5,423
  • 3
  • 25
  • 43
0
votes
0 answers

jmap tool work for JVM 1.3 and older?

Can we use the jmap tool (version Java 1.4) to generate a heap dump file for an older jvm version? For example Java 1.3? If it is not possible, is there a way to get a heap dump from the Java 1.3 JVM?
jamel
  • 303
  • 2
  • 7
  • 16
0
votes
2 answers

JMAP command and error of debuggee is 64 bit

I need heap dump of the web logic server that's running on IST environment. I don't have access to that so I have asked support team to do that. The command that's executed is as following on UNIX: ./jmap -heap:format=b 19153 When support team…
Ketan
  • 738
  • 2
  • 9
  • 20
0
votes
1 answer

jmap dump not working

no exception is thrown but I still cant find the dump.bin file in my desktop folder, is my path wrong? public static void dumpHeap() { System.out.println("dumping data"); String name =…
user494461
0
votes
1 answer

Execute jmap inside java program to generate dumps for the same process

Is it possible to execute 'jmap' at different spots inside my java-programm to generate dump files. I guess one must get the own process ID and than execute the command via Runtime().exec() or similar. Didn't succeed though. Chris
Christian
  • 1,308
  • 3
  • 14
  • 24
0
votes
1 answer

blazesds consuming huge memory

BlazeDS 4 is used to communicate with Flex4.6. When flex client invokes a remote call on blazeds server, server returns an arrayList containing POJOs. Assuming each POJO mem size is 12 bytes, I am expecting the arrayList size to be 12*number of…
thameem
  • 21
  • 2
0
votes
1 answer

How can I analyze what objects are in which generation?

I have a long-running (multiple days) application with objects that I expect to stay around for varying lengths of time before they can be garbage collected. Let's say there's four categories: Very short-lived (<1s) Alive for the duration of user…
sharakan
  • 6,821
  • 1
  • 34
  • 61
0
votes
1 answer

JMAP -dump not excuted on java: runtime.exec()

i have tried to execute the 'jmap -dump:format =b; file" command in runtime.exec(), but it wont execute where other commands like date, pwd are working fine. can anyone know why? public static void commands(String s) { …
Loga
  • 658
  • 1
  • 7
  • 17
-1
votes
3 answers

Why all java utils for dumping heap are not working? How to dump heap?

I'm tired to trying to dump java heap when I need it. Any time when I could do that none of utils are not able to do that. I'm trying jmap, jvisualvm, jconsole, jmc and none of them not able to do that easy task -- just dump the *** heap! How people…
Mingun
  • 139
  • 1
  • 7
1 2 3
10
11