当前位置:   article > 正文

解决:If the number of processors is expected to increase from one, then you should configure the numbe

if the number of processors is expected to increase from one, then you shoul

前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。

 1. 按官方说明用 docker 部署 rocketmq ,启动 broker 报错:

  1. OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
  2. /opt/rocketmq-4.2.0/bin/runbroker.sh: line 71: 22 Killed

2. 按提示找到 对应文件

find / -name *runbroker.sh

查找结果有3个同名文件 ,我不知道是改哪个,于是3个都改了。

  1. /var/lib/docker/overlay2/0aa7531560625ec8a0439bc215ef4628de9c8734ee83a0c503c13127ee723ee0/diff/opt/rocketmq-4.2.0/bin/runbroker.sh
  2. /var/lib/docker/overlay2/cf56ab981f4fb785fc7a78efa1445ff605796bfa4c7f2ae2f621c5a5171408ee/merged/opt/rocketmq-4.2.0/bin/runbroker.sh
  3. /var/lib/docker/overlay2/e0da31f0283ae25bbf6a949d2ebef676f5949f97f6001a4d4c4d63b7bece6c29/diff/opt/rocketmq-4.2.0/bin/runbroker.sh

3. 修改默认大小空间配置,原本是设置的为 4G、4G、8G,我的服务器内存没有那么大。改小就行了,见整个红框中设置。

黄框中是我改后的设置,上面注释掉的那行是原本配置。

改为:JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn128m"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/380633
推荐阅读
  

闽ICP备14008679号