• Exception in thread "baseScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: GC


     错误如下:

    Exception in thread "baseScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: GC overhead limit exceeded
    	at java.util.Arrays.copyOfRange(Arrays.java:3664)
    	at java.lang.String.<init>(String.java:201)
    	at java.lang.String.substring(String.java:1921)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3322)
    	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3295)
    	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1852)
    	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1975)
    	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2470)
    	at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1267)
    	at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1712)
    	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
    	at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTriggerToAcquire(StdJDBCDelegate.java:2613)
    	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2800)
    	at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2759)
    	at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2757)
    	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3787)
    	at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTriggers(JobStoreSupport.java:2756)
    	at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272)
    

    解决方法:在ecliplse中设置:

    -Xms1024M -Xmx2048M -XX:PermSize=256M -XX:MaxNewSize=256M -XX:MaxPermSize=512M

  • 相关阅读:
    Spring Cloud-Eureka的一些概念
    Spring Cloud-Eureka的基本架构
    Spring Cloud-分布式事务
    Spring Cloud-熔断机制
    SpringBoot下载文件
    redis 指定db库导入导出数据
    python基础:重新认识装饰器
    源码解析:django的CSRF认证
    源码解析:数据批量导入bukl_crete()原理
    剑指 Offer 13. 机器人的运动范围
  • 原文地址:https://www.cnblogs.com/yangxianyang/p/13675605.html
Copyright © 2020-2023  润新知