zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Vijos P1597 2的幂次方【进制+递归】
    NUC1100 Biorhythms【中国剩余定理】
    HDU1370 Biorhythms【中国剩余定理】
    NUC1090 Goldbach's Conjecture【哥德巴赫猜想 】
    NUC1305 哥德巴赫猜想
    剑指Offer——最小的K个数
    剑指Offer——数组中出现次数超过一半的数字
    剑指Offer——字符串的排列
    剑指Offer——二叉搜索树与双向链表
    剑指Offer——复杂链表的复制
  • 原文地址:https://www.cnblogs.com/yangxianyang/p/13675605.html
Copyright © 2011-2022 走看看