Ant script is killed, but not with -verbose

I am running ant script using ant -f build.xml . This script should compile my project and create a jar file, but a few seconds after ant starts generating the jar file, the project will be killed, and all I see is the "Killed" message in the console.

If I run the same command, but with the -verbose option, the build succeeds.

Any ideas?

Thanks.

Update : This is the ant output I get:

 Buildfile: build.xml compile: jar: [jar] Building jar: /var/lib/hudson/jobs/asproj/workspace/build/asproj.jar Killed 

This is the result of dmesg, which I get after the process has been killed:

 Out of memory: kill process 16398 (bash) score 13929 or a child Killed process 1499 (java) 

So maybe it is memory related, but it is not ant jvm .. it is somehow related to the bash process.

+4
source share
1 answer

You can increase the size of the JVM with ANT_OPTS -

 set ANT_OPTS=-Xms500m 

This sets the JVM size to 500 MB.

0
source

All Articles