You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by starki78 <st...@libero.it> on 2006/01/10 15:58:14 UTC

Need advice with performance of Struts-Application on Tomcat 4.1

Hi we are developing an application with
Struts and I've a Action that creates
35 Charts writes it to the Session and displays it
in a JSP. It runs on Tomcat 4.1.
Most of the time it is fast but sometimes it takes significantly
more time. I've tested all the methods, the session-size can
reach a maximum of 1.3 MB. Is this too much?
Where could be the bottle-neck? Has someone an idea?


Thanks a lot
Starky






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Need advice with performance of Struts-Application on Tomcat 4.1

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
That's *WAY* too much data in session.  You should always strive to keep
session as small as possible, I believe the recommendation generally is
<32K.  If you ever had to move to (or are already in?) a distributed
environment, 1.3Mb in session would absolutely kill you.  Even on a single
box, because of the session persistance management chores, it could easily
be a problem.

I would suggest looking at your requirements and see if there is a more
transient way of meeting the needs.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com

On Tue, January 10, 2006 9:58 am, starki78 said:
> Hi we are developing an application with
> Struts and I've a Action that creates
> 35 Charts writes it to the Session and displays it
> in a JSP. It runs on Tomcat 4.1.
> Most of the time it is fast but sometimes it takes significantly
> more time. I've tested all the methods, the session-size can
> reach a maximum of 1.3 MB. Is this too much?
> Where could be the bottle-neck? Has someone an idea?
>
>
> Thanks a lot
> Starky
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Need advice with performance of Struts-Application on Tomcat 4.1

Posted by Emmanouil Batsis <Em...@eurodyn.com>.
Emmanouil Batsis wrote:

> [...] the browser upon stibling on an img tag.


Sorry, i stumbled while typing this ;-)

> Manos



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Need advice with performance of Struts-Application on Tomcat 4.1

Posted by Emmanouil Batsis <Em...@eurodyn.com>.
starki78 wrote:

>Hi we are developing an application with
>Struts and I've a Action that creates
>35 Charts writes it to the Session and displays it
>in a JSP. It runs on Tomcat 4.1.
>Most of the time it is fast but sometimes it takes significantly
>more time. I've tested all the methods, the session-size can
>reach a maximum of 1.3 MB. Is this too much?
>Where could be the bottle-neck? Has someone an idea?
>  
>

As a general rule with exceptions, i'd just have each image created as 
the result of the HTTP request for it, made by the browser upon stibling 
on an img tag.

hth,

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org