There is a strong change that you're hitting hotspot compiler bug. Check following docs: http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/gbyzx.html#gbyzuhttp://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6411717Availabe workarounds are: 1. Switch to client compiler: -server --> -client 2. Switch to interpreter mode: -Xint 3. Use .hotspot_compiler file (Goggle .hotspot_compiler)
说是解决了,但仍会报,目前的1.5.0_20仍然有此问题。下面是其他版本遇到的情况。
Please note that the 1.5.0 version of this fix (CR# 5030922) is in
1.5.0_08. Please try 1.5.0_08 when its available.
Posted Date : 2006-06-07 20:15:02.0
We are seeing similar issue with JDK 1.5.0_11.
We tried both the workarounds but adding "-XX:-EliminateLocks" parameter did not work. Got an error saying that unknwon argument.
However the other workaround creating ".hotspot_compiler" did work for us.
Does anybody have an idea if this is fixed in heigher JRE versions?
有些方案仍存在一些未知因素:
In this case there are two potential workarounds:
The brute force approach: change the configuration so that the application is run with the -client option to specify the HotSpot Client VM.
Assume that the bug only occurs during the compilation of the setPriority method and exclude this method from compilation.
The first approach (to use the -client option) might be trivial to configure in some environments. In others, it might be more difficult if the configuration is complex or if the command line to configure the VM is not readily accessible. In general, switching from the HotSpot Server VM to the HotSpot Client VM also reduces the peak performance of an application. Depending on the environment, this might be acceptable until the actual issue is diagnosed and fixed.
The second approach (exclude the method from compilation) requires creating the file .hotspot_compiler in the working directory of the application. Below is an example of this file:
exclude java/lang/Thread setPriority
In general the format of this file is exclude CLASS METHOD, where CLASS is the class (fully qualified with the package name) and METHOD is the name of the method. Constructor methods are specified as <init> and static initializers are specified as <clinit>.
Note - The .hotspot_compiler file is an unsupported interface. It is documented here solely for the purposes of troubleshooting and finding a temporary workaround.
Once the application is restarted, the compiler will not attempt to compile any of the methods listed as excluded in the .hotspot_compiler file. In some cases this can provide temporary relief until the root cause of the crash is diagnosed and the bug is fixed.
In order to verify that the HotSpot VM correctly located and processed the .hotspot_compiler file that is shown in the example above, look for the following log information at runtime. Note that the file name separator is a dot, not a slash.
### Excluding compile: java.lang.Thread::setPriority
|
分享到:
相关推荐
Ax86_8.1-R2-VM-64bit,android x86 64bit 8.1-r2 vmware 虚拟机,解压后,使用vmware15(至少)新建虚拟机,选择其他 64位-》在导入硬盘处选择此vmdk文件。
Ax86_8.1-R2-VM-32bit,android x86 8.1-r2 vmware 虚拟机,解压后,使用vmware15(至少)新建虚拟机,选择其他-》在导入硬盘处选择此vmdk文件。
FGT_VM64-v7.0.5-build0304-FORTINET.out.ovf、vmware学习模拟器 FGT_VM64-v7.0.5-build0304-FORTINET.out.ovf FGT_VM64-v7.0.5-build0304-FORTINET.out.vmware
Ax-867.1-R3-VM-64bit,android x86 64bit 7.1-r3 vmware 虚拟机,解压后,使用vmware15(至少)新建虚拟机,选择其他 64位-》在导入硬盘处选择此vmdk文件。
FGT_VM64-v6-build1914-FORTINET.out.ovf、vmware学习实验模拟器 FGT_VM64-v6-build1914-FORTINET.out.ovf FGT_VM64-v6-build1914-FORTINET.out.vmware
FGT_VM64-v7.2.6.F-build1575-FORTINET.out
FGT-VM64-v5-build1672-v5.6.8-FORTINET.out.ovf 虚拟机
Fortinet的FortiGate 7.0.0版本,可以在VMware Workstaion和VMware ESXi下安装使用。付15天授权方法
New deployment of FortiGate for VMware FGT_VM64-v6.4.9-build1966-FORTINET.out.ovf.zip (64.37 MB)
网盘文件永久链接 PA-VM-ESX-7.1.0.zip
FGT_VM64-v7.4.2.F-build2571-FORTINET.out
Fortinet FortiOS 6 下载,wmware打开即可用
Ax86_7.1-R3-VM-64bit,android x86 64bit 7.1-r3 vmware 虚拟机,解压后,使用vmware15(至少)新建虚拟机,选择其他 -》在导入硬盘处选择此vmdk文件。
FGT_VM64-v500-build0252-FORTINET.out.vmware.zip
FortiGate for VMWare ESXi platform Version 6.4.0 MD5:5e7a331355f824c4144e8cceee0677ab
Fortinet的FortiManager 6.2.5版本,可以在VMware Workstaion和VMware ESXi下安装使用。
RouterOS-6.43.4 ESXI 虚拟机版本已测试 OK, 导入ESXI6.0 顺利启动.
FortiManager允许IT人员通过一个易于使用的、集中的“单层玻璃...1、开机后,用get system interface physical可以查看他获取到的IP/或者到DHCP服务器查看获取到的IP 2、用浏览器访问获取的IP,账号为admin,密码为空
飞塔防火墙模拟器,V6.0.4, vmware ESXI 亲测15天试用。...1、开机后,用get system interface physical可以查看他获取到的IP/或者到DHCP服务器查看获取到的IP 2、用浏览器访问获取的IP,账号为admin,密码为空
飞塔防火墙模拟器,V6.2.0, vmware ESXI 亲测15天试用,附上简易安装说明。