FasterXML / jackson-core

Core part of Jackson that defines Streaming API as well as basic shared abstractions
Apache License 2.0
2.25k stars 773 forks source link

How to change default RecyclerPool for 2.17.0 ? #1293

Closed artemus717 closed 3 months ago

artemus717 commented 3 months ago

Maybe there are some memory leak issue with 2.17.0. We are running OpenSearch 2.14.0 which use jackson-core 2.17.0. I want to try change default RecyclerPool to see if jvm heap will back to normal.

Thanks

plokhotnyuk commented 3 months ago

You can add .recyclerPool(JsonRecyclerPools.threadLocalPool()) when building JsonFactory like here, but a better option is upgrading jackson-core to 2.17.1 or above.

pjfanning commented 3 months ago

relates to #1256

artemus717 commented 3 months ago

You can add .recyclerPool(JsonRecyclerPools.threadLocalPool()) when building JsonFactory like here, but a better option is upgrading jackson-core to 2.17.1 or above.

did 2.17.1 not use lock free pool as default ?

pjfanning commented 3 months ago

You can add .recyclerPool(JsonRecyclerPools.threadLocalPool()) when building JsonFactory like here, but a better option is upgrading jackson-core to 2.17.1 or above.

did 2.17.1 not use lock free pool as default ?

please read #1256

artemus717 commented 3 months ago

OK I changed to 2.17.1 in my OpenSearch cluster to see if it's OK.

Thanks