1. download and unpack linux kernel source code http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.4.4.tar.xz
2. start NB with -J-Xmx2048m
3. create new project with existing source code
memory usage exceeds 2 GB and out of memory error occurs
2Gb is ok for bzImage, but for modules you'd need another 3Gb.
You could try to create project with "make bzImage".
I tried 32-bit Qt Creator and it needs only 1.5 GB for complete source.
Qt Creator works fine.
I'd like to keep it open. We are actively working on memory footprint reduction and this case is interesting.
I'd appreciate if you try development bits from
and let us know how it works for you.
According to http://en.wikipedia.org/wiki/Java_performance
it isn't possible for Java application to have same memory usage as C++ application.
I tried to write same application in Java and C++ with maximal optimization.
Java version takes 3 times more memory and run 3 times slower than C++ version.
One of reasons of low memory usage of C++ application was using memory mapped files for storing temporary data, which can't be used in Java application because it increased run time to 7 times because Java doesn't support pointers.
Nik, could you, please, check the current memory cunsumption. It should be significantly less
Now with "-J-XX:SoftRefLRUPolicyMSPerMB=10" flag it takes 3Gb for complete source.
Nik, could you, please, check the current memory cunsumption.
Now with "-J-XX:SoftRefLRUPolicyMSPerMB=10" flag it takes 1.3Gb for complete
And 1.5 without any additional flags.
Thanks. So, without any extra flags it's on par with Qt Creator now. Great job done!