zoukankan      html  css  js  c++  java
  • java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

     java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

    异常名称 : 内存溢出异常
    在启动tomcat的时候或者运行过程中抛出以下异常

    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread
    Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "http-bio-80-exec-31"
    1
    2
    解决方法:
    1. 在安装tomcat的bin目录下找到catalina.bat文件,打开编辑
    2. 在开头加上以下内容

    set JAVA_OPTS= -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxNewSize=256M -XX:MaxPermSize=256M
    1
    -Xms1024M:初始化堆内存大小(注意,不加M的话单位是KB)
    -Xmx1029M:最大堆内存大小
    -XX:PermSize=256M:初始化类加载内存池大小
    -XX:MaxPermSize=256M:最大类加载内存池大小

  • 相关阅读:
    【PAT甲级】1054 The Dominant Color
    【PAT甲级】1001 A+B Format
    【算法】二分排序和二分查找
    【PAT甲级】1008 Elevator (20分)
    移动端工作准备
    媒体查询
    多列布局
    怪异盒模型
    弹性盒
    圆角
  • 原文地址:https://www.cnblogs.com/dayspring/p/13032262.html
Copyright © 2011-2022 走看看