0
我的石英作業在下面拋出一個錯誤。 有誰知道如何解決內存不足的問題?石英sheduler拋出內存
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
我已經按照你的建議嘗試了-Xmx。它效果更好,但它仍然需要太多的內存。 – 2013-04-30 15:37:51
什麼是分析器? 你可以引導我,因爲我從來沒有用過它? – 2013-04-30 15:38:23
分析器是一種工具,可用於分析應用程序的性能。對於內存分析,我以前成功使用過Eclipse Memory Analyzer,http://www.eclipse.org/mat/如果Eclipse不是您首選的IDE,那麼您可以單獨運行它。 – darrenmc 2013-05-01 14:49:25