Monday, 25 April 2016

What are the side effects of caling System.gc() ?


Calling System.gc() triggers a full GC which takes significantly longer than a GC of the 'new space'.

By forcing the GC, you are causing the JVM to use extra CPU cycles, etc. which may potentially interfere with other things that the user is doing on his machine.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.