Hello Surendra!
Greetings.
a. Can you share your JVM arguments? You can do ps -ef | grep {YOUR_PROCESS} and pass the output. We first need to confirm whether your -Xmx is set to 12gb
b. From where you observing your Java process to takeup to 29G memory? Are you using system monitoring tool like top?
c. Also be advised that -Xmx set a limit on Java Heap Size. After that there also other regions, they occupy memory. Refer to this video clip: https://www.youtube.com/watch?v=uJLOlCuOR4k&t=196s - If your application is having thread leak then your overall applications memory consumption will go beyond 12G.
d. Did you run yCrash before restarting the application? It might share some insights.
Edit your Comment