简体   繁体   中英

GCLogFileSize hotspot flag alrernative for openjdk15

I have issues with openjdk-15 for linux. So, my app run with next setup

-XX:+CrashOnOutOfMemoryError
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=tmp
-Xlog:gc:tmp/mygc.log

And I want to add limitations for GC logs via -XX:GCLogFileSize , but this HotSpot flag is not able for openjdk-15. Mb you know some alternative flags?

I've checked all available flags for my machine via PrintFlagsFinal , but don't find any relevant.

Most logging related flags were replaced with Unified JVM Logging .

Use -Xlog with filesize output option, eg

java -Xlog:gc:file=gc.txt:uptimemillis:filecount=5,filesize=1M

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM