The Artima Developer Community
Sponsored Link

Java Answers Forum
Max Heap , real free memory and GC invoke

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Antonas

Posts: 11
Nickname: tony
Registered: May, 2002

Max Heap , real free memory and GC invoke Posted: Dec 2, 2002 1:55 AM
Reply to this message Reply
Advertisement
Hi,

My question is about Garbage Collector invoking. Ash far as I know Garbage collector implicitly is invoked when it reaches maximum heap size assigned to the JVM. Lets say if I have
java -Xmx25m Blabla

So when JVM memory usage will reach 25M it will not be able to create more objects and will run GC tu free not strongly reffered objects. My question what if on my system is only 20 Mb available free memory (lets say 10Mb RAM and 10MB virtual). Will GC be executed when it reaches phycical memory limit or it will try to reach 25 Mb and throw OutOfMemoryError ?

Thank You very much

Tony

Topic: graphic game does't start with ssh-connection Previous Topic   Next Topic Topic: i want to create a game, but how?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use