Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3789

Hornetq adds up to 4s to boot of as7 full configuration.

XMLWordPrintable

    • 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

        1. hornetq-after.jpg
          hornetq-after.jpg
          309 kB
        2. hornetq-core.jar
          1.41 MB
        3. hornetq-hotspot.jpg
          hornetq-hotspot.jpg
          305 kB

              jmesnil1@redhat.com Jeff Mesnil
              tomazcerar Tomaž Cerar (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: