This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | out of memory with Linux Kernel in 2Gb heap | ||
---|---|---|---|
Product: | cnd | Reporter: | wbrana <wbrana> |
Component: | -- Other -- | Assignee: | Egor Ushakov <gorrus> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 123872 |
Description
wbrana
2012-07-06 09:44:41 UTC
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 http://bits.netbeans.org/download/trunk/nightly/latest/ 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. http://hg.netbeans.org/cnd-main/rev/fa8418e1f9e1 http://hg.netbeans.org/cnd-main/rev/27d25b183f19 http://hg.netbeans.org/cnd-main/rev/bbfdd169f462 http://hg.netbeans.org/cnd-main/rev/07187e995665 http://hg.netbeans.org/cnd-main/rev/c6c81c1f6aca http://hg.netbeans.org/cnd-main/rev/04ad49cd2587 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. Thanks! Now with "-J-XX:SoftRefLRUPolicyMSPerMB=10" flag it takes 1.3Gb for complete source! And 1.5 without any additional flags. Thanks. So, without any extra flags it's on par with Qt Creator now. Great job done! |