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

Command line option improvement to print all options passed to VM indicating source

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 12
    • 9
    • hotspot
    • None

      Proposal for a new JVM command line option or improvement to -XX:+PrintVMOptions to print all options passed to the VM possibly indicating the source of the options (_JAVA_OPTIONS, JAVA_TOOL_OPTIONS, -XX:VMOptionsFile, -XX:Flags and JNI Invocation API) as well.

      Currently -XX:+PrintVMOptions only prints -XX flags and also drops the "-XX:" portion.

      For example,
          java -XX:+IgnoreUnrecognizedVMOptions —bad-option -XX:+PrintVMOptions Test

      This does not print “—bad-option”.

            Unassigned Unassigned
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: