yes, there is a way.
You should generate a heap dump.
It is explained here -> How To Create a Java HeapDump in E-Business Suite (Doc ID 835909.1)
In general,
If you have memory issues, (outofmemory) -> then you should generate heap dump.
If you have Cpu issues (spinning on Cpus , hanging, blocking etc..) -> then you should generate java stack trace.
I have an article about these things ..
Review it as well..
Review it ->
https://ermanarslan.blogspot.com/2018/05/ebs-122-things-that-can-be-done-for.html