On Wed, Nov 17, 2010 at 10:38 AM, Andrew Hall <[email protected]>wrote:
> Thanks Pedro - > > Yes, my test case was generated using the Wicket/Maven Archetype. > > I guess that what I was trying to get at was: > > - is the growth of the file (caused by successive refreshes of my login > page) maintained by the DiskPageStore - ok in a Wicket application > (specifically a login page)? > Is ok to see an statefull page being versioned and increasing the disk page store file. About the login page, I would prefer to have an stateless page (no need to maintain state of pages in an not authenticated session). On your quickstart for instance, just extend the LoginForm from StatelessForm instead from From, and you will not see the file growing any more. > My train of thought which led me (perhaps erroneously) to conclude that > this was not desirable was that because my sample page does not change > between successive refreshes, it was pointless to store multiple versions of > it. > > Cheers, > > Andrew. > > > -----Original Message----- > From: Pedro Santos [mailto:[email protected]] > Sent: 17 November 2010 12:11 > To: [email protected] > Subject: Re: Newbie Question - Wicket Session Growth > > You has an statefull page in the quickstart, so each refresh generates a > new > page version. As you are tracking the file maintained by the DiskPageStore, > you are seeing what is going on at the secondary memory: page after page > versions being stored. You can use an stateless page if you don't want to > see the diskPageStore file growing. > The ticket is about the session referencing the pagemap, what was > increasing > the serialized session size. > > On Wed, Nov 17, 2010 at 9:23 AM, Andrew Hall <[email protected] > >wrote: > > > Hi Martin - many thanks for the reply. > > > > You are correct - I am using Wicket 1.4.13, however as you suggested, > I've > > changed my test case to use Wicket 1.4.12 and the situation is still the > > same. > > > > Thanks, > > > > Andrew. > > > > -----Original Message----- > > From: Martin Grigorov [mailto:[email protected]] > > Sent: 17 November 2010 11:15 > > To: [email protected] > > Subject: Re: Newbie Question - Wicket Session Growth > > > > if you use Wicket 1.4.13 then you maybe hitting > > https://issues.apache.org/jira/browse/WICKET-3160 > > > > <https://issues.apache.org/jira/browse/WICKET-3160>1.4.14 will be > released > > soon. Until then you may use 1.4.12 for your application. > > > > On Wed, Nov 17, 2010 at 11:46 AM, Andrew Hall <[email protected] > > >wrote: > > > > > Hi - I'm new to Wicket & have been charged with evaluating if for my > > > employer. > > > > > > > > > > > > I've set up a very basic web application containing a login page as a > > test > > > case. (Attached). > > > > > > > > > > > > Running with Jetty (although the behaviour is the same in Tomcat) I've > > > noticed that each refresh of my login page causes the session to grow > by > > > 2Kb. (Based on the assumption that the file called 'pm-null' represents > > the > > > objects serialized in a session). > > > > > > > > > > > > Although this is a small amount, I have seen a couple of posts raising > > > concerns over session size in Wicket, and I think that this is a good > > > opportunity to gain knowledge of the fundamentals of session management > > in > > > this framework. > > > > > > > > > > > > As far as I can tell, there are 3 mutually exclusive explanations for > the > > > growth in the session caused by successive refreshes of my login page: > > > > > > > > > > > > 1. This is how Wicket's behaves and has to be accepted. > > > > > > 2. There is something intrinsically wrong with the code that I > have > > > written. > > > > > > 3. There is a bug in Wicket. > > > > > > > > > > > > If anyone can shed any light on this it would be greatly appreciated. > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Andrew. > > > > > > ------------------------------ > > > This message contains confidential information and is intended only for > > the > > > individual named. If you are not the named addressee you should not > > > disseminate, distribute or copy this e-mail. Please notify the sender > > > immediately by e-mail if you have received this e-mail by mistake and > > delete > > > this e-mail from your system. E-mail transmission cannot be guaranteed > to > > be > > > secure or error-free as information could be intercepted, corrupted, > > lost, > > > destroyed, arrive late or incomplete, or contain viruses. The sender > > > therefore does not accept liability for any errors or omissions in the > > > contents of this message that arise as a result of e-mail transmission. > > If > > > verification is required please request a hard-copy version. This > message > > is > > > provided for information purposes only. > > > Totemic Ltd is a limited company registered in England with registered > > > number 02789854. Kempton House, Kempton Way, Dysart Road, Grantham, > > > Lincolnshire NG31 7LE > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > This message contains confidential information and is intended only for > the > > individual named. If you are not the named addressee you should not > > disseminate, distribute or copy this e-mail. Please notify the sender > > immediately by e-mail if you have received this e-mail by mistake and > delete > > this e-mail from your system. E-mail transmission cannot be guaranteed to > be > > secure or error-free as information could be intercepted, corrupted, > lost, > > destroyed, arrive late or incomplete, or contain viruses. The sender > > therefore does not accept liability for any errors or omissions in the > > contents of this message that arise as a result of e-mail transmission. > If > > verification is required please request a hard-copy version. This message > is > > provided for information purposes only. > > Totemic Ltd is a limited company registered in England with registered > > number 02789854. Kempton House, Kempton Way, Dysart Road, Grantham, > > Lincolnshire NG31 7LE > > > > > > -- > Pedro Henrique Oliveira dos Santos > > This message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and delete > this e-mail from your system. E-mail transmission cannot be guaranteed to be > secure or error-free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. The sender > therefore does not accept liability for any errors or omissions in the > contents of this message that arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This message is > provided for information purposes only. > Totemic Ltd is a limited company registered in England with registered > number 02789854. Kempton House, Kempton Way, Dysart Road, Grantham, > Lincolnshire NG31 7LE > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Pedro Henrique Oliveira dos Santos
