Skip to content

Because the GC log is written to /dev/shm, the /dev/shm disk usage reaches 100% | 因gc日志写入/dev/shm,导致/dev/shm磁盘使用率达到100% #124

@MicroOps-cn

Description

@MicroOps-cn

The default /dev/shm space for containers is only 64MB, and it's used up by garbage collection (GC) logs in less than a month. It doesn't seem to be automatically deleted, and when it's full, new GC logs can't be written. Why are GC logs written to /dev/shm/? Can this be changed?
容器默认的/dev/shm空间只有64M,一个月不到就会被gc日志用完。看起来不会自动删除,满了新的gc日志就写不进去了。那gc日志为什么要写入/dev/shm/?是否可以更改?

JAVA_OPT="${JAVA_OPT} -verbose:gc -Xloggc:/dev/shm/mq_gc_%p.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintAdaptiveSizePolicy"

Metadata

Metadata

Assignees

No one assigned

    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