Accredited Registrar Accredited Registrar

Frequently Asked Question

FAQ / Dedicated JVM


how to clear jvm cache in websphere?

Instructions on clearing the java class caches in WebSphere Application Server. It will includes both the JVM shared class cache and WebSphere Application Server OSGi class cache.

There are several reasons for clearing cache in server. After an upgrade, there is possible that the class cache's are still holding onto previous versions of classes and its also possible that the caches became corrupted.
So two caches that will need to be cleared in server, one is the JVM's cache and another one is OSGi cache. Before clearing cache ,jvm server has to be stopped.

To clear the OSGi class cache :

< WebSphere_HOME >/profiles/profile_name/bin/osgiCfgInit.sh

To clear the JVM class cache :


< WebSphere_HOME >/bin/clearClassCache.sh

Note
:

1.You should not delete the cache while any of the JVM are running and using the cache in server. The JVM server has to be stopped before clearing the cache.

2.For clearing JVM cahce,you must be logged in as the user who started WebSphere Application Server.




How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000

Related Tags :