how do we specify garbaze collector parameters or use some custom garbaze collector apart from default JVM provided one

Hi,

In java how do we specify or change garbaze collector parameters.
How use some custom garbaze collector apart from default JVM provided one. what are other options available for that. please advise
LVL 7
gudii9Asked:
Who is Participating?
 
dpearsonConnect With a Mentor Commented:
How you control this is through parameters passed to the JVM at startup.  It's all explained here:
http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html
and
http://www.cubrid.org/blog/dev-platform/how-to-tune-java-garbage-collection/

but like guarpsbassi said, this is advanced stuff.  You almost certainly will never need to tune the garbage collector and before you even begin to try you would need a very solid grasp of how Java's memory management works.  I would stick to learning how to write correct Java programs first.

Doug
0
 
gurpsbassiConnect With a Mentor Commented:
why are you asking this questions.....from drawing venn diagrams for conditional logic to banging your head against the wall on recursion....this is a advanced topic.

I would get the basic programming right first.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.