Diagnosing high CPU Perspective worker thread

I am currently facing the same issue. Is there a way of finding exactly what the thread comes from? For instance:

My highest thread is “perspective-worker-419, id=14625”. How can I spot exactly where this comes from?

Thanks

Your best tool is the stack trace below the thread dump. It tells you exactly what the thread is trying to do when it’s consuming that CPU. You’ll then have to work backwards from what it’s doing to find where it’s being called (this is sometimes the tricky part) and make adjustments.