ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

How to clear the WebSphere class caches

2022-07-27 15:33:01  阅读:152  来源: 互联网

标签:WebSphere clear cache How Windows following 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

 

标签:WebSphere,clear,cache,How,Windows,following,class,caches
来源: https://www.cnblogs.com/z-cm/p/16525021.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有