Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / July 2003

Tip: Looking for answers? Try searching our database.

Runtime.freeMemory Call

Thread view: 
saurdel - 04 Jul 2003 12:32 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.