morningman commented on code in PR #3014:
URL: https://github.com/apache/doris-website/pull/3014#discussion_r2467832383


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/faq/lakehouse-faq.md:
##########
@@ -106,6 +106,15 @@ ln -s 
/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt /etc/ssl/certs/ca-
    请在 `jdbc_url` 中添加 `useSSL=true`
 
 4. 使用 JDBC Catalog 将 MySQL 数据同步到 Doris 中,日期数据同步错误。需要校验下 MySQL 的版本是否与 MySQL 
的驱动包是否对应,比如 MySQL8 以上需要使用驱动 com.mysql.cj.jdbc.Driver。
+   
+5. 单个字段过大,查询时 Java 内存 OOM

Review Comment:
   ```suggestion
   5. 单个字段过大,查询时 BE 侧 Java 内存 OOM
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/faq/lakehouse-faq.md:
##########
@@ -106,6 +106,15 @@ ln -s 
/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt /etc/ssl/certs/ca-
    请在 `jdbc_url` 中添加 `useSSL=true`
 
 4. 使用 JDBC Catalog 将 MySQL 数据同步到 Doris 中,日期数据同步错误。需要校验下 MySQL 的版本是否与 MySQL 
的驱动包是否对应,比如 MySQL8 以上需要使用驱动 com.mysql.cj.jdbc.Driver。
+   
+5. 单个字段过大,查询时 Java 内存 OOM
+
+   Jdbc Scanner 在通过 jdbc 读取时,由 session variable `batch_size` 决定每批次数据在 JVM 
中处理的数量,如果单个字段过大,导致 `字段大小 * batch_size`(近似值,由于 JVM 中 static 以及数据 copy 占用)超过 JVM 
内存限制,就会出现 OOM。
+
+   解决方法:
+
+   - 减小 `batch_size` 的值,可以通过 `set batch_size = 512;` 来调整,默认值为 1024。

Review Comment:
   ```suggestion
      - 减小 `batch_size` 的值,可以通过 `set batch_size = 512;` 来调整,默认值为 4046。
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to