Howdy,

>How can I mesure the memory used for a web app (A struts one) that is

You can't just for one webapp.  You can measure the memory usage of the
whole JVM.  If all you have one the server is the one webapp, than the
JVM memory = tomcat memory + webapp memory.

>used by any client. What must I do to prevent any waste of memory in
this
>case.

Code your application to not create any objects it doesn't need, don't
hold references to anything it doesn't need, don't create extra threads,
etc.  Same as any (command-line, desktop, etc.) application.


>In the same way, I must limit the memory consumtion of Tomcat on my
system
>:
>It must be very "small consumer" as far as there is no client activity.

Eliminate all unused webapps, e.g.
examples/admin/manager/ROOT/tomcat-docs/websav.  Eliminate all unneeded
connectors and services from server.xml.  Eliminate all unneeded Loggers
if you want.

You'll find the tomcat footprint to be very small (by normal server-side
scale) when you do this.  I don't know if it'll fit on a 64KB card, but
small nonetheless ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to