[jboss-jira] [JBoss JIRA] (AS7-3789) Hornetq adds up to 4s to boot of as7 full configuration.
Tomaz Cerar (JIRA)
jira-events at lists.jboss.org
Thu Feb 16 06:55:36 EST 2012
Tomaz Cerar created AS7-3789:
--------------------------------
Summary: 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.Final, 7.1.0.CR1b, 7.1.0.CR1
Environment: Windows 7, 64bit
Reporter: Tomaz Cerar
Assignee: Jason Greene
Priority: Critical
Attachments: 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list