note: java 17 isn't fully supported yet.
if you take a heap dump, you can dive in and try and figure out what objects are being left on the heap
that said, it could be a bug in lucee, you didn't mention which version you are using, please always mention the version, if you aren't using the latest release try that, at the moment, I'd suggest trying the latest 5.3.10 snapshot, otherwise you maybe fighting already solved bugs
running load testing is also a good way to narrow down what is causing the problem. i,e if you hit your local server with 10000 requests, do you see 10000 objects in the heap dump somewhere