Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 出现MDO extra data lock 异常 #2980

Open
dujie-js opened this issue Sep 24, 2024 · 0 comments
Open

[BUG] 出现MDO extra data lock 异常 #2980

dujie-js opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dujie-js
Copy link

问题描述

在生产环境切换fastjson2之后我发现项目的堆外内存出现平滑曲线上升

环境信息

请填写以下信息:

  • OS信息: [e.g.:CentOS 4Core 3.10GHz 8 GB]
  • JDK信息: [e.g.:
    java version "1.8.0_202"
    Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
    Java HotSpot(TM) 64-Bit Server VM (build 25.202-b08, mixed mode)]
  • 版本信息:[e.g.:Fastjson2 2.0.49]

重现步骤

因项目中存在部分日志打印使用JSON.toJsonString

相关日志输出

通过 pmap 查看虚拟内存信息 对比两个小时前后的内存变化发现,多出部分没有被回收的内存
image
使用gdb 工具对相关内存地址进行检查发现大部分都是这部分异常
image
看起来是每次都会加载Fastjson创建的代理类 在fastjson1版本好像也存在这个问题

@dujie-js dujie-js added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant