How do I manually restart JBoss on Linux?

Basic Restart Procedure

Log into the server as root and run the following command
RHEL 5 and RHEL 6:

service eclipse-jboss restart

RHEL 7:

systemctl restart eclipse-jboss

The application server will immediately begin the restart procedure, and it should be back up and running within 2-3 minutes on most servers.

Extended Restart Procedure

If the application server crashes, and attempts to restart it using the basic restart procedure above, or at the direction of Eclipse support, please follow this procedure as root to perform an extended, clean restart of JBoss:

  • Stop the JBoss service:

RHEL 5 and RHEL 6:

service eclipse-jboss stop

RHEL 7:

systemctl stop eclipse-jboss
  • Kill any errant JBoss processes:
pkill -9 -f jboss
  • Kill any errant J2EE (connection pool) phantoms on the database server:
pkill -4 -f SOLAR.J2EE.CONNECTION
  • (Optional) Backup logs for diagnosis (releases 8.7.2 and below):
cd /u2/eclipse/modules/jboss/server/eclipse
tar czvf /esupport/jboss.logs.`date +%Y%m%d.%H%M%S`.tar.gz ./log
  • (Optional) Backup logs for diagnosis (releases 8.7.3 and above):
cd /u2/eclipse/modules/jboss/eclipse
tar czvf /esupport/jboss.logs.`date +%Y%m%d.%H%M%S`.tar.gz ./log
  • Remove JBoss temporary directories (releases 8.7.2 and below):
rm -rf /u2/eclipse/modules/jboss/server/eclipse/tmp
rm -rf /u2/eclipse/modules/jboss/server/eclipse/log
rm -rf /u2/eclipse/modules/jboss/server/eclipse/data
rm -rf /u2/eclipse/modules/jboss/server/eclipse/work
  • Remove JBoss temporary directories (release 8.7.3 and above):
rm -rf /u2/eclipse/modules/jboss/eclipse/tmp
rm -rf /u2/eclipse/modules/jboss/eclipse/log
rm -rf /u2/eclipse/modules/jboss/eclipse/data
  • Remove the CONNECTED.APP.SERVERS control record:
cd /u2/eclipse
/u2/uv/bin/uv
ed control connected.app.servers
fd
y
q
  • Start the JBoss service:

RHEL 5 and RHEL 6:

service eclipse-jboss start

RHEL 7:

systemctl start eclipse-jboss

What is Logwatch?

Logwatch is a log-monitoring system built into Red Hat Enterprise Linux. By default, it sends a daily email to the root user that contains potentially important entries from the system logs, such as kernel errors, user authentication failures, sudo commands, and disk utilization.

The output of the logwatch report is sent to the root user by default, but can easily be forwarded to any email address by adding an alias for the root user: How do I configure an email alias for my root account on Linux?

How do I obtain Red Hat Enterprise Linux media?

How do I monitor my APC UPS on Linux?

If you have an APC UPS connected to your server via serial or USB cable, we recommend using the PowerChute Business Edition software provided and supported by APC.

Installation

Before getting started, download and review the PowerChute documentation and installation documentation, which are both available from the APC downloads page.

After downloading the latest version of the PowerChute software from APC’s website, you will have to transfer the installation file to the Linux server (ex. ftp, scp, samba), extract it, and run the installer. Here’s an example:

cd /esupport/powerchute
tar xzf pcbe852_linux.tar.gz
rpm -Uvh pbeagent-8.5.2-607.i386.rpm
cd /opt/APC/PowerChuteBusinessEdition/Agent
./config.sh

Answer the questions as prompted. Here is an example configuration:

  • Username: apc
  • Password: apc
  • Repeat password: apc
  • Select cable type: 1 for smart signaling
  • Select USB or serial port (e.g. 1 for /dev/ttyS0 onboard port)
  • Are the settings correct? Yes
  • Start PowerChute now? Yes

Configuration

Once PowerChute has been installed, you may access it via its web interface at: https://SERVER_IP_ADDRESS:6547/config/

Log in with the username and password you defined previously.

Use the web interface to check the status of your APC UPS or to configure shutdown parameters.

Support

To contact APC for hardware support or software configuration questions:

Note: if you encounter a warning about missing packages, please see this APC FAQ.

How do I authorize UniVerse on Linux?

To authorize UniVerse on Linux:

  • Log out all Eclipse users.
  • Login to the server as root.
  • Stop Eclipse SYSTEM.ADMIN, JBoss and the UV database processes:
service eclipse-jboss stop
service monit stop
service eclipse-system-admin stop
pkill -4 -f phantom
pkill -4 -f uv
service uv.rc stop
  • Update the UV authorization (replace [Install SN#], [Auth Qty] and [Expiration Date] with the numbers from the Rocket|U2 license change confirmation email)
cd /u2/uv
bin/uvregen -s [Install SN#] -u [Auth Qty] -e [Expiration Date]
bin/uvregen -C
  • Note the resulting configuration code for the next step.
  • Open the U2TC authorization website: https://u2tc.rocketsoftware.com/authprod.asp
  • Fill out the first page with your contact information and select UniVerse 10.2.x and higher and press Continue:
  • Fill out the next page using the information from the Rocket|U2 license change confirmation email and the configuration code from the previous steps, then press Submit. Here’s an example:
  • Note the authorization code given on the confirmation page.
  • On the Eclipse server, authorize UV (replace [authorization code]) :
bin/uvregen -A [authorization code]
  • You may confirm your license count by running the following command:
bin/uvregen -z
  • Start the UV database, Eclipse SYSTEM.ADMIN, and JBoss:
service uv.rc start
service eclipse-system-admin start
service monit start
service eclipse-jboss start

Reference:

How to Authorize UniVerse 10.2.0 and higher

Screencast:

Before you begin, it may be helpful to watch this short video, which goes over the entire process from start to finish:

Unable to display content. Adobe Flash is required.