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: | NetBeans requires about twice the memory as Eclipse | ||
---|---|---|---|
Product: | ide | Reporter: | gmtschlr <gmtschlr> |
Component: | Performance | Assignee: | Pavel Flaska <pflaska> |
Status: | CLOSED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
gmtschlr
2008-07-03 00:09:23 UTC
Please, provide more information about your setup. -- Do you use network disks? Are the files located in different directories or in one directory? Did you try 6.5? Reporter didn't provide any additional data, moreover, the code changed a lot, closing as WORKSFORME. Supplied such additional information as I could to pflaska directly by email relative to the 6.5 version. After receiving the closure notice with an indication that it probably works on 6.7, I tried again on the 6.7 RC2 version, with mostly the same results. (The only difference is that the compilation stoped accumulating time after 43 minutes of CPU time. The Eclipse complation takes less than 10 minutes and 768MB) That is, despite the referenced numerous changes, the problem persists. I can supply the source files, but I am VERY reluctant to, since they are highly proprietary. Gene: "I am using a local disk. The files are in a directory tree, with about a third (~2800 files) in the top level, and the remainder in two directories beneath it, split equally. Most of the program code is in the files in the top directory; the subdirectories contain, respectively, interfaces and some small table objects. A typical file in the top directory would implement one class and would have 500-700 lines." Gene: "Correction to my previous. The set of files where there were 2800 files in the top directory will actually compile. We added some new classes to the product, resulting in a file set with about 3400 files in the top directory and each of the sub directories. This is the file set that will not compile in netbeans. (BTW, have not tried this on 6.5, so I do not know if it is still a problem there.)" I tried the 6.7 RC2 compiler. There still seems to be a problem (unless there is some sort of tweak I can make somewhere to expand the java heap). init: deps-jar: Compiling 10104 source files to C:\Projects\.......\build\classes The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385) at com.sun.tools.javac.code.Scope.enter(Scope.java:196) at com.sun.tools.javac.code.Scope.enter(Scope.java:183) at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132) at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:538) at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399) at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) at com.sun.tools.javac.comp.Enter.main(Enter.java:429) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) at org.netbeans.modules.java.source.ant.JavacTask.execute(JavacTask.java:120) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) C:\Projects\ARM42L\nbproject\build-impl.xml:377: The following error occurred while executing this line: C:\Projects\ARM42L\nbproject\build-impl.xml:186: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 2 minutes 57 seconds) Gene: "Correction to my previous. The set of files where there were 2800 files in the top directory will actually compile. We added some new classes to the product, resulting in a file set with about 3400 files in the top directory and each of the sub directories. This is the file set that will not compile in netbeans. (BTW, have not tried this on 6.5, so I do not know if it is still a problem there.)" I tried the 6.7 RC2 compiler. There still seems to be a problem (unless there is some sort of tweak I can make somewhere to expand the java heap). init: deps-jar: Compiling 10104 source files to C:\Projects\.......\build\classes The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385) at com.sun.tools.javac.code.Scope.enter(Scope.java:196) at com.sun.tools.javac.code.Scope.enter(Scope.java:183) at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132) at com.sun.tools.javac.comp.MemberEnter.visitImport(MemberEnter.java:538) at com.sun.tools.javac.tree.JCTree$JCImport.accept(JCTree.java:495) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399) at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:512) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446) at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387) at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:819) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758) at com.sun.tools.javac.comp.Enter.complete(Enter.java:451) at com.sun.tools.javac.comp.Enter.main(Enter.java:429) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) at com.sun.tools.javac.main.Main.compile(Main.java:353) at com.sun.tools.javac.main.Main.compile(Main.java:279) at com.sun.tools.javac.main.Main.compile(Main.java:270) at com.sun.tools.javac.Main.compile(Main.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882) at org.netbeans.modules.java.source.ant.JavacTask.execute(JavacTask.java:120) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) C:\Projects\ARM42L\nbproject\build-impl.xml:377: The following error occurred while executing this line: C:\Projects\ARM42L\nbproject\build-impl.xml:186: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 2 minutes 57 seconds) Removing incomplete keyword. Gene, if you can provide sources and description how to reproduce (if I understood correctly, compilation and scanning takes ages), it would be fine. There can be many reasons why you get in troubles, e.g. http://www.netbeans.org/issues/show_bug.cgi?id=42683 http://www.netbeans.org/issues/show_bug.cgi?id=134990 Summary (as I understood from previous discussion): You have one huge project with many files in packages (details above). The project is J2SE (!?) type and does not have huge set of dependencies on other projects. Gene, have you chance to try current dev. builds? There are many improvements. We still do not have reproducible use-case. See also issue #171510 (OOME). For the time being, closing as WORKSFORME. Please, reopen, if you are able to reproduce and provide additional data. Thanks. |