What should I do if the Java process under Linux system disappears without cause?

  

Some Java projects in the Linux system steps disappeared without cause. It turned out that the Java process was closed. Why does this happen? It may be that the system automatically clears the redundant process, or other programs turn off the Java project. What should I do at this time?

Solution:

1. disk is full, the problem is relatively simple, as long as the clean up disks on it.

2. When the tomcat is closed or restarted, the background process is often not closed. Need to use ps aux| Grep java This command checks, turn off the redundant process, and then start startup.sh

3. This situation is rare, in the case of system resources is missing, the system automatically DOWN, or It was killed by other software.

In fact, I am here, this still has not been resolved, the process is still inexplicable will hang itself, the log did not give any error. Later, open the tomcat-users.xml file in the subdirectory conf under the tomcat home directory. The user configuration is as follows:

<tomcat-users>

<user name=“tomcat&rdquo ; password=“tomcat” roles=“tomcat” />

<user name=“role1” password=“tomcat” roles=“role1” />

<user name=“both” password=“tomcat” roles=“tomcat,role1” />

</tomcat-users>

.

The above is the solution for the Java process under Linux system to disappear without any reason. The above three methods always have a problem that can solve Linux, so we can safely deploy the Java project under Linux system. .

Copyright © Windows knowledge All Rights Reserved