10 Replies Latest reply on Nov 9, 2009 4:13 PM by Nick Boldt

    help! attempting to refactor a method casues OutOfMemory Err

    Elhanan Maayan Novice

      hi... when i try to refactor a method in java i get this exception

      i have eclispe 3.5.1 latest version:
      what can i do to disable it?

      java.lang.OutOfMemoryError: Java heap space
       at java.util.Arrays.copyOfRange(Arrays.java:3209)
       at java.lang.String.<init>(String.java:215)
       at java.lang.StringBuffer.toString(StringBuffer.java:585)
       at org.jboss.tools.common.util.FileUtil.readStream(FileUtil.java:185)
       at org.jboss.tools.common.el.core.refactoring.RefactorSearcher.scan(RefactorSearcher.java:196)
       at org.jboss.tools.common.el.core.refactoring.RefactorSearcher.scan(RefactorSearcher.java:160)
       at org.jboss.tools.common.el.core.refactoring.RefactorSearcher.findELReferences(RefactorSearcher.java:129)
       at org.jboss.tools.common.el.ui.refactoring.RenameMethodParticipant.checkConditions(RenameMethodParticipant.java:67)
       at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.checkFinalConditions(ProcessorBasedRefactoring.java:257)
       at org.eclipse.ltk.core.refactoring.Refactoring.checkAllConditions(Refactoring.java:160)
       at org.eclipse.jdt.internal.ui.refactoring.RefactoringExecutionHelper$Operation.run(RefactoringExecutionHelper.java:80)
       at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
       at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
       at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
       at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
       at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:106)
       at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      


      my config is:
      -startup
      plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
      --launcher.library
      plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
      -product
      org.eclipse.epp.package.jee.product
      --launcher.XXMaxPermSize
      256M
      -showsplash
      org.eclipse.platform
      --launcher.XXMaxPermSize
      256m
      -vm
      c:/Java/jdk1.6.0_16/bin/javaw.exe
      -vmargs
      -Dsun.lang.ClassLoader.allowArraySyntax=true
      -Dosgi.requiredJavaVersion=1.5
      -Xms512m
      -Xmx1024m