Skip to content

Commit

Permalink
Update 5.md (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Nov 7, 2022
1 parent 8bca3be commit f6da1ee
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions content/zh/docs3-v2/java-sdk/faq/0/5.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,20 @@ title: "0-5 - 缓存文件大小超限"
linkTitle: "0-5 - 缓存文件大小超限"
weight: 5
---

其它模块复用了 Common 层的基于文件的缓存机制(目前是元数据模块),而 Common 层的文件缓存机制 “发觉” 文件大小超限。
显示的例子如下:

## 可能的原因

### 可能的原因
1. 用户不合理地配置了 Java System Property (用 -D 配置的 Java 系统属性) `dubbo.mapping.cache.maxFileSize` 或者 `dubbo.meta.cache.maxFileSize`
2. 缓存文件因文件系统或磁盘错误而被破坏。

{{% pageinfo %}}

**提示:**

`dubbo.mapping.cache.maxFileSize``dubbo.meta.cache.maxFileSize` 没有显示默认值,

> `dubbo.mapping.cache.maxFileSize``dubbo.meta.cache.maxFileSize` 没有显示默认值,
而根据 `org.apache.dubbo.common.cache.FileCacheStore.LimitedLengthBufferedWriter` 的逻辑而查到的最大文件大小的默认值为:`Long.MAX_VALUE` ( 2<sup>63</sup>-1 ) 。
{{% /pageinfo %}}

## 排查和解决步骤
1. 尝试重新配置上述 **Java System Property(用 -D 配置的 Java 系统属性)**
2. 删除缓存文件夹重启 Provider 和 Consumer (缓存文件夹的位置一般在 `~/.dubbo`。如果配置了 `dubbo.meta.cache.filePath``dubbo.mapping.cache.filePath` 则为该路径)。
3. 如果确实没有配置这些 System Property,请到 [GitHub Issue Tracker](https://github.com/apache/dubbo/issues) 下发 Issue。

<p style="margin-top: 3rem;"> </p>
### 排查和解决步骤
1. 尝试重新配置上述 **Java System Property(用 -D 配置的 Java 系统属性)**
2. 删除缓存文件夹重启 **Provider****Consumer** (缓存文件夹的位置一般在 `~/.dubbo`。如果配置了 `dubbo.meta.cache.filePath``dubbo.mapping.cache.filePath` 则为该路径)。
3. 如果确实没有配置这些 **System Property**,请到 [GitHub Issue Tracker](https://github.com/apache/dubbo/issues) 下发 Issue。

0 comments on commit f6da1ee

Please sign in to comment.