The service was killed and felt particularly strange. The code is sure to be fine, but why is it wrong to put it on the server?
The deployment times are wrong:
Shell Code
- Failed to add the deployment content to the repository:java.util.concurrent.CancellationException:Operation was Cancelle D
Wildfly error is as follows:
Shell Code
- ./standalone.sh:line 307: 12526 killed
I can't see what's wrong with you.
So use dmesg find reason, finally found the reason:
Shell Code
- # 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
The original is due to insufficient memory. I use the server memory only 1 G, which runs a lot of services, so it can be memory is not big, so there is a problem.
Out of Memory:kill process memory is low