alibaba / alibaba/fastjson2

[QUESTION]JSONFactory中的CACHE_ITEMS一直在增长

Open
#3,535 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### JSONFactory中的CACHE_ITEMS一直在增长,能控制他的大小吗?占用JVM太多了。操作的对象都是List>或者Map进行来回序列反序列化操作
![Image](https://github.com/user-attachments/assets/12e1437f-4472-42fe-af1d-7e498b2ea1ec)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported List> and Map serialization and deserialization workload, then inspect how JSONFactory.CACHE_ITEMS grows during it. Done means determining whether the cache can be bounded and verifying that repeated operations no longer cause unbounded JVM memory use.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.