java - How does JVM decide to extend memory or do a GC? -


i using jboss instance has start memory of 4 gb , max memory of 12 gb. question - how jvm decide when extend memory (from 4gb higher) vs when force full gc? reason ask because watching memory profile of jvm , in 1 instance noticed increased memory ceiling 4gb higher value accommodate memory growth demand , in case decided perform full gc bring used memory lower. understanding on this?

you did not jvm using, knowledge grow heap accommodate more objects. else caused full gc. if have 12 gb available (which should if allow jvm grow) recommend set xms=12gb well. allows easier understand generation sizes want have without need deal heap resizing.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -