Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[JSA] How to clear the Tomcat cache



Article ID: KB36807 KB Last Updated: 23 Apr 2021Version: 1.0

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.


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


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.



  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:
Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search