Description

In some instances, the Apache Tomcat server's cache needs to be cleared for the JSA environment to function correctly. For example, Juniper JSA support might suggest that an administrator should clear the cache if the graphical user interface is slow or specific components of the user interface do not load as expected.

This article provides the steps required to clear the Tomcat cache.

Symptoms

The UI becomes slow or specific components of the UI do not load as expected.

Solution

Before You Begin

  • Before attempting to clear the Tomcat cache, check if the issue is limited to certain users. If it is, have them attempt to access the graphical user interface by using their browser's incognito mode or a private tab. If this resolves the issue, have the users clear their browser cache and attempt to access the user interface again.

  • Administrators with strict outage policies are advised to complete this procedure during a scheduled Maintenance Window for their organization.

  • Restarting Tomcat ends all active user sessions and logs out all users. When the Tomcat service is stopped or restarting, the JSA user interface will not be available.

  • Performance or user interface issues are not necessarily related to the Tomcat cache. If Juniper JSA support did not suggest clearing the cache, check with them for a more in-depth analysis before you complete the procedure in this article.

 

Steps

  1. Use SSH to log in to the Console as the root user.

  2. To create a backup directory for files, type the following command:

mkdir /store/support
  1. Type the following command to stop the Tomcat service:

systemctl stop tomcat
  1. To back up the  /opt/tomcat/work/Catalina/localhost  directory, type:

cp -pr /opt/tomcat/work/Catalina/localhost/console/org/apache/jsp  /store/support/
  1. To clear the cached files from the  /opt/tomcat/work/Catalina/localhost/console  directory, type:

rm -rfv /opt/tomcat/work/Catalina/localhost/console/org/apache/jsp
  1. Type the following command to start the Tomcat service:

systemctl start tomcat

After the services start, the Tomcat cached files are cleared and any cache-related issues might be resolved. If you continue to experience problems with the JSA user interface, contact Juniper Support  for assistance.

Modification History

https://www.ibm.com/support/pages/qradar-how-clear-tomcat-cache