出现这种问题一般是内存不足导致的,我们可以将配置文件中的默认启动内存调小一些。将./bin/runserver.sh和runbroker.sh文件中的JAVA_OPT调整为128M,然后启动就正常了。
runserver.sh JAVA_OPT="${JAVA_OPT} -server -Xms128m -Xmx128m -Xmn128m -XX:metaspaceSize=32m -XX:MaxmetaspaceSize=64m" runbroker.sh JAVA_OPT="${JAVA_OPT} -server -Xms128m -Xmx128m -Xmn128m"问题二: 安装rocketmq-dashboard出现包拉去不下来问题。官网rocketmq-dashboard地址。,打包拉取下来部署。
mvn clean package -Dmaven.test.skip=true
java -jar target/rocketmq-dashboard-1.0.1-SNAPSHOT.jar
下载速度不理想更换maven镜像源地址,maven的settings.xml
alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central
报错原因:
[INFO] Installing node version v16.2.0 [INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/16.2.0/node-16.2.0-linux-x64.tar.gz into /data/rocketmq-dashboard-master/target/node/tmp [INFO] Copying node binary from /data/rocketmq-dashboard-master/target/node/tmp/node-v16.2.0-linux-x64/bin/node to /data/rocketmq-dashboard-master/target/node/node [INFO] Installed node locally. [INFO] Installing Yarn version v1.22.10 [INFO] Unpacking /root/.m2/repository/com/github/eirslett/yarn/1.22.10/yarn-1.22.10.tar.gz into /data/rocketmq-dashboard-master/target/node/yarn [ERROR] The archive file /root/.m2/repository/com/github/eirslett/yarn/1.22.10/yarn-1.22.10.tar.gz is corrupted and will be deleted. Please try the build again. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:41 min [INFO] Finished at: 2022-01-19T09:56:16+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:install-node-and-yarn (install node and yarn) on project rocketmq-dashboard: Could not extract the Yarn archive: Could not extract archive: '/root/.m2/repository/com/github/eirslett/yarn/1.22.10/yarn-1.22.10.tar.gz': EOFException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
解决:下载yarn-1.22.10.tar.gz包放到/root/.m2/repository/com/github/eirslett/yarn/1.22.10/目录下即可,再次运行mvn clean package -Dmaven.test.skip=true
[INFO] Replacing main artifact with repackaged archive [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 03:55 min [INFO] Finished at: 2022-01-19T10:33:08+08:00 [INFO] ------------------------------------------------------------------------
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)