Profile Image
Sid Sudharshan

Default GC and thread dumps & gc logs from pCF container

HI Ram and all , i have two questions .

  1. what would be the default GC picked if nothing mentioned like what type of GC has to be used in jvm level . what is the criteria ? (when in Micro Service world)
  2. how to get the thred dumps and gc logs from pcf containers ,any in built tool or we have to depend on PCF follks ..f any one fetched logs from pcf containers pleas give your insights .

Thanks in aadvnce 

Sudharshan Sid

  • gc

  • logs

  • pff

  • default

  • pcfcontainer

  • microserviceworld

  • g1gc

  • parallelgc

Please Sign In or to post your comment or answer

Profile Image

Ram Lakshmanan

Hello sid!

 

 Greetings.

 

1. Default GC algorithm

If you explicitly don't specify the GC algorithm in the JVM arguments then default GC algorithm will be used. Default algorithm depends on your JVM version:

 

a. If you are running on Java 9 and above version then 'G1' is the default GC algorithm.

b. If you are running on versions before Java 9 then 'Parallel GC' is the default GC algorithm

 

2. Capturing GC logs and Thread dumps in PCF containers

 You can use yCrash script. It not only capture GC log, thread dump but also below mentioned 360-degree artifacts. 

 

 

Profile Image

Sid Sudharshan

Thanks, Ram, I was under the same assumption but, somehow JVM version  ---1.8.0_311 that is Java 8U 311--picked parallel GC. My Assumption the reason could be when the Dev team pushed  MS to pcf Default heap mentioned  300 MB no minimum settings ------but still need input from experts like you .

 

Thanks for confirming that we can pull PCF container logs.

 

Thnaks

Sid

Profile Image

Ram Lakshmanan

Hello Sid! I stand corrected. Only starting from Java 9, 'G1 GC' is the default aglorithm. Earlier versions default algorithm is 'Parallel GC'.

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • gc

  • logs

  • pff

  • default

  • pcfcontainer

  • microserviceworld

  • g1gc

  • parallelgc