You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Per <pe...@hamburg.de> on 2012/02/20 02:29:30 UTC
Shrinking the session size, simply by zipping it. Saved my day.
Hi all,
thought I'd share a really simple hack that we're using to reduce the Wicket
session size (on Wicket 1.4).
Background: We deploy to Google App Engine, and there's a strict 1MB limit.
We've been using LDMs and all sorts of optimisations, but we were still
reaching the limits when a user viewed long lists, or used many tabs, and as
a result pages often got evicted while still needed, resulting in ugly "page
expired" errors.
Turns out, you can zip the session's attributes "on the way out", e.g. on
the fly, with minimal latency introduced. In over a year of squeezing bytes
out of the object graph, this had never occurred to me. But now it's kind of
obvious, and really easy to code as well... Check out our blog if you ever
had this problem.
http://smallimprove.wordpress.com/2012/02/19/reducing-wicket-session-size-to-one-third
Cheers,
Per
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simply-by-zipping-it-Saved-my-day-tp4402980p4402980.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Shrinking the session size, simply by zipping it. Saved my day.
Posted by Josh Kamau <jo...@gmail.com>.
Thanks Emond Papegaaij
Thats fantastic.
Josh
On Mon, Feb 20, 2012 at 7:08 PM, Emond Papegaaij <emond.papegaaij@topicus.nl
> wrote:
> Thanks for the suggestion! I've just implemented this. It should be
> available
> in 1.5.5 and 6.0.0, see https://issues.apache.org/jira/browse/WICKET-4419for
> details.
>
> Best regards,
> Emond
>
> On Monday 20 February 2012 10:48:52 Josh Kamau wrote:
> > Thanks for the post.
> >
> > I wish this could be integrated into the core.
> >
> > Josh.
> >
> > On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness <
> >
> > robert.mcguinness.iii@gmail.com> wrote:
> > > very nice thanks!
> > >
> > > --
> > > View this message in context:
> > >
> http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simp
> > > ly-by-zipping-it-Saved-my-day-tp4402980p4403065.html Sent from the
> Users
> > > forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Shrinking the session size, simply by zipping it. Saved my day.
Posted by Emond Papegaaij <em...@topicus.nl>.
Thanks for the suggestion! I've just implemented this. It should be available
in 1.5.5 and 6.0.0, see https://issues.apache.org/jira/browse/WICKET-4419 for
details.
Best regards,
Emond
On Monday 20 February 2012 10:48:52 Josh Kamau wrote:
> Thanks for the post.
>
> I wish this could be integrated into the core.
>
> Josh.
>
> On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness <
>
> robert.mcguinness.iii@gmail.com> wrote:
> > very nice thanks!
> >
> > --
> > View this message in context:
> > http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simp
> > ly-by-zipping-it-Saved-my-day-tp4402980p4403065.html Sent from the Users
> > forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Shrinking the session size, simply by zipping it. Saved my day.
Posted by Josh Kamau <jo...@gmail.com>.
Thanks for the post.
I wish this could be integrated into the core.
Josh.
On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness <
robert.mcguinness.iii@gmail.com> wrote:
> very nice thanks!
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simply-by-zipping-it-Saved-my-day-tp4402980p4403065.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Shrinking the session size, simply by zipping it. Saved my day.
Posted by robmcguinness <ro...@gmail.com>.
very nice thanks!
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simply-by-zipping-it-Saved-my-day-tp4402980p4403065.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org