System Takes 30 min to build a module, most of the time takes to resolve the dependencies.Is there any way to speed up the resolving the dependencies.
some time build will fail with the below mention exception
The system is out of resources. Consult the following stack trace for details. java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3658)
at java.lang.String.(String.java:201)
at java.lang.String.toLowerCase(String.java:2632)
at java.io.WinNTFileSystem.hashCode(WinNTFileSystem.java:640)
at java.io.File.hashCode(File.java:2132)
at com.sun.tools.javac.file.RegularFileObject.hashCode(RegularFileObject.java:240)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.get(HashMap.java:556)
at com.sun.tools.javac.util.AbstractLog.getSource(AbstractLog.java:64)
at com.sun.tools.javac.util.AbstractLog.useSource(AbstractLog.java:57)
at com.sun.tools.javac.file.RegularFileObject.getCharContent(RegularFileObject.java:115)
at com.sun.tools.javac.file.RegularFileObject.getCharContent(RegularFileObject.java:53)
at com.sun.tools.javac.util.DiagnosticSource.initBuf(DiagnosticSource.java:185)
at com.sun.tools.javac.util.DiagnosticSource.findLine(DiagnosticSource.java:153)
at com.sun.tools.javac.util.DiagnosticSource.getLineNumber(DiagnosticSource.java:77)
at com.sun.tools.javac.util.JCDiagnostic.(JCDiagnostic.java:399)
at com.sun.tools.javac.util.JCDiagnostic$Factory.create(JCDiagnostic.java:238)
at com.sun.tools.javac.util.JCDiagnostic$Factory.create(JCDiagnostic.java:223)
at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.reportMC(Resolve.java:772)
at com.sun.tools.javac.comp.Resolve$4$2.report(Resolve.java:864)
at com.sun.tools.javac.comp.Check.checkType(Check.java:546)
at com.sun.tools.javac.comp.Attr$ResultInfo.check(Attr.java:510)
at com.sun.tools.javac.comp.Resolve$MethodResultInfo.check(Resolve.java:978)
at com.sun.tools.javac.comp.Resolve$4.checkArg(Resolve.java:822)
at com.sun.tools.javac.comp.Resolve$AbstractMethodCheck.argumentsAcceptable(Resolve.java:733)
at com.sun.tools.javac.comp.Resolve$4.argumentsAcceptable(Resolve.java:831)
at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:578)
at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:1418)
at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1597)
at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1668)
at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1641)
at com.sun.tools.javac.comp.Resolve.findFun(Resolve.java:1804) :ascCommon:compileJava FAILED
My System Configuration RAM:4GB Processor Speed:2.66GHz Windows7 32 Bit