idea debug 程序运行很慢的原因排查

6860阅读 0评论2016-12-02 mfc42d
分类:Java

最近发现 osgi的service在debug的时候很慢,开始认为是本机的性能不行,后来发现远程的计算机速度也不快.
趁着机房停电的空闲时间,看了一看 jetbrain文档
Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate. Remove method breakpoints and consider using the regular line breakpoints. Ctrl - Shift -F8 查看断点的详细信息,删除方法断点
2  Watch method return values option is enabled in the Debugger Panel. Try disabling this option to improve the performance. 在下面的面板中
Enable alternative views for Collections classes and Enable toString()’ object view options enabled in Settings | Debugger | Data Views. If toString() methods take a long time to complete, disable this option. Note that custom toString() methods can also change the semantics of the application when running under debugger in case the code inside these methods changes the state of your application. 在setting的Debugger中Data Views 中java 中 取消两项打钩.


上一篇:offset是h2 数据库的一个关键字
下一篇:ubuntu下连接android设备