How to clear the extension registry, OSGi caches, and temporary files
Applies to
HCL Digital Experience v8.5 and higher
Introduction
The HCL Digital Experience (DX) server uses different kind of caches. This document explains how to clear the extension registry, the Open Services Gateway initiative (OSGi) caches of the server and the temporary files used by DX profiles.
Instructions
Resetting extension registry
To reset the extension registry:
- Stop the DX JVMs.
- Delete the contents of the following directory:
<wp_profile_root>/temp/<nodeName>/WebSphere_Portal/_extensionregistry - Start the Portal server.
Clearing the temporary files of the DX profiles
To clear the temporary files:
- Stop the HCL DX Environment completely, including all JVMs. On a clustered environment, you also need to stop the Deployment Manager, Node Agents, and servers.
-
For each WebSphere Application Server profile, delete the contents of the following directories:
<profile_root>/temp <profile_root>/wstemp <profile_root>/config/tempBefore deleting the temporary files, please also read:
Things to know before deleting temporary, cache and log files in WebSphere Application Server
Clearing the OSGi class caches of DX profiles
For UNIX platforms, run the following script in each profile:
<profile_root>/bin/osgiCfgInit.sh
For Windows platforms, run the following script in each profile:
<profile_root>\bin\osgiCfgInit.bat
Clearing JVM class caches (Windows, Linux and AIX only)
For UNIX platforms, run the following script:
<AppServer_root>/bin/clearClassCache.sh
For Windows platforms, run the following script:
<AppServer_root>\bin\clearClassCache.bat
Clearing Java shared resources
Java shared resources can be found in different locations depending on the operating system.
On Windows, these resources are usually found in <WinUsers_home>\Local Settings\ApplicationData\javasharedresources\, where <WinUsers_home> is either C:\Documents and Settings\DefaultUser or C:\Users\<username> depending on the current version of Windows.
For AIX or Linux:
/tmp/javasharedresources
For Windows XP or Windows 2003:
C:\Documents and Settings\DefaultUser\Local Settings\ApplicationData\javasharedresources\
For Window Vista, Windows 7, or Windows 2008:
C:\Users\<username>\AppData\Local\javasharedresources\
For Windows 2008, Windows 2012, or Windows 2016:
C:\Windows\System32\config\systemprofile\AppData\Local\javasharedresourcesC:\Windows\SysWOW64\config\systemprofile\AppData\Local\javasharedresources
When all JVMs are stopped, delete the content of that javasharedresources folder.
Source: How to clear the WebSphere class caches
Note
- Never delete the cache while any of the JVMs are running and using the cache. The server has to be stopped before clearing the cache.
- Be logged in as the user that started the WebSphere Application Server.
- For Windows, the
clearClassCache.batfile may not work when using Windows Services.