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

Provide a command line option to affinitize java.exe to processors.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      A DESCRIPTION OF THE REQUEST :
      It would be nice to have an option in the java interpreter (java.exe) to define the processor affinity of the executable.


      JUSTIFICATION :
      In my work, I sometimes detect problems which only happen when running on multi-processor or hyper-threaded applications. Since the problem is in some third-party library which may be solved at any time, nobody took the time to implement the capability to affinitize all the threads to a single processor.
      Currently, to test one or another I have to reboot the PC and change the hyper-thread support. It would be much nicer to be able to force the application to use a single processor or run normaly by providing a command line option to java.exe.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Have a command line option to define the processor affinity of java.exe.
      ACTUAL -
      There is no way to define the processor affinity in the command line.

      CUSTOMER SUBMITTED WORKAROUND :
      1) Reboot the machine and change to hyper-thread support.
      2) Use two different machines.
      3) Implement some code to configure it (I'm not a Java programmer so I don't know if this is even possible since we use third-party libraries).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dholmes David Holmes
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: