zoukankan      html  css  js  c++  java
  • error='Cannot allocate memory'

    阿里云服务器上已经启动了3个tomcat,当再启动第4个tomcat时,

    Oct 08, 2017 6:49:23 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive /home/weixinserver/webapps/cat.war
    Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000eca00000, 15728640, 0) failed; error='Cannot allocate memory' (errno=12)
    #
    # There is insufficient memory for the Java Runtime Environment to continue.
    # Native memory allocation (malloc) failed to allocate 15728640 bytes for committing reserved memory.
    # An error report file with more information is saved as:
    # /home/weixinserver/hs_err_pid17919.log

    vim catalina.sh
    添加:
    JAVA_OPTS=”-Xms512m -Xmx768m -Xss1024K -XX:PermSize=328m -XX:MaxPermSize=656m”

  • 相关阅读:
    一个Fragment的实例
    使用LayoutInflater添加一个布局引用
    11F:42点
    11E:分形盒
    11D:猴子摘桃
    11C:寻找边缘
    11B:夺宝探险
    10J:判断整除
    11A:篮球联赛
    10I:核电站
  • 原文地址:https://www.cnblogs.com/luleiitlife/p/8544980.html
Copyright © 2011-2022 走看看