File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,16 @@ docker cp iotdb:/iotdb/conf /docker-iotdb/iotdb/conf
196196` ` ` bash
197197docker-compose -f docker-compose-standalone.yml up -d
198198` ` `
199+ # ## 2.7 使用环境变量配置内存
200+ 功能:在docker- compose的配置文件中配置JVM启动内存。
201+ IoTDB版本大于等于2 .0 .4 .1 或者大于等于1 .3 .5 以后才支持这种做法。
202+ ` ` ` bash
203+ environment:
204+ # for datanode
205+ - IOTDB_JMX_OPTS=-Xms4G -Xmx4G -XX:MaxDirectMemorySize=1G
206+ # for confignode
207+ - CONFIGNODE_JMX_OPTS=-Xms1G -Xmx1G -XX:MaxDirectMemorySize=256M
208+ ` ` `
199209
200210# # 3. 集群版
201211
Original file line number Diff line number Diff line change @@ -238,6 +238,16 @@ docker cp iotdb:/iotdb/conf /docker-iotdb/iotdb/conf
238238` ` ` Bash
239239docker-compose -f docker-compose-standalone.yml up -d
240240` ` `
241+ # ## 2.9 使用环境变量配置内存
242+ 功能:在docker-compose的配置文件中配置JVM启动内存。
243+ IoTDB版本大于等于2.0.4.1 或者大于等于1.3.5 以后才支持这种做法。
244+ ` ` ` bash
245+ environment:
246+ # for datanode
247+ - IOTDB_JMX_OPTS=-Xms4G -Xmx4G -XX:MaxDirectMemorySize=1G
248+ # for confignode
249+ - CONFIGNODE_JMX_OPTS=-Xms1G -Xmx1G -XX:MaxDirectMemorySize=256M
250+ ` ` `
241251
242252# # 3. 集群版部署
243253
You can’t perform that action at this time.
0 commit comments