• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Netbeans forces Garbage collection ,not request Garbage Collection

 
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Loads of books tell that you can request Garbage Collection and can't force the Garbage Collection.

In Netbeans IDE, there is a tab titled "FORCE GARBAGE COLLECTION" to freeup memory.

[ July 16, 2008: Message edited by: Pratap koritala ]
 
Ranch Hand
Posts: 179
Mac Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yap that sounds interesting running a few tests did change the values. Even in the netbeans manualthey mention that we can initiate when the memory toolbar is clicked.
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm I suspect it forces the suggestion of garbage collection
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot force garbage collection via a normal Java API call (such as System.gc()).

However, Sun's JVM does have a debugger interface which does allow you to force garbage collection. The tool JConsole (included with the JDK), which uses this interface, can be used to force garbage collection in running Java processes. NetBeans most likely uses the same interface to force garbage collection.

I don't know the details of how the debugger interface works.
[ June 27, 2008: Message edited by: Jesper Young ]
 
Ramya Chowdary
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did anybody know how ?
How to know who are the main code contributors of Netbeans...
 
Ranch Hand
Posts: 570
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to run garbage collection using Netbeans ?
 
John Joe
Ranch Hand
Posts: 570
3
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ravikanth kolli wrote:yap that sounds interesting running a few tests did change the values. Even in the netbeans manualthey mention that we can initiate when the memory toolbar is clicked.

The link was dead.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

John Joe wrote:The link was dead.



Well... it was posted 8 years ago so maybe that's not all that surprising?
reply
    Bookmark Topic Watch Topic
  • New Topic