Jenkins high cpu load every ~ 2 weeks that leads to crash jenkins

I’d suggest trying How to identify a thread leak issue?

And also to update your Jenkins version, 2.504.2 has been published in May 2025, your issue has probably been fixed since.