title: Can I Force Garbage Collection in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1481178/forcing-garbage-collection-in-java">Forcing Garbage Collection in Java?</a>  </p>
  </blockquote>
  
  
  
  <p>Can I Force Garbage Collection in Java by any means?</p>
  
  <p>System.gc() is just a suggestion.It's useless.</p>
  
  <p>When I know for sure that some resources won't be used any more,why can't I force to clean them?</p>
  
  <p>Just like delete() in C++ and free() in C?</p>
  
  <p>When there are lots of resources that can't be reused,this can really suck the performance.All that we can do is sleep().</p>
  
  <p>Any solutions?Thanks</p>