zoukankan      html  css  js  c++  java
  • Tomcat内存溢出 tomcat outofmemoryerror permgen space

    1. Find where is Cataline.sh 

    2. Append the following memory settings to a JAVA_OPTS variable and add it on top of the catalina.sh content.


    JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m
    -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m 
    -XX:MaxPermSize=256m -XX:+DisableExplicitGC"



    catalina.sh
    #   JSSE_HOME       (Optional) May point at your Java Secure Sockets Extension
    #                   (JSSE) installation, whose JAR files will be added to the
    #                   system class path used to start Tomcat.
    #
    #   CATALINA_PID    (Optional) Path of the file which should contains the pid
    #                   of catalina startup java process, when start (fork) is used
    #
    # $Id: catalina.sh 609438 2008-01-06 22:14:28Z markt $
    # -----------------------------------------------------------------------------
     
    JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m 
    -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m 
    -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
     
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    os400=false
    darwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    OS400*) os400=true;;
    Darwin*) darwin=true;;
    esac
     
    # resolve links - $0 may be a softlink
    PRG="$0"


  • 相关阅读:
    LeetCode:Remove Duplicates from Sorted List
    LeetCode:Remove Nth Node From End of List
    LeetCode:Delete Node in a Linked List
    LeetCode:Rotate Image
    LeetCode:Anagrams(字母颠倒)
    LeetCode:Single NumberⅡ
    LeetCode:Single Number
    LeetCode:Longest Common Prefix
    bzoj1025
    bzoj1024
  • 原文地址:https://www.cnblogs.com/jrmy/p/14316341.html
Copyright © 2011-2022 走看看