Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-295

Mysterious JVM argument: exit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • 1.0.15
    • None
    • Procrun
    • None
    • jvm mode using JDK7 server JVM on Windows

    Description

      I have a Windows service configured to use --StartMode=jvm. I noticed an unexplained JVM argument 'exit' when my service prints out the active JVM arguments at startup using the java code:
      System.out.println("[Begin JVM arguments]");
      for (final String jvmArg : ManagementFactory.getRuntimeMXBean().getInputArguments())
      {
      System.out.println(jvmArg);
      }
      System.out.println("[End JVM arguments]");

      For example:
      [Begin JVM arguments]
      -Xrs
      -XX:+UseG1GC
      exit
      -Xms100m
      -Xmx1024m
      [End JVM arguments]

      The arguments listed before 'exit' are those that I configured using --JvmOptions=-Xrs;-XX:+UseG1GC. The arguments listed after 'exit' were added by procrun itself based on the --JvmMs and --JvmMx arguments that I specified (if not specified, exit will be the last argument). But where did exit come from? Why is it added as a JVM argument? I even checked the Options key in the registry and exit is nowhere to be seen.

      Although I have not noticed any ill effects, this seems like a bug to me as I don't believe exit was added intentionally. The same behavior is observed whether run as a procrun service, or using the procrun console mode, but not when running normally using java -server -Xrs -XX:+UseG1GC -jar ...

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrickjmccarty Patrick McCarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: