java - Ant script gets killed but not with -verbose -


i running ant script using ant -f build.xml. script supposed compile project , generate jar file seconds after ant starts generate jar file, project gets killed , see message "killed" in console.

if run same command "-verbose" option, build finishes successfully.

any ideas?

thanks.

update: ant output get:

buildfile: build.xml  compile:  jar:   [jar] building jar: /var/lib/hudson/jobs/asproj/workspace/build/asproj.jar killed 

this dmesg output after process killed:

out of memory: kill process 16398 (bash) score 13929 or child killed process 1499 (java) 

so it's memory related, it's not ant jvm.. has bash process.

you can try increasing jvm size using ant_opts -

set ant_opts=-xms500m 

this sets jvm size 500 mb.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -