Platform Framework
R24 AMR | Min(s) read

TAFJ Sessions and Technical Monitoring

You can monitor the TAFJEE application by browsing http://<host>:<port>/TAFJEEMonitoring/monitoring. This section deals with the TAFJ sessions monitor, technical monitor and JavaMelody.

JavaMelody is an open source application to monitor Java or Java EE applications in QA and production environments. This tool is for reporting—measures application usage and provides statistical details.

For more details on JavaMelody, refer JavaMelody : monitoring of JavaEE applications.

With very low overhead it gives some statistics and charts about:

  • Memory threads, CPU
  • SQL statements
  • Numbers of EJBs call and response time
  • Error logs
  • MBeans and active sessions
  • Database information

You can disable monitoring or remove it from TAFJJEE application, if required. However, this option is not recommended.

JavaMelody does not require a database to store events or code instrumentation.Therefore it could be enabled in production because of its low overhead (from null to 5%).

For more details on JavaMelody, refer Overhead of JavaMelody.

The JavaMelody libraries found under TAFJJEE_EAR/APP_INF/lib are:

File Description

javamelody.jar

Core library, which is a patched version of official JavaMelody to cover additional need.

jrobin.jar

RRD tool java implementation to log data and do graph rendering.

The various functions offered by JavaMelody for TAFJ are as follows:

Limitations and Known Issues

This section provides details about the limitations and known issues for WebSphere and JBoss servers.

TAFJ Sessions Monitor

Procedure

  1. Untar the file TAFJSessionMonitor.tar.gz in $TAFJ_HOME from $TAFJ_HOME/TAFJSessionMonitor
  2. Check the $TAFJ_HOME/TAFJSessionMonitor/config/SessionMonitor.properties file for the following properties.
    • tcp_port=8377 - Port used between TAFJ and TAFJSessionMonitor.
    • http_port=8370 - Port used for the HTTP URL.
  3. Run start.sh or start.bat (depending on the operating system) in $TAFJ_HOME /TAFJSessionMonitor/bin
  4. Access the URL http://<IP>:<http_port>/SessionMonitor/. For example, http://127.0.0.1:8370/SessionMonitor/

  5. Configure the following properties in the tafj.properties file.

The following code shows the properties file setup with TAFJ.

#********************************************************************
#
#  TAFJ Monitor
#
#********************************************************************
# Enable the TAFJMonitorSession
#
temn.tafj.runtime.session.monitor.enable        = true  <= to enable the monitor

# Host name or IP of where is the TAFJMonitorSession
#
temn.tafj.runtime.session.monitor.host          = localhost <= where is your TAFJSessionMonitor

# TCP port of the TAFJMonitorSession 
#
temn.tafj.runtime.session.monitor.port          = 8377<= the tcp_port of TAFJSessionMonitor

The following options are used to start the session monitor:

Option Description

-f

Indicates the file recording mode.

-refresh <time in seconds>

Indicates the time to refresh the contents. The default value is five seconds.

The following example shows the usage of -f and -refresh <time in seconds> options.

start.cmd/sh -f –refresh 10

You can retrieve the recorded file from the $TAFJ_HOME /TAFJSessionMonitor/config folder.

Below is the sample content of the recorded file from the above example.

TAFJ Session Monitor Secure Access using HTTPS Port

You can access TAFJ Session Monitor securely using the following procedure.

  1. Check the file $TAFJ_HOME /TAFJSessionMonitor/config/SessionMonitor.properties for the following properties:
    • tcp_port=8377 - Port used between TAFJ and TAFJ Session Monitor.
    • https_port=8371 - Port used for the HTTPS URL.
    • EnableSSL = false - By default, value is false. To access Session Monitor page via HTTPS, value should be set to true.
    • path_jks = <Keystore_path> - Path reference to the generated keystore.
    • store_password = <keystore_manager_password> - Keystore manager password of the generated keystore.
    • key_password = <keystore_password> - Keystore password of the generated keystore.

    For more information, see the https://www.eclipse.org/jetty/documentation/current/configuring-ssl.html URL.

    Sample snippet:

    EnableSSL=true
    tcp_port=8377
    http_port=8370
    https_port=8371
    path_jks=C:/javasoft/jdk-8u231-windows-x64/bin/keystore.jks
    store_password=123456
    key_password=123456
    
  2. In $TAFJ_HOME /TAFJSessionMonitor/bin, run start.sh or start.bat depending on your operating system.
  3. Browse https://<IP>:<https_port>/SessionMonitor/.

    For example, https://localhost:8371/SessionMonitor

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:10:18 PM IST