-
Enhancement
-
Resolution: Done
-
Critical
-
7.1.0.CR1, 7.1.0.CR1b, 7.1.0.Final
-
Medium
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