Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3154

Why does createMachineIdentifier take a long time to run?

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.0.0
    • Component/s: BSON
    • Labels:
      None
    • Environment:
      Using Bitmani supplied docker image, bitnami/mongodb:4.1

      We are running unit tests as part of maven initiated testing which indirectly creates mongo connections, these seem to take some time to startup and we are seeing lots of time calling createMachineIdentifier;

      e.g.
      7.1% - 1,114 ms - 1 hot spot inv. org.bson.types.ObjectId.createMachineIdentifier (line\: 489

      Is there any way to shorten the amount of time being spend calling createMachineIdentifier?

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthewzeemann Matthew Zeemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: