0 0

定时任务报Caused by: java.lang.OutOfMemoryError: Java heap space3

在java中用spring的quart做定时收取邮件任务,报2012-05-11 13:47:35,031 ERROR [org.quartz.core.JobRunShell.run(JobRunShell.java:211)] - <Job DEFAULT.initReceiveEmailRead threw an unhandled Exception: >
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'addReceiveEmail' on target class [class $Proxy69] failed; nested exception is java.lang.OutOfMemoryError: Java heap space
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: java.lang.OutOfMemoryError: Java heap space
2012-05-11 13:47:35,031 ERROR [org.quartz.core.ErrorLogger.schedulerError(QuartzScheduler.java:2185)] - <Job (DEFAULT.initReceiveEmailRead threw an exception.>
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'addReceiveEmail' on target class [class $Proxy69] failed; nested exception is java.lang.OutOfMemoryError: Java heap space]
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'addReceiveEmail' on target class [class $Proxy69] failed; nested exception is java.lang.OutOfMemoryError: Java heap space
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
... 1 more
Caused by: java.lang.OutOfMemoryError: Java heap space
这个是不是要设置jvm的内存大小?请问该如何设置???
2012年5月21日 13:57
目前还没有答案

相关推荐

Global site tag (gtag.js) - Google Analytics