heap-dump

Android ==> Memory Analysing ==> Eclipse memory analyzer?

半城伤御伤魂 提交于 2019-12-17 02:34:27
问题 I need to check my application for memory leaks, i also need to see the memory allocation of my application. I downloaded and installed eclipse memory analyzer, and it looks like the first step is to open a heap dump. But what is a heap dump, how can i create a heap dump. And how exactly am i going to use this software, I did some googling but i couldn't find any useful information thanks 回答1: When you debug your app, open DDMS in Eclipse. On the toolbar there is a heap dump button that you

Can I run Java garbage collection against a heap dump file?

浪尽此生 提交于 2019-12-12 18:46:02
问题 I have a huge Java heap dump file. It also contains (I believe) unreachable objects, that would be garbage collected by the JVM (or so one hopes). Is there a tool that allows me to run the garbage collector against this file, so that I can get rid of useless data verify/simulate garbage collection with the various algorithms to see how well they work identify garbage collection problems 回答1: No idea about 2+3 (and I don't think it would be possible) but at least requirement 1 is the default

Why does heap size keep increasing?

别来无恙 提交于 2019-12-12 03:18:43
问题 I have an application that has a lot of ripple effects and animations. I tried going back and forth multiple screens, and also spam clicking buttons. I noticed that the heap size continuously goes up even though some screens have already been closed. When I checked the heap dump, the class with the highest Retained heap was the android.graphics.Bitmap class and points to all of the buttons I clicked that has a Ripple Effect. The Ripple Effects on the buttons are just simple ripples which uses

java 1.7.45 : How to get full heap dump of process instead of truncated dump

ε祈祈猫儿з 提交于 2019-12-12 01:25:47
问题 I am using below command to get heap dump jmap -dump:live,format=b,file=/tmp/heap2.bin <pid> VM opts: -Xms2g -Xmx4g -XX:+UseG1GC -XX:MaxGCPauseMillis=1500 -XX:G1HeapRegionSize=2 -XX:+PrintFlagsFinal -XX:ParallelGCThreads=4 -XX:ConcGCThreads=2 But this command generates 300+ MB bin heap dump file for process running with 1.2 GB memory ( 1.2 GB memory has been shown in RES column of top command) EDIT: I have removed :live option after @kdgregory suggestion but heap dump is not generated due to

How to get Object ID as used in Heap Dump

 ̄綄美尐妖づ 提交于 2019-12-11 05:19:42
问题 I would like to be able to get the same ID that is being used in Java heap dumps (created via jmap or JMX, etc). This is to be able to identify the live object at the still running application versus an older memory snapshot (the heap dump) of the same app. I have already tested a little and it is obvioulsy not the hashCode, neither the JDI unique ID (which you can see in your debuggers). From checking the code in the sun.jvm.hotspot.utilities I assume it is the objects address in memory. But

How to visualize heapdump?

风格不统一 提交于 2019-12-10 16:35:41
问题 We have developed a server using golang which will receive concurrent request and process the request(creates big object - a tree) and then send back reply. But the objects are not garbage collected. So I decided to analyze the objects that live in the memory. To start with, I wrote a simple program package main import ( "fmt" "io/ioutil" "os" "runtime/debug" ) func main() { var i_am_a int = 10 _ = i_am_a func() { f, err := os.Create("dump") defer f.Close() if err != nil { panic(err) } debug

heapdump size vs hprof size

纵饮孤独 提交于 2019-12-10 10:56:56
问题 I recently made a heapdump in a hprof format when my jboss server was running with a xms of 4096m and xmx of 4096m and a permsize of 512m. The hprof file generated is over 5gb. When I load the heapdump in visualvm, mat analyzer or yourkit, I only see a total bytes of approximately 1gb. I've tried changed the reachability scope in yourkit but it does not show more than 1 gb. Any idea what this big difference in filesize vs displayed heapdump size can cause? ps: I'm using jdk1.6.0_23

How to analyse Websphere core*.dmp file and Snap*.trc files?

社会主义新天地 提交于 2019-12-10 04:22:27
问题 All, I have my application running on websphere app server 7.0. I get some of these core dumps and trace files like core.20110909.164930.3828.0001.dmp and Snap.20110909.164930.3828.0003.trc. My question is, just like the thread dumps generated by WAS can be opened and analyzed by IBM-Thread Dump Analyzer tool is there a tool(s) to open the above mentioned files by IBM or any other? Thanks, Ayusman 回答1: the core dumps have to be processed by the jextract utility (of the jre that dumped) fromn

Android ==> Memory Analysing ==> Eclipse memory analyzer?

依然范特西╮ 提交于 2019-12-10 02:39:55
问题 I need to check my application for memory leaks, i also need to see the memory allocation of my application. I downloaded and installed eclipse memory analyzer, and it looks like the first step is to open a heap dump. But what is a heap dump, how can i create a heap dump. And how exactly am i going to use this software, I did some googling but i couldn't find any useful information thanks 回答1: When you debug your app, open DDMS in Eclipse. On the toolbar there is a heap dump button that you

Increasing the max size of jvisualVM OQL resultset

一个人想着一个人 提交于 2019-12-09 10:01:56
问题 I have a memory dump file which has nearly 5000 instances of a particular object. These objects are to be written into a DB, and the way i am doing this is to write an OQL query in jvisualvm to generate a string that will serve as an SQL insert for example select "insert into trades (id, tradeNumber) values ("+ x.id+ ", " + x.tradeNumber +");" from com.test.application.TradeObject x; When i run this via OQL, i get a result set like this - <code> insert into trades (id, tradeNumber) values (1