[英]Java VirtualVm connection attempt produces “Java(TM) platform SE has stopped working” error
When I'm trying to open connections to some applications... 当我尝试打开与某些应用程序的连接时...
VisualVm
service sometimes provides me an error below: VisualVm
服务有时会在下面给我一个错误:
This error is reproduced not for the all jar connections, and was discovered under the Windows OS. 并非所有jar连接都重现此错误,并且在Windows OS下发现了该错误。 My team-mates that used Linux-based OS with the same jar applications, were not affected by such kind of problems.
我的团队成员将基于Linux的OS与相同的jar应用程序一起使用,因此不受此类问题的影响。
My questions is how to handle the exact failure cause, while "VisualVm" application does not provide any additional information about it by default 我的问题是如何处理确切的失败原因,而“ VisualVm”应用程序默认情况下不提供有关它的任何其他信息。
Unfortunately, I haven't found an exhaustive answer to this question, so giving my solution. 不幸的是,我没有找到这个问题的详尽解答,因此请给出解决方案。 Hope it might be useful for someone in a future
希望将来对某人有用
First of all, you need to find a way to analyze the internal cause of the VisualVm
crash. 首先,您需要找到一种方法来分析
VisualVm
崩溃的内部原因。 To do this, you just need to add the console logging option. 为此,您只需要添加控制台日志记录选项。
Open the configuration file: 打开配置文件:
% JAVA_HOME%/lib/visualvm/etc/visualvm.conf
and append % JAVA_HOME%/lib/visualvm/etc/visualvm.conf
并附加
-J-Dnetbeans.logger.console=true -J-ea
keys to the visualvm_default_options
-J-Dnetbeans.logger.console=true -J-ea
键将visualvm_default_options
When you run the VisualVm
application from the console and repeat the failed action, you'll get a full stack trace. 当您从控制台运行
VisualVm
应用程序并重复失败的操作时,您将获得完整的堆栈跟踪。
In my particular case, the problem was dealing with the forbidden connection to the VirtualBox
host ( VisualVm
was started in non-administrator mode) 在我的特定情况下,问题在于处理到
VirtualBox
主机的禁止连接( VisualVm
在非管理员模式下启动)
This problem can be solved either ( my particular case ) by properly configuring the network, or by running VisualVm
in the administrative mode ( in general case it might help ). (在我的特殊情况下 )可以通过正确配置网络或在管理模式下运行
VisualVm
来解决此问题( 通常情况下可能会有所帮助 )。
But anyway I strongly recommend you to handle the exact reason of VisualVm
failure 但是无论如何,我强烈建议您处理
VisualVm
失败的确切原因
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.