使用 CentOS 6.2,这两个安装都在同一台服务器上:
进行“最小”安装后,Java 程序运行速度极其缓慢。
完成“软件开发工作站”安装后,Java 程序以正常速度运行。
到目前为止收集的一些信息:
-
启用最小安装中不存在的服务,例如,irqbalance
、cpuspeed
没有帮助
使用Phoronix 套件用于测试 CPU/RAM/HD 速度。这些测试在两个安装上都运行良好。
-
已使用 DaCapo 套件(Java 版本)完成基准测试。这些测试在最小安装上都运行非常糟糕(即慢了 5-50 倍)。
-
已尝试过多个版本的 JRE:OpenJDK 6、Sun Java 6、Sun Java 7
-
已更新到最新的软件包使用 yum
已在两台不同的服务器上多次验证此速度下降。
-
两台服务器均使用 Xeon 双核处理器,并具有 16GB 或更多 RAM
任何人都知道可能会导致此问题的原因是什么?
Using CentOS 6.2, both of these installations are on the same server:
After doing a 'minimal' install Java programs run incredibly slow.
After doing a 'software development workstation' install Java programs run at normal speed.
Some information gathered so far:
-
Enabling services not present in the minimal install, e.g., irqbalance
, cpuspeed
has not helped
-
Have done benchmarks using Phoronix suite to test CPU/RAM/HD speed. These tests all run fine on both installs.
-
Have done benchmarks using DaCapo suite (which is in Java). These tests all run terribly (that is, 5-50 times slower) on the minimal install.
-
Have tried multiple versions of JRE: OpenJDK 6, Sun Java 6, Sun Java 7
-
Have updated to the latest packages with yum
-
Have verified this slowdown multiple times on two different servers.
-
Both servers use Xeon dual core processors, and have 16GB of RAM or more
Anyone have any idea what could cause this?
发布评论
评论(1)
当你测试oracle jdk时,它是来自oracle站点的bin文件吗?
来自 oracle 的软件包应该执行完全相同的操作:请下载这些 rpm(它们可以很好地安装在 centos 6 上)
java_rpm
java_devel
这些是官方软件包(您需要安装两个)。然后您还需要执行以下操作:(
选择您要使用的 java)
(选择您要使用的 javac)
when you test the oracle jdk was it the bin file from the oracle site?
The package from oracle should perform exactly the same: please download these rpms (they will install on centos 6 just fine)
java_rpm
java_devel
These are official packages (you need to install both). You also then need to do:
(select which java you want to use)
(select which javac you want to use)