Why does jackson use the thread-unsafe date class SimpleDateFormat? #173
Replies: 1 comment 1 reply
-
You would need to provide more information on why you think there is actual blockage that causes performance issues. Ideally with reproduction, or at least code sample of code used to call OBjectMapper and with class(es) used as source/target. As to why this is used; if you want to provide a replacement that works better feel free to provide PR. |
Beta Was this translation helpful? Give feedback.
-
I have encountered a problem. When my program is deserializing, the thread is stuck in the Blocked state. Moreover, the current thread holds a lock, causing a large number of my threads to fall into the BLOCKED state. I don't know why the culprit thread is stuck in BLOCKED state. It already holds the lock but has no competing locks, and it enters the BLOCKED state through the deserialization operation in the synchronization code block. At this point, it is doing the deserialization process of the date string. I guess it's too slow, why use this thread-unsafe SimpleDateFormat class?I'm not sure if my analysis is right, I can provide the stack! The culprit thread above is : http-nio2-9797-exec-57
20230522_103001.txt
Beta Was this translation helpful? Give feedback.
All reactions