Hello Sanjib,

Thank you for reporting this issue.

The startup waiting time, which defaults to 2 seconds, is not criterion of success or failure. It just defines the number of seconds that the WrapperStartStopApp class will wait before assuming that the application has started. In other words, both cases where the main method completes before or after the 2 seconds will be considered successful (as long as the exit code is 0).

Looking at the log output you sent, the Wrapper process is receiving a SIGCHLD from the JVM and detects that the JVM has terminated. This can happen if your main class called system.exit(1) or returned with error code 1.

The log you attached is a bit difficult to read because there is not timestamps and no column to distinguish the source (JVM vs Wrapper). You may want to add the 'P' and 'T' column to show this information:
https://wrapper.tanukisoftware.com/doc/english/prop-console-format.html

Did you remove some lines from the output? In debug mode, the Wrapper should show more output like the command line, etc.. These messages are also helpful in understanding issues.

Do you encounter the same issue when running without -javaagent? It would be interesting to see the command lines generated by the Wrapper when this option is added.

If possible, please send us your full log file on a private email at support@tanukisoftware.com.

Best Regards,

Maxime