Tired of your AOSP (Android Open Source Project) 7.X builds failing because JAVA and JAVAC are running out of memory? Well, this is because of the Jack server. If you have less than 16GB of RAM, this is a common issue. Use one of these scripts before compilation and it may save you a few headaches.
git clone git://github.com/mikecriggs/fuckjack.git fuckjack
cd fuckjack
cp fuckjack.sh ~/<YOUR AOSP SOURCE DIRECTORY>
cd <YOUR AOSP SOURCE DIRECTORY>
./fuckjack.sh
cd fuckjack
cp auto-fuckjack.sh ~/<YOUR AOSP SOURCE DIRECTORY>
cd <YOUR AOSP SOURCE DIRECTORY>
./auto-fuckjack.sh