System.out.println("Memory used: " +
(Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory()) +
                   ", total: " + Runtime.getRuntime().totalMemory() +
                   ", free: " + Runtime.getRuntime().freeMemory());


"Thethi, Manmeet S" <[EMAIL PROTECTED]> wrote:
In one of our JSP based applications, lot of data is common to all the
users. (we get the data from DB)
We were thinking about using Application scope variables (instances).

We are using JRUN (JSP) with JDK 1.1.8 on a Solaris server.

My concerns are:

1. How much memory do I have in JRUN to store my application variables (I
don't want to break JVM/JRUN)

2. Is there a way to find out how much memory have I consumed and how much
is remaining from the JVM

3. There are other applications already running on the same webserver/JRUN.
Will my use of application level variables effect the other applications in
any way.


Thanks for responding to my earlier questions.


Regards

Manmeet

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to