[
https://jira.jboss.org/browse/JBAS-8078?page=com.atlassian.jira.plugin.sy...
]
Richard Opalka commented on JBAS-8078:
--------------------------------------
Tim Fox wrote:
The first time you boot HQ it will take longer, since it has to create the journal files.
On subsequent boots it will be faster since it just has to open them.
I didn't measure first run (heat phase).
Tim Fox wrote:
You can reduce the number of initial files in the config (see user manual) if you want to
speed this up.
Why isn't it default in AS?
HornetQ Initialization Takes 25% of AS Boot Time
------------------------------------------------
Key: JBAS-8078
URL:
https://jira.jboss.org/browse/JBAS-8078
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JMS (HornetQ)
Affects Versions: 6.0.0.M4
Reporter: Richard Opalka
Assignee: Tim Fox
Fix For: 6.0.0.Final
Attachments: AS-trunk-boot-2010-06-08.png, JBossAS601Boot-20100608.jps
This is the umbrella JIRA for all the future HornetQ boot time optimization fixes.
I was measuring AS boot times today. Here are the results.
-----------------------
Test Configuration
-----------------------
* AS TRUNK (
https://svn.jboss.org/repos/jbossas/trunk -r 105792 default configuration)
* Sun JDK6 (java version "1.6.0_20")
* 64 Bit Linux OS (Linux opalka 2.6.32.12-115.fc12.x86_64 #1 SMP Fri Apr 30 19:46:25 UTC
2010 x86_64 x86_64 x86_64 GNU/Linux)
* Intel Processor (Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz)
-----------------------
AS trunk (with HornetQ) boot times:
-----------------------
Round 01 - 25s:723ms
Round 02 - 24s:260ms
Round 03 - 24s:626ms
Round 04 - 25s:345ms
Round 05 - 24s:510ms
Round 06 - 24s:458ms
Round 07 - 24s:904ms
Round 08 - 24s:885ms
Round 09 - 24s:367ms
Round 10 - 24s:817ms
Round 11 - 24s:815ms
Round 12 - 25s:174ms
Round 13 - 24s:758ms
Round 14 - 25s:260ms
Round 15 - 24s:692ms
-----------------------
Average - 24s:840ms
-----------------------
When I removed:
$JBOSS_HOME/server/default/deploy/hornetq/
$JBOSS_HOME/server/default/deployers/hornetq-deployers-jboss-beans.xml
-----------------------
AS trunk (without HornetQ) boot times:
-----------------------
Round 01 - 18s:379ms
Round 02 - 18s:399ms
Round 03 - 18s:837ms
Round 04 - 19s:274ms
Round 05 - 18s:506ms
Round 06 - 19s:102ms
Round 07 - 18s:981ms
Round 08 - 19s:138ms
Round 09 - 18s:565ms
Round 10 - 18s:439ms
Round 11 - 18s:586ms
Round 12 - 18s:330ms
Round 13 - 18s:855ms
Round 14 - 18s:545ms
Round 15 - 19s:210ms
-----------------------
Average - 18s:743ms
-----------------------
-----------
Conclusion:
-----------
24s:840ms = 100 % AS trunk boot
18s:743ms ~ 75 % AS trunk without HornetQ boot
---
6s:097ms ~ 25 % HornetQ boot
---
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira