You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by wl...@apache.org on 2019/03/11 12:09:49 UTC
[rocketmq] branch develop updated: [RIP-9] Add the system
configuration option doc: Direct ByteBuffer memory size
This is an automated email from the ASF dual-hosted git repository.
wlliqipeng pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git
The following commit(s) were added to refs/heads/develop by this push:
new 12ccd50 [RIP-9] Add the system configuration option doc: Direct ByteBuffer memory size
new a83c621 Merge pull request #1044 from Crab2died/develop
12ccd50 is described below
commit 12ccd50806bafae2d8c4a6fe0cff668a96ecb8db
Author: 螃蟹以死 <hw...@126.com>
AuthorDate: Tue Mar 5 17:55:50 2019 +0800
[RIP-9] Add the system configuration option doc: Direct ByteBuffer memory size
[RIP-9] Add the system configuration option doc: Direct ByteBuffer memory size
---
docs/en/Configuration_System.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/docs/en/Configuration_System.md b/docs/en/Configuration_System.md
index 2f29c3b..6354ffe 100644
--- a/docs/en/Configuration_System.md
+++ b/docs/en/Configuration_System.md
@@ -8,6 +8,10 @@ The latest released version of JDK 1.8 is recommended. Set the same Xms and Xmx
-server -Xms8g -Xmx8g -Xmn4g
+Direct ByteBuffer memory size setting. Full GC will be triggered when the Direct ByteBuffer up to the specified size:
+
+ -XX:MaxDirectMemorySize=15g
+
If you don’t care about the boot time of RocketMQ broker, pre-touch the Java heap to make sure that every page will be allocated during JVM initialization is a better choice. Those who don’t care about the boot time can enable it:
-XX:+AlwaysPreTouch