Run -> Edit Configuration -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=D:\error 出现堆异常时会在D:/error中输出