commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk (JIRA)" <>
Subject [jira] [Commented] (DAEMON-295) Mysterious JVM argument: exit
Date Wed, 17 Apr 2013 09:13:16 GMT


Mladen Turk commented on DAEMON-295:

What does registry say.
Do you have those options in the registry as well.
Also does procrun manager displays the same JvmOptions.

The 'exit' could be wrongly parsed line or wrongly displayed.

> Mysterious JVM argument: exit
> -----------------------------
>                 Key: DAEMON-295
>                 URL:
>             Project: Commons Daemon
>          Issue Type: Bug
>          Components: Procrun
>    Affects Versions: 1.0.15
>         Environment: jvm mode using JDK7 server JVM on Windows
>            Reporter: Patrick McCarty
>            Priority: Trivial
> 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 ...

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message