I have a heap size of X (= 5 giga bytes). How much should I allocate for jprofiler to efficiently analyze this heap?
Java – How much memory does jProfiler need to analyze a heap dump of size X
javajprofilermemoryprofiling
Related Topic
- Java – How to read / convert an InputStream into a String in Java
- Python – How to determine the size of an object in Python
- Java – How to get an enum value from a string value in Java
- Java – How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
- Java – Why is processing a sorted array faster than processing an unsorted array
- Java using much more memory than heap size (or size correctly Docker memory limit)
Best Answer
I would recommend using Eclipse MAT to view the heap dump. It does a much better job in terms of memory requirements for a heap dump of size X because it creates intermediate index files on disk instead of sucking up the whole thing into it's own memory. Most tools require some multiple N of X to open the heap dump where N is usually >= 2. Also, make sure to start the Java process that runs MAT or JProfiler in 64-bit if you're going to give them more than 2g of memory.