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