Disable “Saving Snapshot” in NetBeans

早过忘川 提交于 2019-12-05 11:03:30

The snapshots are performance snapshots taken when the IDE detects slow behavior. For obvious reasons, slower computers are more likely to trigger the collection (by taking longer than a preset amount of time to complete tasks), which then requires saving the snapshot. The saving process slows the system down even more, occasionally resulting in (for all practical purposes) an inoperable IDE.

Check your netbeans.conf configuration file (in the etc folder). You'll find a line for netbeans_default_options. Make sure -J-ea does not appear in the line. This flag enabled Java assertions, which wouldn't be a problem in itself but the slowness detector in NetBeans also uses this flag to significantly shorten the timeout before the self-profiler is enabled.

Sam Harnell's answer didn't help me in 2019 and NetBeans 10, because i didn't had the option -J-ea. I found help in the NetBeans bugtracker . Adding the below options to netbeans_default_options helped me to get rid of the saving snapshots:

-J-Dorg.netbeans.core.TimeableEventQueue.report=30000 
-J-Dorg.netbeans.core.TimeableEventQueue.quantum=1000 
-J-Dorg.netbeans.modules.editor.completion.slowness.report=10000 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!