alibaba / jstorm

Enterprise Stream Process Engine
http://jstorm.io
Apache License 2.0
3.91k stars 1.81k forks source link

jstorm 启动时提示内存不足,在哪里可以修改内存大小 #528

Open gethubljw opened 7 years ago

gethubljw commented 7 years ago

jstorm 在启动时提示内存不足,“There is insufficient memory for the Java Runtime Environment to continue”。我在 storm.yaml 中配置 nimbus.childopts: "-Xmx4g" 后提示 Exception in thread "main" java.lang.ExceptionInInitializerError at backtype.storm.command.config_value.main(config_value.java:40) ,想问一下修改内存大小应该在哪里配置?

qwe71471278 commented 6 years ago

配置里加上这个试试 mbus.childopts: "-Xmx256m"
supervisor.childopts: "-Xmx256m" worker.childopts: "-Xmx128m"

sjq597 commented 6 years ago

@gethubljw 你这个得加空格吧"<空格>Xmx 4g " 参数都是拼起来的