Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_jsp thread: Re: Memory Used within a Session


Message #1 by Leon <leonyip@x...> on Wed, 05 Dec 2001 10:42:00 +0800
--------------8C2CD87334E2238ECA19A550
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,
thanks NIkhil, i didn't realize that java itself contain classes to check the memory.


NIkhil Subhash Palshikar wrote:

> hi
>
> The java.lang.RunTime class has a method freeMemory() that returns the currenely  available memory.
> and when the JVM goes out of memory  an OutOfMemoryError is thrown.
>
> niko
> On Thu, 29 Nov 2001 Leon Yip wrote :
> > Hi all,
> > did anyone know how to  measure  memory that reside in
> > a session in  JVM environment? what i
> > mean here is
> > when I put some object say ResultSet , Vector in
> > session object, it will keep in the memory of JVM
> > until the
> > session expired, so when there are too many users in
> > the session, it might crash the JVM,
> >
> > so, can anyone can suggest me any tools to measure the
> > JVM memory used? thanks in advance.
> >
> >
> >
> >
> > ---
> > Do you need true END-TO-END (e2e) Java Messaging (JMS)?
> >  Softwired
> > offers industry's ONLY complete 100% JMS messaging
> > solutions for your
> > needs TODAY.
> > Visit http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fj-
> > ava%2Dsoftwired&url=www.softwired-inc.com NOW and find
> > out more!
> > Our unique product range includes: iBus//Mobile
> > (wireless data),
> > iBus//MessageBus (IP Multicast), iBus//MessageServer
> > (store and forward)
> > and much more!
> > niko77@r...
> > $subst('Email.Unsub')
> >
> >
> > Read the future with ebooks at B&N
> > http://service.bfast.com/bfast/click?bfmid=2181&sourceid-
> > =38934667&categoryid=rn_ebooks
>
>
> ---
> Do you need true END-TO-END (e2e) Java Messaging (JMS)?  Softwired
> offers industry's ONLY complete 100% JMS messaging solutions for your
> needs TODAY.
> Visit http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fjava%2Dsoftwired&url=www.softwired-inc.com NOW and find
> out more!
> Our unique product range includes: iBus//Mobile (wireless data),
> iBus//MessageBus (IP Multicast), iBus//MessageServer (store and forward)
> and much more!
>
> Read the future with ebooks at B&N
> http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid=rn_ebooks



  Return to Index