]
Tomaz Cerar commented on AS7-3789:
----------------------------------
Dimitris: we are discussing details on linked issues HORNETQ-854
Hornetq adds up to 4s to boot of as7 full configuration.
--------------------------------------------------------
Key: AS7-3789
URL:
https://issues.jboss.org/browse/AS7-3789
Project: Application Server 7
Issue Type: Enhancement
Components: Server
Affects Versions: 7.1.0.CR1, 7.1.0.CR1b, 7.1.0.Final
Environment: Windows 7, 64bit
Reporter: Tomaz Cerar
Assignee: Jeff Mesnil
Priority: Critical
Labels: bootstrap, hornetQ
Fix For: 7.1.2.Final-redhat1
Attachments: hornetq-after.jpg, hornetq-core.jar, hornetq-hotspot.jpg
when starting as7 with full configuration
standalone.bat -c standalone-full.xml
boot time can be up to 8 seconds or more depending on system configuration.
Problematic part of code in hornetq was identified to be inside UUIDGenerator where it
tries to obtain hardware address (mac) that it then uses for generating uuid.
When i was trying to fix this problem I found out that only proper solution would be to
replace org.hornetq.tools.UUID for java.util.UUID as code for UUID generation inside
hornetq is quite old and is actually an old version of "Java UUID Generator"
project
http://wiki.fasterxml.com/JugHome as it quite old version it did not use
java.util.UUID for generating uuids but it's own algorithm.
The only potential concern I see is that hornetq uses UUID type 1(time + mac) but
java.util.UUID uses type 4 (random).
Java's implementation of type 4 UUID uses SecureRandom for generating uuids which
uses hardware signature(not just mac) for random.
So it would be safe to replace org.hornetq.tools.UUID with java's but this is quite a
modification in hornetq code that I rather not provide my patch for it :)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: