Quartz调度程序抛出内存

时间:2013-04-29 08:00:49

标签: quartz-scheduler out-of-memory

我的石英作业在下面抛出错误。 有谁知道如何解决内存不足的问题?

Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2367)
    at java.lang.String.<init>(String.java:197)
    at java.io.Win32FileSystem.resolve(Win32FileSystem.java:259)
    at java.io.File.<init>(File.java:341)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:743)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1449)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
    at java.lang.Thread.run(Thread.java:722)
Exception in thread "http-bio-8080-AsyncTimeout" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-2" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-1" java.lang.OutOfMemoryError: Java heap space

1 个答案:

答案 0 :(得分:0)

您的石英作业中的内存不足异常可能是一个症状,而不是您的问题的原因。当你的工作运行时,你的应用程序很可能会耗尽可用的堆。

您可能在其他地方有内存泄漏(例如不断扩展的集合)。您需要使用分析器来查找此问题。

或者可能是您需要为应用程序分配更多堆空间。在这种情况下,您可以在用于启动Tomcat的catalina脚本中设置-Xmx参数。