Search code examples
linuxperformancegarbage-collectioncommandverbosegc

Linux command for verbose gc


A very simple question, Am a brand new guy to linux scripting,

I just want to know, How to make the following command to add and run in my linux script.

-Xloggc:C:\whereever\jvm.log -verbose:gc -XX:+PrintGCDateStamps

I know its a silly question, But please I need an immediate solution for this. Just want to know how to add this in the script???

If possible please do let me know, how to see that verbose gc log collection is running in my system.


Solution

  • here's a good example for you. Verbose gc in linux