有时,我很少遇到奇怪的行为 - 抛出OutOfMemoryError时生成的hprof文件长度为零。
我只能考虑磁盘问题,但事实并非如此。
Java开始于: /opt/jre-1.6.0_25_FIPS/bin/java -Xms192m -Xmx960m -XX:MaxPermSize = 360m -XX:ReservedCodeCacheSize = 64m -XX:+ UseCompressedOops -XX:+ DoEscapeAnalysis -server -XX:-ReduceInitialCardMarks -Xrunjdwp:transport = dt_socket,address = 8000,server = y,suspend = n -XX:+ HeapDumpOnOutOfMemoryError -Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs = / opt /jakarta-tomcat-6.0.29/endorsed -classpath ... org.apache.catalina.startup.Bootstrap start