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.7z"指的是一个基于Android x86的32位操作系统镜像,它已经以7z压缩格式打包。"8.1-R2"表示这个版本是Android 8.1的第二个修订版,通常意味着它修复了一些上一版本的问题并可能包含了...
FGT_VM64-v7.4.2.F-build2571-FORTINET.out
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-v5-build1672-v5.6.8-FORTINET.out.ovf 虚拟机
FGT_VM64-v7.0.13.M-build0566-FORTINET.out
FGT_VM64-v6-build1914-FORTINET.out.ovf、vmware学习实验模拟器 FGT_VM64-v6-build1914-FORTINET.out.ovf FGT_VM64-v6-build1914-FORTINET.out.vmware
标题中的"FGT_VM64-v6-build1778-FORTINET.out.ovf.zip"表明这是一款基于飞塔(Fortinet)技术的6.4.3版本虚拟机镜像文件,具体型号为FGT_VM64。"v6"可能指的是该软件的第六个主要版本,"build1778"则是该版本的具体...
FortiGate飞塔模拟器 FGT_VM64-v6-build0866-v6.2.0-FORTINET.out.ovf
厂家:[FortiGate] 文件名:FGT_VM64-v7.2.6.F-build1575-FORTINET.out.ovf.zip 类型:VMware ESXI ovf部署
1. `FortiManager-VM64.vapp.ovf`:这是一个虚拟应用程序描述文件,包含了虚拟机的配置信息,如硬件设置、网络连接、存储分配等。VAPP(Virtual Application)文件允许在虚拟环境中部署整个应用集合,而不仅仅是单个...
FGT_VM64-v7.0.13.M-build0566-FORTINET.out.ovf.zip
FGT_VM64-v7.4.2.F-build2571-FORTINET.out.ovf.zip
FGT_VM64_HV-v7.4.2.F-build2571-FORTINET.out.hyperv.zip
飞塔防火墙新版模拟器FGT_VM64v6.2.0 build0866 (GA) , 完美兼容VMware workstation 16 pro 使用方法: 以上压缩包为VMware备份的虚拟机,可直接打开使用。 1.虚拟机开机,port1自动获取本地网卡网段的IP(需保证...
Fortinet的FortiGate 7.0.0版本,可以在VMware Workstaion和VMware ESXi下安装使用。付15天授权方法
FGT_VM64-v7.2.6.F-build1575-FORTINET.out
标题 "PA-VM-ESX-7.1.0.zip" 暗示这是一个与 VMware ESXi 7.1.0 相关的压缩包,其中可能包含了与更新、安装或配置 ESXi 7.1.0 版本有关的文件。VMware ESXi 是一款业界领先的虚拟化平台,它允许在单一硬件上运行多个...
FGT_VM64_KVM-v7.4.2.F-build2571-FORTINET.out.kvm.zip