• java.lang.OutOfMemoryError: GC overhead limit exceeded


    前端请求:
    {"code":400,"message":"Handler dispatch failed; nested exception is java.lang.OutOfMemoryError: Java heap space"}
    后台日志:


    at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433) ~[mybatis-spring-1.3.1.jar:1.3.1]
    ... 21 common frames omitted
    Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

    2018-01-15 16:34:17.241 INFO 13892 --- [pool-1-thread-1] c.z.c.schedule.ScreenStatisticsDataJob : syncCurrentStatisticsDataJob complete
    2018-01-15 16:34:18.140 INFO 13892 --- [pool-1-thread-1] c.zhengjia.common.schedule.SentimentJob : sentiment complete
    2018-01-15 16:34:18.346 INFO 13892 --- [pool-1-thread-1] c.zhengjia.common.schedule.SentimentJob : sentiment weibo complete
    2018-01-15 16:34:18.347 INFO 13892 --- [pool-1-thread-1] c.z.common.schedule.ThermalChartJob : thermalChartDataScreen()
    2018-01-15 16:34:27.373 INFO 13892 --- [pool-1-thread-1] c.z.common.schedule.ThermalChartJob : thermalChartDataScreen complete
    2018-01-15 16:34:27.373 INFO 13892 --- [pool-1-thread-1] c.z.common.schedule.ThermalChartJob : customerFlow()
    2018-01-15 16:35:26.607 ERROR 13892 --- [pool-1-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task.

    java.lang.OutOfMemoryError: GC overhead limit exceeded

    2018-01-15 16:35:26.607 INFO 13892 --- [pool-1-thread-1] c.z.c.schedule.ScreenStatisticsDataJob : syncCurrentStatisticsDataJob()
    2018-01-15 16:35:26.607 INFO 13892 --- [pool-1-thread-1] c.z.c.schedule.ScreenStatisticsDataJob : totalIn = 37715
    2018-01-15 16:35:26.607 INFO 13892 --- [pool-1-thread-1] c.z.c.schedule.ScreenStatisticsDataJob : quatity = 2039
    2018-01-15 16:35:26.607 INFO 13892 --- [pool-1-thread-1] c.z.c.schedule.ScreenStatisticsDataJob : revenue = 17880

    旧配置:

    HEAP_MEMORY=512m
    PERM_MEMORY=32m
    JAVA_OPTS="-server -XX:+HeapDumpOnOutOfMemoryError "
    JAVA_OPTS="${JAVA_OPTS} -Xms${HEAP_MEMORY} -Xmx${HEAP_MEMORY} -XX:PermSize=${PERM_MEMORY} -XX:MaxPermSize=${PERM_MEMORY} -Dapp.name=$SERVER_NAME"
    修改配置:
    HEAP_MEMORY=512m

    MAX_HEAP_MEMORY=2048m

    PERM_MEMORY=256m

    MAX_PERM_MEMORY=512m
    JAVA_OPTS="-server -XX:-UseGCOverheadLimit "
    JAVA_OPTS="${JAVA_OPTS} -Xms${HEAP_MEMORY} -Xmx${MAX_HEAP_MEMORY} -XX:PermSize=${PERM_MEMORY} -XX:MaxPermSize=${MAX_PERM_MEMORY} -Dapp.name=$SERVER_NAME"
  • 相关阅读:
    git 入门操作
    ubuntu apc 安装
    vps mysql自动关闭
    xdebug安装
    C#获取IP和主机名
    C#在类中用调用Form的方法
    luogu3181 [HAOI2016]找相同字符
    luogu6139 【模板】广义后缀自动机(广义SAM)
    广义后缀自动机小结
    Codeforces Round #620 (Div. 2) 题解
  • 原文地址:https://www.cnblogs.com/yuhuameng/p/8288725.html
Copyright © 2020-2023  润新知