IBM



Clean up the cache

1. Disable Dynacache:

a. Open a command line window.

b. Change directories to:

was_installdir\installedapps\<server_name>\Stores.war\WEB-INF

For example:

C:\WebSphere\AppServer\installedapps\WC_demo.ear\Stores.war\WEB-INF

c. Locate the cachespec.xml file and change the name to something else, such as oldcachespec.xml.

2. Delete the cache:

a. In the same command line window, change directories to:

was_installdir\temp\<server_name>

For example:

C:\WebSphere\AppServer\temp\WC_demo

b. Delete all of the contents from this directory, including all subdirectories.

3. Compile all of the JSPs for the site:

a. In the same command line window, change directories to:

was_installdir\bin

For example

C:\WebSphere\AppServer\Bin

b. Run the following command to compile all the JSP files in all of the Web modules:

JspBatchCompiler.bat -enterpriseapp.name server_name -cell.name host_name -node.name node_name -server.name server_name

For example:

JspBatchCompiler.bat -enterpriseapp.name WC_demo -cell.name cmw2kpro1 -node.name cmw2kpro1 -server.name WC_demo

Note: This takes quite some time to complete, so be patient.


Redbooks
ibm.com/redbooks


+

Search Tips   |   Advanced Search