We have a Jenkins server that runs a pipeline, loads a GIT repo, and then loads other custom groovy scripts that contain more pipeline commands from that repo. After a day or so we end up with 100s of thousands of loaded classes on the server. This amount then stays static for several days or a week. For that week, GC seems to chug away, then there is a three-hour window where memory creeps up, and GC starts spinning really hard. The server never OOMs, just becomes unresponsive.
- I've seen advice on turning this on, but we actually upgraded to groovy 2.4.8, so I think it's moot: groovy.use.classvalue