Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6749430

Java app (in Solaris default ptocessor set) allocates incorrect number processors to parallelGC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 6u4
    • hotspot
    • None
    • generic
    • solaris_10

      Customer has 16 processor Solaris server configured with as follows:
      - Processor set 1: 11 processors
      - Default processor set: 5 processors

      A java application was started in the deafult processor set. The following command was executed to list number of processors allocated to parallelGC.
      $ jinfo -flag ParallelGCThreads 10993 (where 10993 was the pid)
      jinfo response: -XX:ParallelGCThreads=13

      This indicates all 16 procesors were used to calculate the default number of processors to allocate to parallel GC. The algorithm used for this calculation is:
                (ncpus <= 8) ? ncpus : 3 + ((ncpus * 5) / 8)
      The correct answer should have been 5 processors based on a value of ncpus of 5 available in the default processor set.

      Fix requires the no of GC threads to be adjusted based on os::active_processor_count() available to the unbound Java process.

            Unassigned Unassigned
            aperumai Asok Perumainar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: