Skip to content

[Bug] GC logs in JDK 11 do not include date and time stamps. #1149

@qijiale76

Description

@qijiale76

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

Now gc log in jdk11 is set by

JVM_ARGS=" -server \
......
          -Xloggc:${RSS_LOG_DIR}/gc-%t.log"

JAVA11_EXTRA_ARGS=" -XX:+IgnoreUnrecognizedVMOptions \
          -Xlog:gc:tags,time,uptime,level"

and gc log do not include data and time

[0.004s][info][gc,heap] Heap region size: 32M

when use

-Xlog:gc*:${RSS_LOG_DIR}/gc-%t.log:tags,time,uptime,level

it works

[2023-08-15T16:16:50.442+0800][0.011s][info   ][gc,heap] Heap region size: 32M

Affects Version(s)

master

Uniffle Server Log Output

No response

Uniffle Engine Log Output

No response

Uniffle Server Configurations

No response

Uniffle Engine Configurations

No response

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions