How can I solve Application hanging problems due to memory issues?

How can I solve Application hanging problems due to memory issues?

Alter the memory settings in the catalina.sh file using the following steps to solve the problem: 1. Stop the server Step. 2. Open the catalina.sh file from the path :/home/arc_setup/arc585_dev/bin/ 3. Alter the below propery in the catalina.sh file: export CATALINA_OPTS="-Xms768m -Xmx1280m" 4. Start the server.