zoukankan      html  css  js  c++  java
  • Maven的assembly插件在linux启动卡住Starting the localhost.localdomain

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


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

    [root@localhost logs]# cat stdout.log 
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
    Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
    Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000090000000, 1879048192, 0) failed; error='Cannot allocate memory' (errno=12)
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (mmap) failed to map 1879048192 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

     


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

     

    ps:

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

  • 相关阅读:
    MVC3 验证码
    说说.NET反编译工具
    HTTP协议学习
    Spring Web Flow 的优缺点
    Java CLASSPATH 引发的问题
    MySQL 高级
    Java Policy
    AJAX
    数据结构与算法学习资源
    C#学习资源
  • 原文地址:https://www.cnblogs.com/arebirth/p/mavenassemblerunerr.html
Copyright © 2011-2022 走看看