Solved

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

Posted on 2016-11-05
2
40 Views
Last Modified: 2016-11-14
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
0
Comment
Question by:gudii9
2 Comments
 
LVL 15

Assisted Solution

by:gurpsbassi
gurpsbassi earned 250 total points
ID: 41875551
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
 
LVL 26

Accepted Solution

by:
dpearson earned 250 total points
ID: 41875591
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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 86
Apps blocked by Java 9 81
hibernate example issues from command prompt 10 42
How to convert from xls to xlsx using java 7 41
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

822 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question