Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configure Garbage Collector

 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is there a way i configure garbage collector in JBOSS.


Thanks in advance
-Neha
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Garbage collection is part of the JVM. You can pass the garbage collection related parameters as JVM options through the run.bat file. Look for the %JAVA_OPTS% section.
[ May 19, 2008: Message edited by: Jaikiran Pai ]
 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks jai , just a last question if we reduce the value of the following
-Dsun.rmi.dgc.client.gcInterval . is it like a sure value or just a request ; and will the garbage collector run..


-Thanks in advance
[ May 20, 2008: Message edited by: Neha Mohit ]
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what i found in the Sun documentation:

the value of this property represents the maximum interval (in milliseconds) that the RMI runtime will allow between garbage collections of the local heap.
 
Neha Mohit
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jai
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic