Gaetan, You can mark whatever instance that is causing the session to be so large as 'transient' to avoid it being serialized -- you'd have to recreate it each time it was needed though. So if it's in your model:
============= private String chartName; private String chartArguments; // maybe from a page param or something? private transient DynamicImageResource chartImage; // won't get serialized ============= -R On Thu, Jan 28, 2010 at 3:28 AM, Gaetan Zoritchak < [email protected]> wrote: > Hi all, > > I was debugging my sessions size in order to reduce it and I saw that one > of > my page spend 20ko because of an dynamic image generated with JFreeChart. > JFreeChart was serialized with my DynamicImageRessource. > > My first optimisation is to make JFreeChart a static field initialized in a > static bloc. > > Is it an valid way of handling that problem? > > Gaetan Zoritchak, >
