Show Table of Contents
2.3. Starting the JBoss ON Server
The JBoss ON server is actually a customized JBoss AS server, included in the JBoss ON installation, so starting the JBoss ON server means starting that JBoss instance.
The JBoss ON server can be started manually or can be configured to start and run as a system service.
2.3.1. Starting the JBoss ON Server (Basic)
The JBoss ON server process is started by running a scripting in the serverRoot
/bin/ directory. There is an .sh script for Linux and Unix systems and a .bat script for Windows systems.
The simplest way to start the server is simply to run the script with the
start command. This starts the server process and then exits from the script.
serverRoot/bin/rhq-server.{sh|bat} start
Trying to start the RHQ Server...
RHQ Server (pid 27547) is starting
The
rhq-server.{sh|bat} script looks for specific environment variables during its execution, especially related to the JVM to use with the JBoss AS server instance. A complete list of environment variables is given in the script itself; defaults based on the installation information are used, so most environment variables don't need to be reset.
Note
The
RHQ_SERVER_JAVA_HOME environment variable must be set on Red Hat Enterprise Linux systems for the server to start. This can be set to a general value like /usr/.
The server can also be started in console mode, which prints detailed information about the server process to the terminal and leaves the script open as long as the server is running.
serverRoot/bin/rhq-server.{sh|bat} console
Starting RHQ Server in console...
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: serverRoot/jon-server-3.1.2.GA1/jbossas
JAVA: /usr/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -Dapp.name=rhq-server -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.server.log.dir=serverRoot/jon-server-3.1.2.GA1/logs -Djava.awt.headless=true -Djboss.platform.mbeanserver -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.util.logging.config.file=serverRoot/jon-server-3.1.2.GA1/jbossas/server/default/conf/logging.properties -Djava.net.preferIPv4Stack=true
CLASSPATH: serverRoot/jon-server-3.1.2.GA1/jbossas/bin/run.jar
=========================================================================
15:51:45,955 INFO [Server] Starting JBoss (MX MicroKernel)...
15:51:45,956 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)
15:51:45,957 INFO [Server] Home Dir: serverRoot/jon-server-3.1.2.GA1/jbossas
15:51:45,957 INFO [Server] Home URL: file:serverRoot/jon-server-3.1.2.GA1/jbossas/
15:51:45,957 INFO [Server] Patch URL: null
15:51:45,958 INFO [Server] Server Name: default
15:51:45,958 INFO [Server] Server Home Dir: serverRoot/jon-server-3.1.2.GA1/jbossas/server/default
15:51:45,958 INFO [Server] Server Home URL: file:serverRoot/jon-server-3.1.2.GA1/jbossas/server/default/
15:51:45,958 INFO [Server] Server Log Dir: serverRoot/jon-server-3.1.2.GA1/logs
15:51:45,958 INFO [Server] Server Temp Dir: serverRoot/jon-server-3.1.2.GA1/jbossas/server/default/tmp
15:51:45,958 INFO [Server] Root Deployment Filename: jboss-service.xml
15:51:46,183 INFO [ServerInfo] Java version: 1.6.0_15,Sun Microsystems Inc.
15:51:46,183 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.1-b02,Sun Microsystems Inc.
15:51:46,184 INFO [ServerInfo] OS-System: Linux 2.6.18-164.15.1.el5,i386
15:51:46,377 INFO [Server] Core system initialized
....
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.