heap-dump

How do I extract a timestamp from the heap dump

荒凉一梦 提交于 2021-01-28 01:08:21
问题 Unfortunately, I forgot to record the time that I took the heap dump. I hope that somewhere in the heap, the standard library caches something like System.currentTimeMillis() . Unfortunately, I do not have any business objects that cache it. One difficult option I have it to browse all the threads, and see if their local variables stored a timestamp somewhere. However, this is not technique I can apply to all heap dumps. I looked at java.lang.System in openJDK and it doesn't look like we

How can I analyze a heap dump in IntelliJ? (memory leak)

扶醉桌前 提交于 2020-12-27 08:00:06
问题 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 this heap dump within IntellIJ IDEA? I know that there are tools for Eclipse and Netbeans but I would rather use IDEA if possible. The basic results of the analysis would tell me the number of instances of each object in memory, per-class, to allow me to be able to start debugging memory leaks. 回答1:

Can a java project with a runnable that runs at a fixed rate stop after a while? Mine keeps freezing after about 40 hours

∥☆過路亽.° 提交于 2020-05-15 08:11:47
问题 After learning java on my own, i began a project for getting data from a website through api calls for a game called torn. There were a few little details i fixed thanks to some help, but the main issue i had is still not solved. after a day and a half of running, the program just freezes. i couldn't find anything about it so far. I took heap dumps for a while and i noticed some things. hope someone can help. During the first day or so, all is well (screenshot of heap dump after 3 hours and

Number of String Objects on heap in JAVA-8

你。 提交于 2020-01-23 03:34:05
问题 From this Number of String Objects on stack overflow,I came to know that if we do some thing like : String s = new String("ABC"); Then we have two objects one on heap that is String and one on constant pool that is "ABC" , But today I took the heap dump and found there are two objects on heap it self. I used MAT tool for the same please find the screen shot below. So my query is if there are two Objects on heap one of Char[] and other for String class and one on constant pool then thus this

Number of String Objects on heap in JAVA-8

亡梦爱人 提交于 2020-01-23 03:33:45
问题 From this Number of String Objects on stack overflow,I came to know that if we do some thing like : String s = new String("ABC"); Then we have two objects one on heap that is String and one on constant pool that is "ABC" , But today I took the heap dump and found there are two objects on heap it self. I used MAT tool for the same please find the screen shot below. So my query is if there are two Objects on heap one of Char[] and other for String class and one on constant pool then thus this

Java Out of memory automatic heap dump file name

家住魔仙堡 提交于 2020-01-22 10:36:04
问题 I have several Java processes and I am trying to manage the heap dumps created when OOM error occur. When I say manage I mean name the heap dump differently, based on the originating process delete older heap dumps to preserve disk space When dumping heap on OOM with -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp the JVM creates a file with the following name java_pidXXXX.hprof in the specified /tmp folder (where XXXX is the PID of the process). Is there anyway to specify a different

Java HeapDumps indicate that used Heap Size is 30% smaller than actual heap definition after OutOfMemory exceptions

▼魔方 西西 提交于 2020-01-07 07:43:11
问题 I have a handful of heap dumps that I am analyzing after the JVM has thrown OutOfMemory exceptions. I'm using Hotspot JDK 1.7 (64bit) on a Windows 2008R2 platform. The application server is a JBoss 4.2.1GA, launched via the Tanuki Java Service Wrapper. It is launched with the following arguments: wrapper.java.additional.2=-XX:MaxPermSize=256m wrapper.java.initmemory=1498 wrapper.java.maxmemory=3000 wrapper.java.additional.19=-XX:+HeapDumpOnOutOfMemoryError which translate to: -Xms1498m

Eclipse memory allocation problem

℡╲_俬逩灬. 提交于 2020-01-03 21:48:20
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is

Eclipse memory allocation problem

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-03 21:48:12
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is

Eclipse memory allocation problem

萝らか妹 提交于 2020-01-03 21:48:11
问题 I'm trying to analyse a ~800mb heap dump, which requires a bigger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and set a -Xmx2g (or -Xmx2048m ) I get an error "Failed to create the Java Virtual Machine". 1) yes, I have enough memory. 2) I can change it up to exactly -Xmx976m. 3) I've tried the standalone MAT analyser and it works with -Xmx1024m, not a byte more. 4) No, 1gb is not enough to analyse that heap, I get a OOM This is the eclipse error: This is