heap-dump

Huge heap dump (11GB) - Jhat failed & Eclipse MAT needed help

馋奶兔 提交于 2019-12-02 13:12:02
问题 We got a memory error in our EA and we used -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/some/dir to dump the heap at the time of OOM. We had a heap memory of 12GB and perm gen of 256MB. The heap dump is generated in the Linux box where we have our application running and its size is 11.5GB. We don't have privileges to download it to our local. When we tried to analyze that 11GB heap dump using JHAT it thrown an OOM. We tried the following commands from our Linux CLI. jhat java

Huge heap dump (11GB) - Jhat failed & Eclipse MAT needed help

二次信任 提交于 2019-12-02 06:09:27
We got a memory error in our EA and we used -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/some/dir to dump the heap at the time of OOM. We had a heap memory of 12GB and perm gen of 256MB. The heap dump is generated in the Linux box where we have our application running and its size is 11.5GB. We don't have privileges to download it to our local. When we tried to analyze that 11GB heap dump using JHAT it thrown an OOM. We tried the following commands from our Linux CLI. jhat java_pid1491.hprof jhat -J-Xmx16g -XX:-UseBiasedLocking java_pid1491.hprof jhat -J-d64 -J-Xmx16g -J-XX:

Java heap dump and the heap size after the heap analysis differs

感情迁移 提交于 2019-12-01 15:04:52
I am experiencing memory leak and here goes some detail. At the time of after-leak, top shows 50GB memory as residential heap dump file size is 25GB eclipse MAT analyzer tells me the heap size is 10GB At the time of before-leak, top shows 30GB memory as residential heap dump file size is 20GB eclipse MAT analyzer tells me the heap size is 10GB I am pretty surprised that the difference between top, heap-dump size, and the actual heap size. I am guessing that the difference between top and heap is the possibility of garbage collector heap and native heap areas. But, how come the heap dump file

Java heap dump and the heap size after the heap analysis differs

好久不见. 提交于 2019-12-01 13:55:19
问题 I am experiencing memory leak and here goes some detail. At the time of after-leak, top shows 50GB memory as residential heap dump file size is 25GB eclipse MAT analyzer tells me the heap size is 10GB At the time of before-leak, top shows 30GB memory as residential heap dump file size is 20GB eclipse MAT analyzer tells me the heap size is 10GB I am pretty surprised that the difference between top, heap-dump size, and the actual heap size. I am guessing that the difference between top and heap

Can JVisualVM “Heap Dump” button release memory?

那年仲夏 提交于 2019-12-01 05:47:34
i have a very strange problem. I'm working on an OSGi application, based on Eclipse Equinox; it was developed using OSGi Log Service (Equinox implementation) and now I'm testing it with the Apache Felix OSGi Log Service implementation. At API/code side, all works fine: the OSGi log service is standard, so i can swap from Equinox to Felix without problem. However, I observed this strange behaviour: I started the application as console program, to see the log output on console, and i attached it the JVisualVM to analize the memory usage; the JVisualVM graph showed an used heap of 80 MBs. After

Java Heap Dump error - Metadata does not appear to be polymorphic

人走茶凉 提交于 2019-12-01 02:06:09
I get this Stacktrace when trying to take a heap dump from a running Java process. What causes this and what do I have to do to make a proper heap dump? Dumping heap to dump.bin ... Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at sun.tools.jmap.JMap.runTool(JMap.java:201) at sun.tools

Can JVisualVM “Heap Dump” button release memory?

Deadly 提交于 2019-12-01 01:58:34
问题 i have a very strange problem. I'm working on an OSGi application, based on Eclipse Equinox; it was developed using OSGi Log Service (Equinox implementation) and now I'm testing it with the Apache Felix OSGi Log Service implementation. At API/code side, all works fine: the OSGi log service is standard, so i can swap from Equinox to Felix without problem. However, I observed this strange behaviour: I started the application as console program, to see the log output on console, and i attached

Programmatically analyze java heap dump file

白昼怎懂夜的黑 提交于 2019-11-30 16:20:53
I want to write a program (preferably in java) that will parse and analyze a java heap dump file (created by jmap). I know there are many great tools that already do so (jhat, eclipse's MAT, and so on), but I want to analyze the heap from a specific perspective to my application. Where can I read about the structure of the heap dump file, examples how to read it, and so on? Didn't find anything useful searching for it... Many thanks. I'm not familiar with jhat, but Eclipse's MAT is open source. Their SVN link is available, perhaps you could look through that for their parser, perhaps even use

Using -XX:HeapDumpPath option but want to integrate the process id

╄→尐↘猪︶ㄣ 提交于 2019-11-30 11:26:03
When using -XX:+HeapDumpOnOutOfMemoryError the JVM will not overwrite the heap dump if there is already a dump file under the specified path. I want to be able to have multiple heap dumps in a non-default location, and was planning on using the pid in the heap dump path in order to allow that. However, when I tried to specify the argument like so: -XX:HeapDumpPath=some/heapdump/path/heapdump-%p.hprof And then created a heap dump, I got %p and not the actual pid in the file name. However, the use of %p seems to work with the -XX:OnOutOfMemoryError option. Is there some other syntax that I'm

How do I produce a heap dump with only a JRE?

青春壹個敷衍的年華 提交于 2019-11-30 09:04:10
We have a JRE installed on our production environment, but not a JDK. The versions of the JRE and OS are below. [me@mymachine ~]$ java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode) [me@mymachine ~]$ uname -a Linux mymachine.mydomain.com 3.10.35-43.137.amzn1.x86_64 #1 SMP Wed Apr 2 09:36:59 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux It doesn’t appear as if the “jmap” tool is present anywhere on the system, and without root access, I’m not in a position to install it in any system location. What