You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)]
问题描述
在生产环境切换fastjson2之后我发现项目的堆外内存出现平滑曲线上升
环境信息
请填写以下信息:
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)]
重现步骤
因项目中存在部分日志打印使用JSON.toJsonString
相关日志输出
通过 pmap 查看虚拟内存信息 对比两个小时前后的内存变化发现,多出部分没有被回收的内存
使用gdb 工具对相关内存地址进行检查发现大部分都是这部分异常
看起来是每次都会加载Fastjson创建的代理类 在fastjson1版本好像也存在这个问题
The text was updated successfully, but these errors were encountered: