解决: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 should configure the numbe
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前些天發現了一個巨牛的人工智能學習網站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉到教程。
?1. 按官方說明用 docker 部署 rocketmq ,啟動 broker 報錯:
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 /opt/rocketmq-4.2.0/bin/runbroker.sh: line 71: 22 Killed2. 按提示找到 對應文件
find / -name *runbroker.sh查找結果有3個同名文件 ,我不知道是改哪個,于是3個都改了。
/var/lib/docker/overlay2/0aa7531560625ec8a0439bc215ef4628de9c8734ee83a0c503c13127ee723ee0/diff/opt/rocketmq-4.2.0/bin/runbroker.sh /var/lib/docker/overlay2/cf56ab981f4fb785fc7a78efa1445ff605796bfa4c7f2ae2f621c5a5171408ee/merged/opt/rocketmq-4.2.0/bin/runbroker.sh /var/lib/docker/overlay2/e0da31f0283ae25bbf6a949d2ebef676f5949f97f6001a4d4c4d63b7bece6c29/diff/opt/rocketmq-4.2.0/bin/runbroker.sh3. 修改默認大小空間配置,原本是設置的為 4G、4G、8G,我的服務器內存沒有那么大。改小就行了,見整個紅框中設置。
黃框中是我改后的設置,上面注釋掉的那行是原本配置。
改為:JAVA_OPT="${JAVA_OPT} -server -Xms256m -Xmx256m -Xmn128m"
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的解决:If the number of processors is expected to increase from one, then you should configure the numbe的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解决:-bash: unzip: com
- 下一篇: QT读写Sqlite数据库三种方式