问题描述
我开发了几个专门针对我的项目的插件,我认为我有一些麻烦,因为长时间使用后日食会变慢,因此我想对其进行分析.我可以从eclipse(在插件开发模式下)运行eclipse并将其连接到JVVM,但是问题(缓慢的eclipse)在经过长时间的正常"开发后出现,因此我想启动我的正常" eclipse并连接到VisualVM.问题在于,Eclipse在VisualVM中显示为,而我无法以任何方式对其进行概要分析(我只能看到已加载的类,堆和线程的数量).
I developed couple of plugins specific for my project and I think I have some leackage because my eclipse slow down after long using time, so I want to profile it. I can run eclipse from eclipse (in plugins development mode) and connect it to JVVM, but problem (slow eclipse) occurs after long time of "normal" development, so I want to start my "normal" eclipse and connect to VisualVM.Problem is that eclipse appears in VisualVM as and I can't profile it in any way (I see only number of classes loaded, heap and threads).
我的JAVA_HOME设置为JDK,我将相同的JDK放在-vm参数下的eclipse.ini中,并且从同一JDK中启动VisualVM.
My JAVA_HOME is set to JDK, I put the same JDK to eclipse.ini under -vm parameter and from the same JDK I am starting VisualVM.
有人知道我该怎么办吗?
Does someone know what should I do?
推荐答案
您是否正在使用Windows?看起来VisualVM在32位JDK下运行,而Eclipse在64位JDK上运行(反之亦然).在VisualVM中打开Eclipse和VisualVM时,请选中概述"选项卡.这将告诉您使用了哪种JDK.
Are you using Windows? It looks like VisualVM is running under 32bit JDK, while Eclipse is running on 64bit JDK (or vice versa). Check 'Overview' tab when you open Eclipse and VisualVM in VisualVM. This will tell you, which JDK is used.
这篇关于如何在Java VisualVM下执行Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!