VisualVM
  1. VisualVM
  2. VISUALVM-554

Bad synchronized timing with Java 64 bits compared to Java 32 bits.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.5
    • Fix Version/s: None
    • Component/s: code
    • Labels:
      None
    • Environment:

      Description

      Sampling the same program with Java 32 bits and Java 64 bits does not give the same results.
      There is a big difference in self time for synchronized singletons.

      With 32 bits it is almost unoticiable, around 500ms.

      With 64 bits Visual VM gives me a total time of 14s.
      I have measured the time with System.nanoTime() and this gives me something similar to 32 bits sampling.
      There are nearly 50 calls.
      My understanding is that there is something buggy in this 64 bits sampling case.

      I tried the latest versions of VisualVM, JDK 6 and JDK 7 without success.

      For both cases there is no particular GC activity observed.
      The is no concurrency in my tests.

        Activity

        Hide
        thurka added a comment -

        There is no difference in sampling code for 32bit and 64bit JVM. I need a reproducible test-case to be able to diagnose the problem.

        Show
        thurka added a comment - There is no difference in sampling code for 32bit and 64bit JVM. I need a reproducible test-case to be able to diagnose the problem.

          People

          • Assignee:
            thurka
            Reporter:
            grouvignac
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: