Maven的assembly插件在linux启动卡住Starting the localhost.localdomain

1、今天在测试assembly的时候,在Linux虚拟机,内存配置为512mb,然后开始在Linux上运行assembly的时候就会一直卡住

Maven的assembly插件在linux启动卡住Starting the localhost.localdomain


 2、停止运行后,查看了下日志

[root@localhost logs]# cat stdout.log
Java HotSpot(TM) -Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) -Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
Java HotSpot(TM) -Bit Server VM warning: INFO: os::commit_memory(0x0000000090000000, , ) failed; error='Cannot allocate memory' (errno=)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map bytes for committing reserved memory.
# An error report file with more information is saved as:
# /usr/local/soft/provider/dubo-user-service-1.0-SNAPSHOT/hs_err_pid4483.log

意思就是虚拟机的内存不够,我们重新给虚拟机分配下内存为1G(心疼电脑,本来内存就不够!!!)


3、重新给虚拟机分配内存为1024mb

Maven的assembly插件在linux启动卡住Starting the localhost.localdomain


4、启动Linux并运行我们的assemble,大功告成!

Maven的assembly插件在linux启动卡住Starting the localhost.localdomain

ps:

你察觉到了日志的强大了吗?

上一篇:how to check the computer is 32 bit or 64bit in linux


下一篇:如何设置记事本( .txt文件)的默认编码为UTF-8?