We are using JBossCache with Tomcat 6 on 4 nodes, each node has JBossCache
in same JVM as tomcat. I believe, CAS uses SimpleTrigger to fire off the
clean up job, so first step would be to increase the job interval on the
Trigger to some realistic interval based on your usage. Second, what we have
done to prevent every node firing off clean up job at the same time, using
CronTrigger and set different cron expression on each node through
properties file so that one node out of 4 is running cleanup job every 30
minutes, each node runs clean up job every 2 hours but configured
differently so that none overlaps.

On Sun, Sep 19, 2010 at 4:38 PM, Praveen Krishnan <
[email protected]> wrote:

> We have configured the CAS server on tomcat 6, with oracle coherence
> clustering for the tickets. The registry job gets kicked every few minutes
> and cleans up the expired TGTs. Over a period of time, the application
> starts throwing java.lang.OutOfMemoryError: PermGen space exception.
> Exception stack trace is given below. Can someone share their experience
> with clustering & memory issue ?
> _______________________________________________________________________________________
> [2010-09-17 22:22:09 PDT] org.quartz.core.JobRunShell - ERROR: Job
> DEFAULT.jobDetailTicketRegistryCleaner threw an unhandled Exception:
> org.springframework.scheduling.quartz.JobMethodInvocationFailedException:
> Invocation of method 'clean' on target class [class $Proxy22] failed; nested
> exception is java.lang.OutOfMemoryError: PermGen space at
> org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
> 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: PermGen space [2010-09-17 22:22:09
> PDT] org.quartz.core.ErrorLogger - ERROR: Job
> (DEFAULT.jobDetailTicketRegistryCleaner threw an exception.
> org.quartz.SchedulerException: Job threw an unhandled exception. [See nested
> exception:
> org.springframework.scheduling.quartz.JobMethodInvocationFailedException:
> Invocation of method 'clean' on target class [class $Proxy22] failed; nested
> exception is java.lang.OutOfMemoryError: PermGen 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 'clean' on target class [class $Proxy22] failed; nested
> exception is java.lang.OutOfMemoryError: PermGen space at
> org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)
> 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: PermGen space [2010-09-17 22:23:51 PDT]
> org.jasig.cas.services.DefaultServicesManagerImpl - INFO: Reloading
> registered services.
> _______________________________________________________________________________________
>
> ------------------------------
> View this message in context: registryTicketCleaner throwing
> java.lang.OutOfMemoryError: PermGen 
> space<http://jasig.275507.n4.nabble.com/registryTicketCleaner-throwing-java-lang-OutOfMemoryError-PermGen-space-tp2546369p2546369.html>
> Sent from the CAS Users mailing list 
> archive<http://jasig.275507.n4.nabble.com/CAS-Users-f255676.html>at 
> Nabble.com.
>
> --
> You are currently subscribed to [email protected] as: 
> [email protected]
>
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user
>
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to