Skip to content

mirrorCache内存泄露 #1599

@xltanglx

Description

@xltanglx

您好,在org.nutz.lang包下有一个Mirror类,它有一个静态的成员变量mirrorCache,用于缓存Type-Mirror的映射,应用上线后mirrorCache会逐渐增大,如果长期不重启应用,mirrorCache甚至达到了1个GB,我通过NutConf.USE_MIRROR_CACHE=false禁用了mirrorCache,但是之后却报java.lang.ClassCastException异常,但是只要不禁用mirrorCache就没有问题,所以想请教一下,正确禁用mirrorCache的姿势是什么?我们是SpingBoot应用。

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