如何清除WEBLOGIC缓存How To Clear The Server Cache Directories (cache, stage, tmp) (文档 ID 1323602.1)

How To Clear The Server Cache Directories (cache, stage, tmp) (文档 ID 1323602.1)    

In this Document
Goal
Solution
APPLIES TO:

Oracle WebLogic Portal - Version 8.1 and later
Oracle E-Business Suite Technology Stack - Version 12.2.1 to 12.2.1 [Release 12.2]
Oracle SOA Suite - Version 12.2.1.2.0 to 12.2.1.2.0 [Release 12c]
Oracle WebLogic Server - Version 8.1 and later
Information in this document applies to any platform.
GOAL

WebLogic Server (WLS) has several server cache directories it uses to store deployed applications and shared libraries. Each server (admin and managed) has its own cache directories named cache, stage and tmp. Sometimes these cache directories become stale and there can be a mismatch between what's running in memory and what's in the cache directory. This can cause various WebLogic Portal (WLP) issues such as NullPointerExceptions, broken portlets and deployment problems, to name a few. When experiencing these types of issues the first thing you should do is clear the cache directories to see if it resolves the issue.

This document explains how to clear the server cache directories (cache, stage, tmp).

SOLUTION

Note: This applies to all WLP versions from 8.1 all the way through 10.3.X.
 

1. Shutdown all admin and managed servers.


2. For WLP versions 9.2 and above, delete the following Admin and Managed server cache directories:

    <Domain>/servers/<Server Name>/cache
    <Domain>/servers/<Server Name>/stage (if exists)
    <Domain>/servers/<Server Name>/tmp

   For WLP version 8.1, delete the equivalent server cache directories:

   <Domain>/<Server Name>/stage
   <Domain>/<Server Name>/.internal
   <Domain>/<Server Name>/.wlnotdelete


Notes
The domain directory structures are different between 8.1 and all other versions
The servers must be shutdown in order to clear the cache directories
The stage directory normally doesn't exist for the admin server unless the application is deployed to the admin server (e.g, in WLP 8.1)

3. Restart all admin and managed servers.  The cache directories (cache, stage, tmp) are then automatically recreated upon server startup and application deployment.


When should you clear out the server cache directories?

After installing a patch
Upon redeployment of an application
Upon redeployment of a shared library

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值