Tomcat server hangs troubleshooting

Find reasons why tomcat server hangs inexplicably on Linux

The company’s service was inexplicably hung up. At first, I thought that the server was attacked by someone. It started up and hung up again. I checked it and found that the system memory was too full and automatically killed the tomcat process!

Both are common Out of memory problems. This is usually caused by a large amount of memory requested by an application at a certain time, resulting in insufficient system memory. This usually triggers the Out of Memory (OOM) killer in the Linux…