[Original] Investigation on the cause of errors when wildfly deploys applications

Recently, an error occurred when deploying an application using wildfly, which caused the wildfly service to be killed directly, which is very strange. There is definitely no problem with the code, but why does it go wrong when I put it on the server.

The deployment error is as follows:
Failed to add the deployment content to the repository: java.util.concurrent.CancellationException: Operation was cancelled

wildfly reports the following error:
./standalone.sh: line 307: 12526 Killed

Couldn't see what was wrong at the moment.

So I used dmesg to find the reason, and finally found the reason:
# dmesg | tail
[1147898.706546] Out of memory: Kill process 12526 (java) score 399 or sacrifice child
[1147898.710393] Killed process 12526 (java) total-vm:2559448kB, anon-rss:403304kB, file-rss:780kB, shmem-rss:0kB
[1147898.738479] oom_reaper: reaped process 12526 (java), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

It turned out to be caused by insufficient memory. The server memory I use is only 1G, and there are many services running on it, so the memory is not large, so there is a problem.

Reference:
https://issues.jboss.org/browse/JBTM-1623

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326582641&siteId=291194637