Computer hanging during compiling process

Search This thread

Nonta72

Senior Member
Mar 27, 2013
1,547
740
Speed Force
I am compiling CyanogenMod 12.1 from source but my computer is hanging. By hanging I meant completely stuck. Even mouse becomes unresponsive. I have to force restart the computer and then initiate the building process every time it happens.

I checked the log and found out it's something related to Java which complaints about low memory. So I have to increase heap size. I followed a tutorial online and have set the heap size to 2048mb but it still hangs.

My PC specs:
i3-M370 @ 2,40GHz
Intel graphics hd
4Gb ram
500gb hdd (100gb for Ubuntu, 80gb of these 100gb is allocated to /user partition and over 40gb is free from the 80gb)
Ubuntu 14.04 LTS
1gb swap partition

Any help is welcome...

Update:
I upgraded RAM to 6GB and CPU to Core i5-480M!
The PC is still hanging !
 
Last edited:

Avinash2608

Member
May 30, 2020
6
0
Good that u upgraded your Ram to 6gb but it is not quite enough.. U need atleast 16gb for a good successful Build, that's the first issue. If u upgrade to 16gb consider increasing swap size, i actually us 30 gb so it can be used efficiently. Good Luck!1