Used/available memory? Where can I read this from?
When I turn on verbosegc, the garbage collector prints out on system.err
how much memory the JVM is using and how much is occupied/available for
objects. Does anybody know where, from which class/method, can I read
those values inside a Java program? I searched the JDK documentation and
couldn't find this. Tks!
Re: Used/available memory? Where can I read this from?
Runtime.getRuntime().totalMemory() and Runtime.getRuntime().freeMemory().
PC2
"Fabio Luis De Paoli" <fpaoli@br.dhl.com> wrote in message
news:3ABF3774.96FCAD9@br.dhl.com...
> When I turn on verbosegc, the garbage collector prints out on system.err
> how much memory the JVM is using and how much is occupied/available for
> objects. Does anybody know where, from which class/method, can I read
> those values inside a Java program? I searched the JDK documentation and
> couldn't find this. Tks!
>
> Fabio
>