WoW! Thanks for the quick reply, Scott!
I increased the session-timeout for the CAS webapp precisely for the
same reason (i.e. The user should be able to spend 4 hours on a form
before he hits the submit button). We have a web-based photo
application and the user should be able to spend a lot of time
selecting photos before they upload them (hit the submit button). One
of our user's requested this.
I know that I did not intentionally change how often the cleaner runs.
Here are the values from the
cas/WEB-INF/applicaitonContext.xml file:
<!--Quartz -->
<!-- TICKET REGISTRY CLEANER -->
<bean id="ticketRegistryCleaner"
class="org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner"
p:ticketRegistry-ref="ticketRegistry" />
<bean id="jobDetailTicketRegistryCleaner"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
p:targetObject-ref="ticketRegistryCleaner" p:targetMethod="clean" />
<bean id="triggerJobDetailTicketRegistryCleaner"
class="org.springframework.scheduling.quartz.SimpleTriggerBean"
p:jobDetail-ref="jobDetailTicketRegistryCleaner"
p:startDelay="20000" p:repeatInterval="5000000" />
<bean id="scheduler" class="org.springframework.scheduling.quartz.Schedu
lerFactoryBean">
<property name="triggers">
<list>
<ref local="triggerJobDetailTicketRegistryCle
aner" />
</list>
</property>
</bean>
I appreciate your help Scott. I am hoping that you can help me figure
out what could be going wrong.
Thank you!
Joe
On Tue, Oct 6, 2009 at 12:36 PM, Scott Battaglia
<[email protected]> wrote:
> Is there a particular reason that you're increasing the session to 240
> minutes? By doing so you're going to keep *a ton* of objects around. The
> only benefit to extending the timeout is that if someone comes to the page
> and lets it sit for four hours before pressing submit then he or she won't
> just be presented with the same page again due to the conversation ended
> exception. This does not increase or decrease your SSO session as those
> objects are not stored in the HttpSession.
>
> As for the cleaner, I would confirm that you didn't accidentally change the
> time for how often it runs. The default is not to run that often.
>
> Cheers,
> Scott
>
> On Tue, Oct 6, 2009 at 2:31 PM, Joe Hansen <[email protected]> wrote:
>>
>> Hey All,
>>
>> We have been using CAS to implement Single Sign-On for 3 of our
>> websites for past 2 years. CAS has worked really well for us. Thank you!
>>
>> Recently, I changed the session-timeout value on
>> webapps/cas/WEB-INF/web.xml from 5 minutes to 240 minutes. Since then
>> I had two issues:
>> 1) java.lang.OutOfMemoryError: java heap space (I resolved his by
>> increasing the heap size)
>>
>> 2) The number of httpd processes on the server keep increasing until
>> the websites crash. It seems like the incoming requests get stuck, so
>> a new incoming request is spawning a new process.
>>
>> The Tomcat thread dump has a LOT of Ticket Registry Cleaning entries
>> one after the other:
>> org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Started cleaning of expired tickets from ticket registry at ...>
>> org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at ...>
>>
>> Can a CAS Guru please guide me in resolving this problem. If you would
>> need more details, I can post them.
>>
>> Thank you!
>> Joe
>>
>> PS: Here's a small snippet of the thread dump. You can see these
>> ticket registry cleaning entries happen multiple times over a very
>> small period of time.
>> 2009-10-05 15:53:48,067 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:48 MDT 2009]>
>> 2009-10-05 15:53:48,067 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:53:48,067 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:48 MDT 2009]>
>> 2009-10-05 15:53:56,350 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:56 MDT 2009]>
>> 2009-10-05 15:53:56,350 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:53:56,350 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:56 MDT 2009]>
>> 2009-10-05 15:53:58,281 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:58 MDT 2009]>
>> 2009-10-05 15:53:58,281 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:53:58,281 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:53:58 MDT 2009]>
>> 2009-10-05 15:54:04,340 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:04 MDT 2009]>
>> 2009-10-05 15:54:04,340 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:54:04,340 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:04 MDT 2009]>
>> 2009-10-05 15:54:10,329 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:10 MDT 2009]>
>> 2009-10-05 15:54:10,329 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:54:10,329 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:10 MDT 2009]>
>> 2009-10-05 15:54:20,058 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:20 MDT 2009]>
>> 2009-10-05 15:54:20,058 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 15:54:20,058 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 15:54:20 MDT 2009]>
>> 2009-10-05 16:20:49,817 INFO
>> [org.jasig.cas.web.flow.InitialFlowSetupAction] - <Setting ContextPath
>> for cookies to: >
>> 2009-10-05 17:17:08,068 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:08 MDT 2009]>
>> 2009-10-05 17:17:08,069 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:08,069 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:08 MDT 2009]>
>> 2009-10-05 17:17:16,352 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:16 MDT 2009]>
>> 2009-10-05 17:17:16,352 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:16,352 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:16 MDT 2009]>
>> 2009-10-05 17:17:18,288 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:18 MDT 2009]>
>> 2009-10-05 17:17:18,289 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:18,289 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:18 MDT 2009]>
>> 2009-10-05 17:17:24,348 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:24 MDT 2009]>
>> 2009-10-05 17:17:24,349 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:24,349 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:24 MDT 2009]>
>> 2009-10-05 17:17:30,325 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:30 MDT 2009]>
>> 2009-10-05 17:17:30,326 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:30,326 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:30 MDT 2009]>
>> 2009-10-05 17:17:40,055 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:40 MDT 2009]>
>> 2009-10-05 17:17:40,055 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 17:17:40,055 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 17:17:40 MDT 2009]>
>> 2009-10-05 18:40:28,070 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 18:40:28 MDT 2009]>
>> 2009-10-05 18:40:28,071 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 18:40:28,071 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 18:40:28 MDT 2009]>
>> 2009-10-05 18:40:36,351 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 18:40:36 MDT 2009]>
>> 2009-10-05 18:40:36,351 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>> 2009-10-05 18:40:36,351 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Finished cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 18:40:36 MDT 2009]>
>> 2009-10-05 18:40:38,287 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <Starting cleaning of expired tickets from ticket registry at [Mon Oct
>> 05 18:40:38 MDT 2009]>
>> 2009-10-05 18:40:38,287 INFO
>> [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] -
>> <0 found to be removed. Removing now.>
>>
>> --
>> 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
--
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