AFAIK ActionForm has a reference to ActionServlet to write to servlet log and to get application scoped datas (ie. getServlet().getServletContext(); )
Nico. ----- Original Message ----- From: "Jose Ramon Diaz" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednesday, January 28, 2004 3:18 PM Subject: RE: Problem with huge session memory and ActionForm > > Thanks Shirish. > That�s the solution we are trying now, but I still don�t understand why an > ActionForm has a reference to the ActionServlet. > Does anybody know, please? Or am I missing something? > > thanks! > > > > -----Mensaje original----- > > De: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > > Enviado el: mi�rcoles, 28 de enero de 2004 14:35 > > Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Asunto: RE: Problem with huge session memory and ActionForm > > > > > > Why not change those forms to request scope instead?Where > > ever feasible I mean.If any data is not shared across pages > > in a wizard like flow, just put that form in request.This > > should be applicable to 90% of the cases. > > > > But It may not be as simple as that.You may have to retest > > entire application because of that. > > > > HTH. > > regards, > > Shirish > > > > -----Original Message----- > > From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, January 28, 2004 1:48 PM > > To: 'Struts Users Mailing List' > > Subject: Problem with huge session memory and ActionForm > > > > > > > > Hi all, > > > > We have detected a problem with the amount of memory we > > use in the session > > when we use classes extending org.apache.struts.action.ActionForm and > > DynaActionForm too. > > We are using 9iAS 9.0.3. > > We take a look to the memory using JPRobe profiler, and > > we see that the > > forms stored in session (we define the scope to session in > > struts-config.xml > > for an action) are using more than 20Mb(!!) > > Those actionForms have a reference to ActionServlet in > > servlet attribute. > > > > Of course, this is a lot of memory to have several > > hundreds of users. I > > imagine this is not a Struts bug, and please help us to detect what�s > > happening or which is the error in our code. > > > > Thanks a lot. > > > > Jose R. > > ____________________________________________ > > E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] > > > Editorial Aranzadi: www.aranzadi.es <http://www.aranzadi.es> > > Camino de Galar, 15 > > 31190- Cizur Menor - SPAIN > > Tlfno.: +34 948 297297 Fax: +34 948 297200 > > __________________________________________ > > Este e-mail y cualquier documento anexo contienen informaci�n > > privada y > > confidencial �nica y exclusivamente para el destinatario. Si > > usted no es el > > destinatario, no tiene autorizaci�n para leer, copiar, usar o > > distribuir el > > e-mail y el/los documento anexos. En caso de haber recibido esta > > comunicaci�n por error, le rogamos que lo remita al emisor y > > lo destruya > > posteriormente. > > This e-mail and any attachment contain information, which is > > private and > > confidential and is intended for the addressee only. If you are not an > > addressee, you are not authorized to read, copy, use or > > distribute this > > communication. If you have received this e-mail in error, > > please notify the > > sender by return e-mail. > > > > > > > > > > --------------------------------------------------------------------- > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

