(整理翻译By Jim Ma)
Dan Allen 创建了wiki 来征集jboss7启动的最快时间,并且对比了AS6的启动时间。如果你已经运行了AS7,别忘记到这个wiki更新你的启动结果。
这个两个表是AS7和AS6的启动时间对比,目前最快的是tkonishi的706ms. 这意味着当你敲完enter键,AS7就已经启动好了:
AS 7 (Web Profile)
用户
处理器 /芯片 内存
硬盘速度
操作系统
JVM(设置) 启动时间
dan.j.allen
2x Intel Core 2 Duo E8400 3.00 GHz 32-bit
4GB 800MHz
7200 RPM
Ubuntu 11.04 i686 2.6.38-8 (pae)
OpenJDK 1.6.0_22 32-bit (stock settings)
1726ms
dan.j.allen
2x Intel Core 2 Duo E8400 3.00 GHz 32-bit
4GB 800MHz
7200 RPM
Ubuntu 11.04 i686 2.6.38-8 (pae)
OpenJDK 1.6.0_22 32-bit (JVM flags Group A)
970ms
dan.j.allen
Quad i7-2620M 2.70GHz 64-bit
8GB 1333MHz
7200 RPM
Ubuntu 11.04 x86_64 2.6.38-8
OpenJDK 1.6.0_22 64-Bit (stock settings)
1590ms
dan.j.allen
Quad i7-2620M 2.70GHz 64-bit
8GB 1333MHz
7200 RPM
Ubuntu 11.04 x86_64 2.6.38-8
OpenJDK 1.6.0_22 64-Bit (JVM flags Group A)
1293ms
dan.j.allen
2x Intel Core 2 Duo T7500 2.20 GHz 32-bit
4GB 667MHz
5200 RPM
Ubuntu 10.10 i686 2.6.35-28 (pae)
Java(TM) SE HotSpot Server VM 1.6.0_24-b07
2822ms
dan.j.allen
2x Intel Core 2 Duo T7500 2.20 GHz 32-bit
4GB 667MHz
5200 RPM
Ubuntu 10.10 i686 2.6.35-28 (pae)
Java(TM) SE HotSpot Server VM 1.6.0_24-b07 (JVM flags Group A)
1589ms
david bosschaert
Quad i7 2.2GHz 64-bit
8G 1333MHz
7200 RPM
Mac OS X 10.6.8 Darwin 10.8.0 x86_64
Apple Java 1.6.0_26
1479ms
david bosschaert
Quad i7 2.2GHz 64-bit
8G 1333MHz
7200 RPM
Mac OS X 10.6.8 Darwin 10.8.0 x86_64
Apple Java 1.6.0_26 (JVM flags Group A)
1189ms
ssilvert
Intel ® Core™ 2 Duo i7-620M -i7
(2.66GHz, 4MB L3, 1066MHz FSB, 35W)
8GB 1333MHz
7200 RPM
Windows 7 Enterprise SP1
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
1813ms
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB 1333MHz
7200 RPM
Fedora 15
2.6.38.8-32.fc15.x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings)
1450ms
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB 1333MHz
7200 RPM
Fedora 15
2.6.38.8-32.fc15.x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(JVM flags Group B)
1012ms
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB 1333MHz
7200 RPM
KVM Image Fedora 15
2.6.38.8-32.fc15.i686
on Fedora 15 x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-i686
(JVM flags Group A)
1007ms
jason.greene
i7 Dual Core @ 2.66 GHz
8GB 1067MHZ
7200 RPM
Mac OS X 10.6.8 (forced 64 bit kernel)
Apple Java 1.6.0_26 (-d32 bit mode)
1486ms
jason.greene
i7 Dual Core @ 2.66 GHz
8GB 1067MHZ
7200 RPM
Mac OS X 10.6.8 (forced 64 bit kernel)
Apple Java 1.6.0_26 (stock settings)
2041ms
goldmann
Intel Core i5 2.4 Ghz
8GB 1067MHZ
7200 RPM
Mac OS X 10.6.7
Apple Java 1.6.0_26 (stock settings)
2476ms
wolfc
Intel Core i7 860 2.80 Ghz
6GB 1333Mhz
RAID0 2x7200 RPM
Ubuntu 11.04 x86_64 2.6.38-8
OpenJDK 1.6.0_22 64-bit
1287ms (w. patch)
mike.pellegrini
Intel Core i5 560 2.66 GHz
4GB
1067MHz
7200 RPM
Fedora Core 15 2.6.38.8-32.fc15.x86_64
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
1930ms
tommysdk
Intel ® Core™ i5 CPU M560 @ 2.70 GHz 64-bit
4GB 1333 MHz
7200 RPM
Windows 7 Professional
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode) (JVM flags Group A tweaked)
1877 ms
sannegrinovero
i7 Dual Core @ 2.66 GHz
8GB 1067MHZ
SSD Intel G2
Fedora Core 15/64bit
custom kernel 2.6.39.2
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Options Group B
1232ms
kevin.sapper
Intel ® Core™ i7 CPU Q720 @ 1.60 GHz
6GB 1333 MHz
5600 RPM
Windows 7 Home
Java(TM) SE Runtime 64-Bit Environment (build 1.6.0_26-b03)
Options Group A
2098ms
kevin.sapper
Intel ® Core™ i7 CPU Q720 @ 1.60 GHz
6GB 1333 MHz
5600 RPM
Windows 7 Home
Java(TM) SE Runtime 64-Bit Environment (build 1.6.0_26-b03)
Options Group B
1771ms
dimitris
Intel Core i7 CPU Q740 @ 1.73GHz
4G
SSD Samsung PM800
Windows 7 Prol SP1
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
1649ms
mmiura
Six-Core AMD Opteron Processor 2435 @ 2.60GHz x2
24G
SSD
Intel X25-M 80G
Fedora 14
2.6.35.13-92.fc14.x86_64
java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.8) (fedora-53.1.9.8.fc14-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
1507ms
pgier
Intel® CoreTM 2 Duo i7-620M -i7 @ 2.66GHz
4G
7200 RPM
Fedora 13
2.6.34.8-68.fc13.i686
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
1969ms
tkonishi
Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
16G
SSD
Crucial C300 128GB
Fedora 15
2.6.38.8-32.fc15.x86_64
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
(JVM flags Group A)
866ms
tkonishi
Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
16G
SSD
Crucial C300 128GB
Fedora 15
2.6.38.8-32.fc15.x86_64
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
(JVM flags Group B)
706ms
tkonishi
Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
16G
SSD
Crucial C300 128GB
Fedora 15
2.6.38.8-32.fc15.x86_64
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
(stock settings)
1039ms
Older AS Versions
用户 处理器 /芯片 内存
硬盘速度
内存
JVM AS版本
启动时间
dan.j.allen
2x Intel Core 2 Duo E8400 3.00 GHz 32-bit
4GB 800MHz
7200 RPM
Ubuntu 10.10 i686 2.6.35-28 (pae)
OpenJDK 1.6.0_22 32-Bit (stock settings)
6.0.0.Final
14.5s
dan.j.allen
Quad i7-2620M 2.70GHz 64-bit
8GB 1333MHz
7200 RPM
Ubuntu 11.04 x86_64 2.6.38-8
OpenJDK 1.6.0_22 64-Bit (stock settings)
6.0.0.Final
13s
dan.j.allen
2x Intel Core 2 Duo T7500 2.20 GHz 32-bit
4GB 667MHz
5200 RPM
Ubuntu 10.10 i686 2.6.35-28 (pae)
Java(TM) SE HotSpot Server VM 1.6.0_24-b07
6.0.0.Final
21.88s
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB
1333MHz
7200 RPM
Fedora 15
2.6.38.8-32.fc15.x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings)
6.0.0.Final
12.0s
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB
1333MHz
7200 RPM
Fedora 15
2.6.38.8-32.fc15.x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings)
5.1.0.GA
19.0s
tkimura
Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
8GB
1333MHz
7200 RPM
Fedora 15
2.6.38.8-32.fc15.x86_64
OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings)
4.2.3.GA
6.2s
mike.pellegrini
Intel Core i5 560 2.66 GHz
4GB
1067MHz
7200 RPM
Fedora Core 15 2.6.38.8-32.fc15.x86_64
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
5.1.0
23s.
JVM设置:
- stock setting : 标准设置启动采用standalone.sh
- Group A : -Xms64m -Xmx512m -XX:MaxPermSize=256m -client -Xverify:none -XX:+UseFastAccessorMethods -XX:+DisableExplicitGC -XX:+UseCompressedOops
- Group B : -server -Xms128m -Xmx128m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true -XX:+UseFastAccessorMethods -XX:+TieredCompilation -Xverify:none
优化启动时间:
由于更少的整数位,AS7在32位机器上比在64位机器上启动要快。如果你运行在64位机器上,你可以做以下设置来获得和在32位机器上同样的启动速度:
- 使用flag来运行到32位上: -d32 (Mac and Windows)
- 使用JVM compression flag: -XX:+UseCompressedOops (只适用于64位JVM)
下面这些JVM flags也有助于提高启动速度:
- -noverify
- -XX:+DisableExplicitGC
- -client (32 bit JVM only. You have to edit standalone.sh to use -client instead of -server)
关闭console的log(或者重定向到 /dev/null):也有助于加快启动速度:
./standalone.sh > /dev/null