Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten)
Hello Erik, I'm using wicket 1.2. The pages themselves get the data from an object in the session every time it's needed. There are quite a few panels though that use models which in turn do have a reference to the object in the session. But I don't see a possibility of changing that somehow, the models need access to the object in several methods, and I can't use parameters to give it to the method directly. So I hope that's not where the problem is. Regards, Arjan Zwaan. Date: Thu, 30 Nov 2006 15:05:30 +0100 From: Erik van Oosten [EMAIL PROTECTED] Subject: Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten) To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed Hi Arjan, What Wicket version are you using? In addition, you can try to identify components that keep references to objects outside the page structure. In wicket 2 this will all be serialized so you need to keep your components lean. If you use clustering this is also important in wicket 1. Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps
Well, as long as the data is in the session and not outside, you should be okay. Still, after you tried Igor's idea (the log4j debug parameter), you may want to take a look at the class LoadableDetachableModel. If you are interested, I made a small variation on LoadableDetachableModel that does not clear the data upon detach. Erik. A. Zwaan schreef: Hello Erik, I’m using wicket 1.2. The pages themselves get the data from an object in the session every time it’s needed. There are quite a few panels though that use models which in turn do have a reference to the object in the session. But I don’t see a possibility of changing that somehow, the models need access to the object in several methods, and I can’t use parameters to give it to the method directly. So I hope that’s not where the problem is. Regards, Arjan Zwaan. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Johan Compagner)
i don't know exactly when that property was made a setting now it is: if (Application.get().getDebugSettings().getSerializeSessionAttributes()) but that is now quite sometime so when it was exactly changed i don't know upgrade to the latest 1.2 then you can easily set that property. johan On 11/30/06, A. Zwaan [EMAIL PROTECTED] wrote: Hello Johan, I've checked every mail since I posted my question and I have double checked now, but I couldn't find your response. I do seem to be missing issue 236, the one right after my question, though. Looks like I never received that one somehow. We have it running in deployment mode, but we're still having the problem. Profiler says 40% of the String usage is in: Page.renderPage() |- Session.touch() |- PageMap.put() |- Session.setAttribute() |-HttpSessionStore.setAttribute() |-ObjectOutputStream.writeObject() (which continues with more ObjectOutputStream stuff) I use the InspectorPage from the wicket.examples.debug package to show what pagemaps etc are in the session. This shows multiple pagemaps of which some hold the same pages as others do. Regards, Arjan Zwaan. Date: Thu, 30 Nov 2006 14:18:09 +0100 From: Johan Compagner [EMAIL PROTECTED] Subject: Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan) To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 did you look at my reply i did earlier?? PageMaps don't write anything to an outputstream. Do you run your app in deployment or development mode? (in development the pages are tested for serialization) The qeustion is even with the settings you do there. Do you still really have more then one page in the session as an attribute? Debug this if possible by example displaying/outputting all names of the attributes of a session after the request is finished (for example in the detach of the RequestCycle) johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps
Hello Erik, Johan and karthik, Upgrading from Wicket 1.2 to 1.2.3 seems to have solved the problem. I do think I still have a bit of optimizing to do, but at least I'm not running into the OutOfMemoryError anymore. Thanks for your help and time. Greetings, Arjan Zwaan. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten)
your models shouldnt keep a reference to that object, they should know how to retrieve it and do so when getobject() is called. -igor On 12/1/06, A. Zwaan [EMAIL PROTECTED] wrote: Hello Erik, I'm using wicket 1.2. The pages themselves get the data from an object in the session every time it's needed. There are quite a few panels though that use models which in turn do have a reference to the object in the session. But I don't see a possibility of changing that somehow, the models need access to the object in several methods, and I can't use parameters to give it to the method directly. So I hope that's not where the problem is. Regards, Arjan Zwaan. Date: Thu, 30 Nov 2006 15:05:30 +0100 From: Erik van Oosten [EMAIL PROTECTED] Subject: Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten) To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8; format=flowed Hi Arjan, What Wicket version are you using? In addition, you can try to identify components that keep references to objects outside the page structure. In wicket 2 this will all be serialized so you need to keep your components lean. If you use clustering this is also important in wicket 1. Erik. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten)
On 12/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: your models shouldnt keep a reference to that object, they should know how to retrieve it and do so when getobject() is called. i.e. in your case: class MyFinanModel extends Model { public Object getObject(Component component) { return FinanSession.get().getMyFinanObject(); } public void setObject(Object object, Component component) { return FinanSession.get().setMyFinanObject(object); } } Martijn -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem disabling PageMaps (A. Zwaan)
Anyone that can help me with this? Greetings, Arjan Zwaan. Message: 5 Date: Tue, 28 Nov 2006 10:32:16 +0100 From: A. Zwaan [EMAIL PROTECTED] Subject: [Wicket-user] Problem disabling PageMaps To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi all, Our web-application is getting OutOfMemoryErrors and PageMaps seem to be the cause (they seem to be writing a lot to an outputstream), I've been trying to disable them, but they keep showing up with multiple instances of the same page in the session (which is not needed in our case). I'm using the InspectorBug class from wicket.examples.debug, to see what's in the session btw. I've tried all the following settings to reduce or disable the PageMaps: - getApplication().getPageSettings().setMaxPageVersions(0); - getApplication().getPageSettings().setVersionPagesByDefault(false); - getApplication().getSessionSettings().setMaxPageMaps(1); Nothing seems to work though. Anyone got any good suggestions? Thanks in advance, Arjan Zwaan. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan)
Hello Arjan, Please verify that you are running in deployment mode. Regards, Erik. A. Zwaan schreef: Hi all, Our web-application is getting OutOfMemoryErrors and PageMaps seem to be the cause (they seem to be writing a lot to an outputstream), I've been trying to disable them, but they keep showing up with multiple instances of the same page in the session (which is not needed in our case). I'm using the InspectorBug class from wicket.examples.debug, to see what's in the session btw. .. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan)
did you look at my reply i did earlier?? PageMaps don't write anything to an outputstream. Do you run your app in deployment or development mode? (in development the pages are tested for serialization) The qeustion is even with the settings you do there. Do you still really have more then one page in the session as an attribute? Debug this if possible by example displaying/outputting all names of the attributes of a session after the request is finished (for example in the detach of the RequestCycle) johan On 11/30/06, A. Zwaan [EMAIL PROTECTED] wrote: Anyone that can help me with this? Greetings, Arjan Zwaan. Message: 5 Date: Tue, 28 Nov 2006 10:32:16 +0100 From: A. Zwaan [EMAIL PROTECTED] Subject: [Wicket-user] Problem disabling PageMaps To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Hi all, Our web-application is getting OutOfMemoryErrors and PageMaps seem to be the cause (they seem to be writing a lot to an outputstream), I've been trying to disable them, but they keep showing up with multiple instances of the same page in the session (which is not needed in our case). I'm using the InspectorBug class from wicket.examples.debug, to see what's in the session btw. I've tried all the following settings to reduce or disable the PageMaps: - getApplication().getPageSettings().setMaxPageVersions(0); - getApplication().getPageSettings().setVersionPagesByDefault(false); - getApplication().getSessionSettings().setMaxPageMaps(1); Nothing seems to work though. Anyone got any good suggestions? Thanks in advance, Arjan Zwaan. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Erik van Oosten)
Hi Arjan, What Wicket version are you using? In addition, you can try to identify components that keep references to objects outside the page structure. In wicket 2 this will all be serialized so you need to keep your components lean. If you use clustering this is also important in wicket 1. Erik. A. Zwaan schreef: Hello Erik, We are running in deployment mode, I’m afraid we already tried that. It seems to be the PageMaps that are causing the problems by writing a lot of data to an outputstream. Also having multiple PageMaps is unnecessary in our case, but the Application seems to keep making new ones. I have tried various settings for PageMaps, but none of them seem to work. The settings I tried were: - getApplication().getPageSettings().setMaxPageVersions(0); - getApplication().getPageSettings().setVersionPagesByDefault(false); - getApplication().getSessionSettings().setMaxPageMaps(1); Regards, Arjan Zwaan. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Johan Compagner)
Hello Johan, I've checked every mail since I posted my question and I have double checked now, but I couldn't find your response. I do seem to be missing issue 236, the one right after my question, though. Looks like I never received that one somehow. We have it running in deployment mode, but we're still having the problem. Profiler says 40% of the String usage is in: Page.renderPage() |- Session.touch() |- PageMap.put() |- Session.setAttribute() |-HttpSessionStore.setAttribute() |-ObjectOutputStream.writeObject() (which continues with more ObjectOutputStream stuff) I use the InspectorPage from the wicket.examples.debug package to show what pagemaps etc are in the session. This shows multiple pagemaps of which some hold the same pages as others do. Regards, Arjan Zwaan. Date: Thu, 30 Nov 2006 14:18:09 +0100 From: Johan Compagner [EMAIL PROTECTED] Subject: Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan) To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 did you look at my reply i did earlier?? PageMaps don't write anything to an outputstream. Do you run your app in deployment or development mode? (in development the pages are tested for serialization) The qeustion is even with the settings you do there. Do you still really have more then one page in the session as an attribute? Debug this if possible by example displaying/outputting all names of the attributes of a session after the request is finished (for example in the detach of the RequestCycle) johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps (Johan Compagner)
I remember, in Wicket 1.2 it used to work out of a log4j setting which was changed to Application settings in the subsequent Wicket releases. Are you running Wicket 1.2 by any chance? If you are running Wicket 1.2 and have something like this - log4j.logger.wicket.protocol.http.HttpSessionStore=DEBUG in your log4j.properties, I think it will continue to serialize session attributes. On 11/30/06, A. Zwaan [EMAIL PROTECTED] wrote: Hello Johan, I've checked every mail since I posted my question and I have double checked now, but I couldn't find your response. I do seem to be missing issue 236, the one right after my question, though. Looks like I never received that one somehow. We have it running in deployment mode, but we're still having the problem. Profiler says 40% of the String usage is in: Page.renderPage() |- Session.touch() |- PageMap.put() |- Session.setAttribute() |-HttpSessionStore.setAttribute() |-ObjectOutputStream.writeObject() (which continues with more ObjectOutputStream stuff) I use the InspectorPage from the wicket.examples.debug package to show what pagemaps etc are in the session. This shows multiple pagemaps of which some hold the same pages as others do. Regards, Arjan Zwaan. Date: Thu, 30 Nov 2006 14:18:09 +0100 From: Johan Compagner [EMAIL PROTECTED] Subject: Re: [Wicket-user] Problem disabling PageMaps (A. Zwaan) To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 did you look at my reply i did earlier?? PageMaps don't write anything to an outputstream. Do you run your app in deployment or development mode? (in development the pages are tested for serialization) The qeustion is even with the settings you do there. Do you still really have more then one page in the session as an attribute? Debug this if possible by example displaying/outputting all names of the attributes of a session after the request is finished (for example in the detach of the RequestCycle) johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- -- karthik -- - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem disabling PageMaps
Hi all, Our web-application is getting OutOfMemoryErrors and PageMaps seem to be the cause (they seem to be writing a lot to an outputstream), I've been trying to disable them, but they keep showing up with multiple instances of the same page in the session (which is not needed in our case). I'm using the InspectorBug class from wicket.examples.debug, to see what's in the session btw. I've tried all the following settings to reduce or disable the PageMaps: - getApplication().getPageSettings().setMaxPageVersions(0); - getApplication().getPageSettings().setVersionPagesByDefault(false); - getApplication().getSessionSettings().setMaxPageMaps(1); Nothing seems to work though. Anyone got any good suggestions? Thanks in advance, Arjan Zwaan. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem disabling PageMaps
PageMaps don't write anything to an outputstream. Do you run your app in deployment or development mode? (in development the pages are tested for serialization) The qeustion is even with the settings you do there. Do you still really have more then one page in the session as an attribute? Debug this if possible by example displaying/outputting all names of the attributes of a session after the request is finished (for example in the detach of the RequestCycle) johan On 11/28/06, A. Zwaan [EMAIL PROTECTED] wrote: Hi all, Our web-application is getting OutOfMemoryErrors and PageMaps seem to be the cause (they seem to be writing a lot to an outputstream), I've been trying to disable them, but they keep showing up with multiple instances of the same page in the session (which is not needed in our case). I'm using the InspectorBug class from wicket.examples.debug, to see what's in the session btw. I've tried all the following settings to reduce or disable the PageMaps: - getApplication().getPageSettings().setMaxPageVersions(0); - getApplication().getPageSettings().setVersionPagesByDefault(false); - getApplication().getSessionSettings().setMaxPageMaps(1); Nothing seems to work though. Anyone got any good suggestions? *Thanks in advance,* *Arjan Zwaan.* - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user