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”

  • 相关阅读:
    AJAX 跨域请求与 JSONP详解
    深入理解PHP的mvc框架
    读文文件md5值
    快速排序
    编写简单GUI程序
    简单的加减法
    rallway.py
    用列表构建栈结构
    模拟用户登陆注册
    密码生成
  • 原文地址:https://www.cnblogs.com/luleiitlife/p/8544980.html
Copyright © 2011-2022 走看看