run as -> run configurations ->Arguments -> VM arguments
1: -XX:+TraceClassLoading 查看启动的时候加载了那些类
2:-verbose:gc -XX:+PrintGC
3:
4 : -XX:+HeapDumpOnOutOfMemoryError 发生oom的时候生成一个文件。可通过mat或者jprofiler等工具查看
run as -> run configurations ->Arguments -> VM arguments
1: -XX:+TraceClassLoading 查看启动的时候加载了那些类
2:-verbose:gc -XX:+PrintGC
3:
4 : -XX:+HeapDumpOnOutOfMemoryError 发生oom的时候生成一个文件。可通过mat或者jprofiler等工具查看