'In Windows Server, check the Task Manager, the GlassFish's User name changed from SYSTEM to the login user 's name after some subcommands

Here’s an issue I encountered when I was running GlassFish 5.0 on Windows Server 2016.

Check from the Task Manager -> Details -> User name, we know that, at the very beginning, the User name for GlassFish is SYSTEM. Then after the following two operations, the User name is changed from SYSTEM to the login user's name.

  1. Stop the domain by asadmin stop-domain.
  2. Start the domain by asadmin start-domain.

With the User name is the login user's name, if I logout from the Windows Server, the domain will be stopped. However, what I want is to logout without stop the domain.

Could anyone let me know how I can avoid this situation and why?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source