How to switch between basic and HPEL logging in WebSphere

Home > Search > How-to
  by

By default, WebSphere will use basic logging. With basic logging, the application server will log events in the SystemOut.log, SystemErr.log, trace.log, and activity.log. With High Performance Extensible Logging (HPEL), there are three types of logs: HPEL log, HPEL trace, text.log.


To enable HPEL logging

  1. In the left panel of the WebSphere web console, select Troubleshooting > Logs and trace.
  2. Select the server that you want to switch to HPEL.
  3. Select Switch to HPEL Mode.
  4. Select Save.

If enabling HPEL logging on a node, restart the node agent. If enabling HPEL on an application server, restart the application server. After restart, Logs and trace should display the 3 types of HPEL logs.

 


To enable basic logging

  1. In the left panel of the WebSphere web console, select Troubleshooting > Logs and trace.
  2. Select the server that you want to switch to HPEL.
  3. Select Change log and trace mode.
  4. Select Switch back to basic mode.
  5. Select Save.

 


Viewing the HPEL logs

The HPEL text.log can be viewed using any common text editor, such as notepad on Windows or vi on Linux. The HPEL log and HPEL trace logs are in binary format, thus these logs cannot be viewed with a text editor. Instead, the logViewer command is used to viewed the HPEL log and HPEL trace logs.

 


Improving performance

The primary motivation for using HPEL logging instead of basic logging is to improve performance. With basic logging, events are written to a number of different text files, which requires more CPU and RAM than it takes to write events to the HPEL logs. HPEL logging might improve the performance of applications, as it may take the applications less time to write the events to the HPEL log as compared to the basic logs.

The HPEL text.log has the same exact data as the HPEL binary logs. The HPEL text.log is only provided for convenience.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments