changing how many continuations are cached

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

changing how many continuations are cached

Paul DeBruicker
Hi -

I was reading this thread

http://forum.world.st/Multiple-Browser-Tabs-on-Same-Application-tp947917p948008.html

because I'm having the same problem as described by Ken Treis.



In Seaside 3 how do you increase the number of continuations cached in
each session?


Thanks,


Paul
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: changing how many continuations are cached

Dale Henrichs
Paul,

If you are using GemStone, both caches (WASession and WARegistry) use WARcLastAccessExpiryPolicy (by default) which is strictly a time-based expiration policy...

These changes for GemStone were made in December of 2009 for WARegistry (probably in an attempt to address Ken's problem) and in 2011 for WASession (to complete the job ... probably to fix commit conflict issues) ... so you should only be seeing session timeouts ...

WALeastRecentlyUsedExpiryPolicy is the expiry policy that uses a counter and the default age for that policy is WACacheCapacityConfiguration. The default age is 20, and you can edit code change the default .... or you can use the configuration editor, but I just don't remember the incantations that it takes to change the value (does the default have to be changed in both places?)

Dale

----- Original Message -----
| From: "Paul DeBruicker" <[hidden email]>
| To: "Seaside - general discussion" <[hidden email]>
| Sent: Wednesday, April 17, 2013 4:02:37 PM
| Subject: [Seaside] changing how many continuations are cached
|
| Hi -
|
| I was reading this thread
|
| http://forum.world.st/Multiple-Browser-Tabs-on-Same-Application-tp947917p948008.html
|
| because I'm having the same problem as described by Ken Treis.
|
|
|
| In Seaside 3 how do you increase the number of continuations cached in
| each session?
|
|
| Thanks,
|
|
| Paul
| _______________________________________________
| seaside mailing list
| [hidden email]
| http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
|
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: changing how many continuations are cached

Paul DeBruicker
Thanks Dale,

I'm using Pharo right now.

After a bit of code reading I found the WASession>>#createCache method
and overrode it in my session subclass then created my own subclasses of
both WALeastRecentlyUsedExpiryPolicy  and WACacheCapacityConfiguration.
 The cache is certainly much larger (well reports maximum age of 100
rahter than 20) but my problem persists and may be different than Ken
Treis's so I'll make a new thread.


Thanks for your help

Paul


On 04/17/2013 05:01 PM, Dale Henrichs wrote:

> Paul,
>
> If you are using GemStone, both caches (WASession and WARegistry) use WARcLastAccessExpiryPolicy (by default) which is strictly a time-based expiration policy...
>
> These changes for GemStone were made in December of 2009 for WARegistry (probably in an attempt to address Ken's problem) and in 2011 for WASession (to complete the job ... probably to fix commit conflict issues) ... so you should only be seeing session timeouts ...
>
> WALeastRecentlyUsedExpiryPolicy is the expiry policy that uses a counter and the default age for that policy is WACacheCapacityConfiguration. The default age is 20, and you can edit code change the default .... or you can use the configuration editor, but I just don't remember the incantations that it takes to change the value (does the default have to be changed in both places?)
>
> Dale
>
> ----- Original Message -----
> | From: "Paul DeBruicker" <[hidden email]>
> | To: "Seaside - general discussion" <[hidden email]>
> | Sent: Wednesday, April 17, 2013 4:02:37 PM
> | Subject: [Seaside] changing how many continuations are cached
> |
> | Hi -
> |
> | I was reading this thread
> |
> | http://forum.world.st/Multiple-Browser-Tabs-on-Same-Application-tp947917p948008.html
> |
> | because I'm having the same problem as described by Ken Treis.
> |
> |
> |
> | In Seaside 3 how do you increase the number of continuations cached in
> | each session?
> |
> |
> | Thanks,
> |
> |
> | Paul
> | _______________________________________________
> | seaside mailing list
> | [hidden email]
> | http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> |
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside