Great, I'll check out the code for the TerracottaPageStore, 

Thanks a lot Richard,

Regards Ard

> 
> The HttpSessionStore is an in memory session store, so it has 
> no disk writing bottleneck.  It does however have some other 
> problems, specifically with the back button i think.
> 
> the terracotta page store works like this:
> 
> protected ISessionStore newSessionStore()
>       {
>               return new SecondLevelCacheSessionStore(this, 
> new TerracottaPageStore(100));
>       }
> 
> as it is just an implementation of the IPageStore interface 
> as is the DiskPageStore, but where the DiskPageStore writes 
> to disk the TerracottaPageStore writes to http session.
> 
> The 100 is number of pages to keep in history as far as i 
> remember, check the source to be sure.
> 
> 
> Ard Schrijvers-3 wrote:
> > 
> > 
> >> but serialization and writing to disk are 2 different things.
> > 
> > Yes sorry for the confusion. I intertwine the serialization 
> and disk 
> > performance (hence asking whether a memory page store 
> exists) because 
> > AFAIU, it is the serialized pagemaps that are being written to 
> > filesystem. Indeed, when using a memory page store, still 
> > serialization to memory is needed, so you are indeed right 
> to say that 
> > they are different. I should talk about the cpu bottleneck 
> of writing 
> > the serialized pagemaps to disk and whether there is a 
> pagestore using 
> > memory. As indicated by Richard, this one seems to exist in 
> Terracotta.
> > I will try and see whether this avoids my experienced cpu 
> bottleneck.
> > Also the virus scanner option I will look into
> > 
> > By the way, using
> > 
> > protected ISessionStore newSessionStore()
> >     {
> >      return new HttpSessionStore(this);
> >     }
> > 
> > Instead of
> > 
> > protected ISessionStore newSessionStore()
> >     {
> >             return new SecondLevelCacheSessionStore(this, 
> new DiskPageStore());
> >     }
> > 
> > Also avoids the disk writing bottleneck. Now, I am not sure whether 
> > HttpSessionStore can be used instead of 
> SecondLevelCacheSessionStore. 
> > It does not seem to write to diks.
> > 
> > Thanks for all the pointers and fast responses everybody
> > 
> > Regards Ard
> > 
> >> 
> >> 
> >> 
> >> On Tue, Oct 7, 2008 at 4:21 PM, Ard Schrijvers
> >> <[EMAIL PROTECTED]>wrote:
> >> 
> >> > Hello Igor and Timo,
> >> >
> >> > Sorry for my really way to late response, I was caught up
> >> entirely by
> >> > some stressful tasks which needed to be finished.
> >> >
> >> > I currently do not have statistics, but I could have a 
> cpu yourkit 
> >> > snapshot. I have seen up to 75% cpu in the serialization and 
> >> > deserialization. Recently I saw 25%.
> >> >
> >> > People working with Linux do not experience this cpu bottleneck 
> >> > though, so it might very well be an issue with how windows
> >> handles the
> >> > filesystem. I will sort out the suggestion by Timo, would
> >> be great if
> >> > that solved the issue.
> >> >
> >> > Thanks a lot, and again, sorry for my late response!
> >> >
> >> > -Ard
> >> >
> >> > >
> >> > > On Fri, 03 Oct 2008, Igor Vaynberg wrote:
> >> > > > do you have some statistics for us? or some profiler timing
> >> > > screenshots?
> >> > >
> >> > > While waiting for the reply from Ard... I remember
> >> hearing of a case
> >> > > where the pagemaps were stored to a directory that the
> >> virus scanner
> >> > > was monitoring, and the scanner hogged all cpu during
> >> load testing
> >> > > :) I suppose that this kind of stuff happens more easily
> >> on Windows
> >> > > than on unices.
> >> > >
> >> > > Best wishes,
> >> > > Timo
> >> > >
> >> > > --
> >> > > Timo Rantalaiho
> >> > > Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
> >> > >
> >> > > 
> >> 
> --------------------------------------------------------------------
> >> > > - 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]
> >> >
> >> >
> >> 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
> -----
> http://www.richard-wilkinson.co.uk My blog:
> http://www.richard-wilkinson.co.uk
> --
> View this message in context: 
> http://www.nabble.com/AbstractPageStore-memory-implementation-
> instead-of-disk-tp19797628p19860012.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]

Reply via email to