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

Throughput mongo java driver Versus mongo C driver

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.8.0
    • Component/s: Performance
    • Environment:
      Linux 2.6.32-220.el6.x86_64
      Red Hat Enterprise Linux Server release 6.2
      java version "1.7.0_05"
      Mongo java driver 2.8.0
      mongodb-linux-x86_64-2.0.6
      App server has 32-cores, hyperthreading, 192gb ram

      The heap usage in the java driver is causing about 30% of the time to be spent on garbage collection reducing throughput. Worsens with increased number of threads and/or increased heap size. The mongo C driver, in comparison is able to sustain a good thoughput. Sample tests attached.

        1. mongotest.c
          2 kB
        2. MongoTest.java
          3 kB
        3. README
          2 kB

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            sthampy Sushil Thampy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: