Thursday, September 22, 2016

How Do I Change Memory Settings For Jack?

I am trying to compile Cyanogenmod 13 (for Galaxy Nexus) but the new Jack server won't start.

I get as far as this then it hangs and eventually fails.
Code:

Launching background server java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar /home/buildbot/android/system/out/host/linux-x86/framework/jack-launcher.jar -cp /home/buildbot/android/system/out/host/linux-x86/framework/jack.jar com.android.jack.server.JackSimpleServer
The failure message is
Code:

/home/buildbot/android/system/out/host/linux-x86/bin/jack: line 131:  9050 Killed                  $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
ERROR: Cannot launch Jack server
make: *** [/home/buildbot/android/system/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/with-local/classes.dex] Error 41
make: Leaving directory `/home/buildbot/android/system'

#### make failed to build some targets (11:27 (mm:ss)) ####

The ~/.jack file has 777
Code:

buildbot@buildenv ~/android/system$ ls -l ~/.jack
-rwxrwxrwx 1 buildbot buildbot 283 Sep 22 03:19 /home/buildbot/.jack

2.5GB seems quite a large minimum heap and I only have 3GB assigned to this VM.

Before running brunch I did
Code:

export DEFAULT_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -Xms1024m -XX:+TieredCompilation "
but as you can see from above that had no effect.

How do I change the memory settings (Xms and Xmx)?


from xda-developers http://ift.tt/2d8HjtL
via IFTTT

No comments:

Post a Comment