setting the right maxSizePerPagemap is way more importand then
maxSizePerSession

just see what sizes your pages are.
Then the if they are on average (now taking a big number) 500KB then ask you
self how many pages you want
if that is 4 then you set the maxSizePerPagemap to 2MB and maxSizePerSession
to 6MB
(then you can hold max 3 pagemaps of max size)

then 1000 live sessions will result in 6.000MB is 6GByte of memory if they
all use there MAX 3 pagemap size..
In todays world thats nothing.

johan


On Thu, Jul 3, 2008 at 11:48 AM, Gerald Reinhart <[EMAIL PROTECTED]>
wrote:

>
> Use case :
>  - an application with a long session time out
>  - potentially a very important number of session
>  - disk space not huge
>
>
> The solution is perhaps to define a small maxSizePerSession on the
> DiskPageStore, and considering that if the server don't store an important
> number of version of pages for user Session is very important.
>
> But what is a small maxSizePerSession ? Considering that we use properly
> the
> LoadableDetachableModel feature not to serialize all Hibernate session....
>
>
>
> (we are about to choose a web framework and I estimate potential risks to
> choose Wicket )
>
> Gerald Reinhart
>
>
> Matej Knopp-2 wrote:
> >
> > Yeah, we don't shrink the files. We can't, that's not how
> > DiskPageStore works. Anyway, what's the usecase? Are you trying to
> > suggest that you're running out of disk space? :)
> >
> > -Matej
> >
> > On Thu, Jul 3, 2008 at 10:18 AM, Johan Compagner <[EMAIL PROTECTED]>
> > wrote:
> >> that wont work.
> >>
> >> Because pages are stored in a file that will grow until max.
> >> And then it will truncate so reuse the file from the beginning
> >> So deleting 1 page in it wont result in the file being smaller.
> >>
> >> johan
> >>
> >>
> >> On Thu, Jul 3, 2008 at 10:00 AM, Gerald Reinhart <
> [EMAIL PROTECTED]>
> >> wrote:
> >>
> >>>
> >>>
> >>> Johan Compagner wrote:
> >>> >
> >>> > What can we then delete when we hit 10 sessions?? Which session or
> >>> which
> >>> > part of a session?
> >>> >
> >>>
> >>> maybe the oldest pages through all sessions.
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18253766.html
> >>> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/How-to-configure-the-max-space-used-for-all-Session-store-on-a-WebApplication---tp18239631p18255734.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to