This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git


The following commit(s) were added to refs/heads/master by this push:
     new f32fece49f4 [FAQ] Add error code 0-5. (#1490)
f32fece49f4 is described below

commit f32fece49f48b1f1813a6f14bf5107725fcfb838
Author: Andy Cheung <[email protected]>
AuthorDate: Sat Sep 10 17:27:44 2022 +0800

    [FAQ] Add error code 0-5. (#1490)
---
 content/zh/docs3-v2/java-sdk/faq/0/4.md |  1 +
 content/zh/docs3-v2/java-sdk/faq/0/5.md | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/content/zh/docs3-v2/java-sdk/faq/0/4.md 
b/content/zh/docs3-v2/java-sdk/faq/0/4.md
index 4d3e2cf1ca7..fa49037748a 100644
--- a/content/zh/docs3-v2/java-sdk/faq/0/4.md
+++ b/content/zh/docs3-v2/java-sdk/faq/0/4.md
@@ -13,6 +13,7 @@ weight: 4
 {{% pageinfo %}}
 
 **提示:**
+
 `dubbo.mapping.cache.entrySize` 或者 `dubbo.meta.cache.entrySize` 的默认值如下:
 
 <style>
diff --git a/content/zh/docs3-v2/java-sdk/faq/0/5.md 
b/content/zh/docs3-v2/java-sdk/faq/0/5.md
new file mode 100644
index 00000000000..313dd8be2c5
--- /dev/null
+++ b/content/zh/docs3-v2/java-sdk/faq/0/5.md
@@ -0,0 +1,30 @@
+---
+type: docs
+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` 没有显示默认值,
+
+而根据 `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>
\ No newline at end of file

Reply via email to