您的位置:首页 > 编程语言 > MATLAB

Matlab 报错 Error java.lang.OutOfMemoryError: GC overhead limit exceeded 解决

2017-07-13 10:50 716 查看
在跑《Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields》这篇论文的evaluation代码https://github.com/ZheC/Realtime_Multi-Person_Pose_Estimation时报错。

java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.android.dx.dex.code.OutputFinisher.findExpandedOpcodeForInsn(OutputFinisher.java:525)
at com.android.dx.dex.code.OutputFinisher.calculateReservedCount(OutputFinisher.java:466)
at com.android.dx.dex.code.OutputFinisher.reserveRegisters(OutputFinisher.java:402)
at com.android.dx.dex.code.OutputFinisher.finishProcessingAndGetList(OutputFinisher.java:358)
at com.android.dx.dex.code.DalvCode.finishProcessingIfNecessary(DalvCode.java:108)
at com.android.dx.dex.code.DalvCode.getInsns(DalvCode.java:185)
at com.android.dx.dex.file.CodeItem.place0(CodeItem.java:223)
at com.android.dx.dex.file.OffsettedItem.place(OffsettedItem.java:242)
at com.android.dx.dex.file.MixedItemSection.placeItems(MixedItemSection.java:312)
at com.android.dx.dex.file.DexFile.toDex0(DexFile.java:543)
at com.android.dx.dex.file.DexFile.toDex(DexFile.java:216)
at com.android.dx.command.dexer.Main.writeDex(Main.java:574)
at com.android.dx.command.dexer.Main.run(Main.java:218)
at com.android.dx.command.dexer.Main.main(Main.java:174)
at com.android.dx.command.Main.main(Main.java:95)


实际上不是cpu或者gpu的超过内存。是为matlab 为 java heap分配的内存通常只有一二百兆,有时不够,通过以下修改可以解决问题。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐