Chapter 4. Server Lifecycle

Table of Contents

4.1. Preparing to Start the Server
4.2. Starting the Server
4.2.1. Starting Domain Administration Server(DAS)
4.2.2. Starting Managed Servers(MSs)
4.3. Shutting Down the Server
4.3.1. Shutting Down a Managed Server(MS)
4.3.2. Shutting Down Domain Administration Server (DAS)
4.4. Checking Server Lifecycle

This chapter describes how to start and close a server and check the server lifecycle.

Complete the following tasks to prepare for server startup.

This section describes how to start Domain Administration Server(DAS) and Managed Servers(MSs).

The startDomainAdminServer script is used to start DAS. It requires the domain name of DAS as well as a user name and password with the authority to start JEUS.

All three options are required if it is run from 'JEUS_HOME/bin'. The domain name can be omitted if it is run from the DOMAIN_HOME path on DAS. The command differs depending on the execution path.

  • JEUS_HOME/bin

    JEUS_HOME/bin/startDomainAdminServer -domain <domain_name> 
    -u <user_name> -p <password>
  • DOMAIN_HOME/bin

    DOMAIN_HOME/bin/startDomainAdminServer -u <user_name> -p <password>
  • SERVER_HOME/bin

    SERVER_HOME/bin/startDomainAdminServer -u <user_name> -p <password>

After DAS starts, it creates a server log in SERVER_HOME/logs/JeusServer.log, which can be monitored by using the console tool with the -verbose option. The server process and the launcher process both run on DAS. The launcher process runs the server process and outputs logs to the console tool.

Use the jps command to check jeus.server.admin.DomainAdminServerBootstrapper and jeus.launcher.Launcher.

jps -l
26514 jeus.launcher.Launcher
26515 jeus.server.admin.DomainAdminServerBootstrapper
27582 sun.tools.jps.Jps
26517 jeus.tool.console.ConsoleBootstrapper

If the server fails to start, check the cause in the 'SERVER_HOME/logs/JeusLauncher.log'.

MSs can be started using either DAS or a script.

Starting a Managed Server Using DAS

DAS can be used to start an MS if DAS is running and the SSH information of the MS is configured.

An MS can be started using DAS with WebAdmin or the console tool.

Starting an MS Using a Script

A Managed Server can be started using a script instead of DAS.

If multiple servers are distributed on multiple machines in the domain, run the script on each machine that hosts the MS. The name of the script is startManagerServer, and dasurl setting must be configured in order to synchronize the settings with DAS.

The following shows how to execute the startManagedServer command from different locations.

  • JEUS_HOME/bin

    JEUS_HOME/bin/startManagedServer -dasurl <das_ip:das_baseport> 
                                     -domain <domain_name> -server <server_name> 
                                     -u <user_name> -p <password>
  • DOMAIN_HOME/bin

    DOMAIN_HOME/bin/startManagedServer -dasurl <das_ip:das_baseport> 
                                      -server <server_name> -u <user_name>
                                      -p <password>
  • SERVER_HOME/bin

    SERVER_HOME/bin/startManagedServer -dasurl <das_ip:das_baseport> 
                                       -u <user_name> -p <password>

This section describes how to shut down DAS and managed server.

An MS can be shut down using either DAS or a script.

Shutting Down an MS Using DAS

An MS can be shut down using DAS with WebAdmin or the console tool.

Shutting Down an MS via a Script

A Managed Server can be shut down using a script which is installed on the server. If multiple servers are distributed on multiple machines in the domain, run the script on each machine that hosts the MS.

The following shows how to execute the stopServer command from different locations.

  • JEUS_HOME/bin

    JEUS_HOME/bin/stopServer -host <server_ip:server_baseport>
                             -u <user_name> -p <password>
  • DOMAIN_HOME/bin

    DOMAIN_HOME/bin/stopServer -host <server_ip:server_baseport>
                               -u <user_name> -p <password>
  • SERVER_HOME/bin

    SERVER_HOME/bin/stopServer -host <server_ip:server_baseport>
                               -u <user_name> -p <password>

DAS determines the lifecycle of the managed servers.


The following describes each state.

StateDescription
SHUTDOWNServer has not been started or has been shut down normally.
STARTINGServer is in the startup process, but is not ready to run services.
STANDBYThe server is not in the RUNNING state yet because some applications failed to be distributed during startup. Modify the problematic application or use the force option with the start command to ignore the error and start the server.
RUNNINGServer is running and is ready to provide services.
SHUTTING_DOWNServer is shutting down.
SUSPENDINGServer, in the running state, is suspending all running applications.
RESUMINGServer is resuming previously suspended applications.
SUSPENDEDAll applications have been suspended. This state allows new applications to be distributed, but they cannot run.
FAILURE_SUSPECTEDDAS suspects that the MS may have shut down abnormally because it cannot connect to the MS.
FAILUREDAS has determined that the MS has shut down abnormally because it has not been connected for a specific period of time.

The following are the three ways to check for the server state.