Maven compilation dies with "Killed"

I am running a Maven2 compilation of a large Java project on a Linux virtual machine
Compilation with the error "compiled with -X for debugging"

[DEBUG] Original roots:
[DEBUG] / home /{...►/ src / main / java
[DEBUG] / home /{...►/ target / generated-sources / meta
[INFO] Compiling 1377 source files in / home / {...}
Killed
(and I will immediately return to the bash prompt)

I suppose it could be:

  • Linux (I checked that my ulimit -Hn is ok, 10000)
  • VM stuff (this is on an Amazon EC2 ubuntu instance)
  • thing maven / java (never seen such a death, usually just due to memory errors, etc.)

Any thoughts to narrow down the culprit?

+6
source share
2 answers

My first guess was that you were running out of memory and the kernel was killing the compilation process.

+11
source

I would start by looking if there are other resource limitations; for example, run ulimit -a .

+1
source

Source: https://habr.com/ru/post/896457/


All Articles