The memory requirement for the program I am running increases with
time.
I used this call(Runtime.freeMemory) in my program but surprisingly
the amount of memory returned by this call went on increasing when I
would have expected the program to return less amount of free memory.
Any clue about this kind of behavior of this system call?
Roedy Green - 04 Jul 2003 15:57 GMT
On 4 Jul 2003 04:32:40 -0700, roys5@rpi.edu (saurdel) wrote or quoted
>I used this call(Runtime.freeMemory) in my program but surprisingly
>the amount of memory returned by this call went on increasing when I
>would have expected the program to return less amount of free memory.
>Any clue about this kind of behavior of this system call?
see http://mindprod.com/jgloss/packratting.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Wolf Martinus - 04 Jul 2003 16:28 GMT
> I used this call(Runtime.freeMemory) in my program but surprisingly
> the amount of memory returned by this call went on increasing when I
> would have expected the program to return less amount of free memory.
> Any clue about this kind of behavior of this system call?
what you see is available heap space. if the vm runs out of heap it will
increase heap size.
See -Xms and -Xmx switches for vm.
Wolf

Signature
For a private reply to reiss_wolf@gmx.de make sure to provide an
interesting subject line.