How to clear the WebSphere class caches
How to clear the WebSphere class caches
Troubleshooting
https://www.ibm.com/support/pages/how-clear-websphere-class-caches
Problem
Instructions on clearing the java class caches in IBM WebSphere Application Server. Both the JVM's shared class cache and WebSphere Application Server's OSGi class cache.
Resolving The Problem
IBM Support may ask you to clear the class cache. There are several reasons for this. After an upgrade, it is possible that the class cache's are still holding onto previous versions of classes. It is also possible that the caches became corrupted.
Please remember there are two caches that will need to be cleared, the JVM's cache and the OSGi cache. The server has to be stopped before clearing the cache.
To clear the OSGi class cache:
- For UNIX platforms, run the following script in each profile:
<WebSphere_HOME>/profiles/profile_name/bin/osgiCfgInit.sh
For Windows platforms, run the following script in each profile:
<WebSphere_HOME>\profiles\profile_name\bin\osgiCfgInit.bat
To clear the JVM's class cache (Linux, AIX, z/OS and Windows):
- For UNIX and z/OS platforms, run the following script:
<WebSphere_HOME>/bin/clearClassCache.sh
For Windows platforms, run the following script:
<WebSphere_HOME>\bin\clearClassCache.bat
And clear the following directory contents:
<WinUsers_home>\Local Settings\ApplicationData\javasharedresources\
where WinUsers_home is either C:\Documents and Settings\DefaultUser OR C:\Users depending on your current version of Windows.
Please note:
1. You should not delete the cache while any of the JVM's are running and using the cache. The server has to be stopped before clearing the cache.
2. You must be logged in as the user who started WebSphere Application Server.
3. For Windows the clearClassCache.bat may not work if you are using Windows Services. Please follow these steps:
Clear the following directory contents:
For Windows XP/Windows 2003:
C:\Documents and Settings\DefaultUser\Local Settings\ ApplicationData\javasharedresources\
For Window Vista/Windows 7/Windows 2008:
C:\Users\[WSAS_User]\AppData\Local\javasharedresources\
For Windows 2008/Windows 2012/Windows 2016:
C:\Windows\System32\config\systemprofile\AppData\Local\javasharedresources
or
C:\Windows\SysWOW64\config\systemprofile\AppData\Local\javasharedresources
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!