1. Problems and phenomena
There is a dump file with a size of 14G, which is analyzed by the jhat tool
error out of memory
Reading from gl.hprof... Dump file created Wed Jun 08 17:56:28 CST 2022 Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Hashtable.addEntry(Hashtable.java:436) at java.util.Hashtable.put(Hashtable.java:477) at com.sun.tools.hat.internal.model.Snapshot.addHeapObject(Snapshot.java:166) at com.sun.tools.hat.internal.parser.HprofReader.readInstance(HprofReader.java:744) at com.sun.tools.hat.internal.parser.HprofReader.readHeapDump(HprofReader.java:491) at com.sun.tools.hat.internal.parser.HprofReader.read(HprofReader.java:275) at com.sun.tools.hat.internal.parser.Reader.readFile(Reader.java:92) at com.sun.tools.hat.Main.main(Main.java:159) [[email protected] data]# netstat -ntlp
I changed a host with 32G memory, and the execution still reported an error of memory overflow. I was thinking about whether the jhat tool itself has a memory limit…
2. Solution
Increase the memory used by jhat
jhat -J-mx20g gl.hprof
Use -J to specify the size of the memory. [-J-mx20g]
Read More:
- [Solved] presto Compile Error: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check
- [Solved] kettle Error: GC overhead limit exceeded
- [Solved] win32diskimager Error: An error occured when attempting to XXX, Error 5: Access is Denied
- HIVE Error: Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apac
- XML read process error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Content not allowed in preamble
- Yolox_s.pth Convert to tensorRT Error: AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘max_workspace_size‘
- [Solved] the request was rejected because its size (11579386) exceeds the configured maximum (10485760)
- [Solved] JMETER pressure measure with a lot of Ports Error: 504GATEWAY TIMEOUT
- [Solved] Hystrix error: java.util.concurrent.TimeoutException: null
- Error during job, obtaining debugging information [How to Solve]
- flutter | W/zipro(12512): Error opening archive D:\…Invalid file ERROR: dump failed because…
- Sqoop Error: Error during export:Export job failed [How to Solve]
- Sqoop exports hive data to MySQL Error [How to Solve]
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- Rendering Problems The following classes could not be instantiated: xml layout file could not be loaded
- Start error in maven web project java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
- [Solved] Windows Android Studio Cannot Start Error: Internal error. Please refer to https://code.google.com/p/android/issue
- [How to Solve] Easyclick read text garbled
- Spark Error: java.lang.StackOverflowError [How to Solve]
- [Solved] swagger3 Error: org.springframework.context.ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper’; nested exception is java.lang.NullPointerException