3 Replies Latest reply: Aug 8, 2012 9:45 AM by 802559 RSS

    Jdeveloper throwing Out of Heap Space error with SVN

    848151
      Hi,

      I am using Jdeveloper 11.1.1.5, Visual SVN server (installed on my local machine), and Jdev SVN client extension. I created a small project (3 java classes) in Jdev couple of days back and checked it in SVN repository. On opening Jdeveloper now I get the error message pasted below.

      <error>
      Uncaught exception
      java.lang.OutOfMemoryError: Java heap space
      j.util.Arrays.copyOf(Arrays.java:2882)
      j.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
      j.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
      j.lang.StringBuffer.append(StringBuffer.java:320)
      org.tmatesoft.svn.core.SVNErrorMessage.getFullMessage(SVNErrorMessage.java:259)
      org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:58)
      org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory.open(SVNAdminAreaFactory.java:163)
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.doOpen(SVNWCAccess.java:364)
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:272)
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:265)
      org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.open(SVNWCAccess.java:261)
      org.tmatesoft.svn.core.wc.SVNStatusClient.doStatus(SVNStatusClient.java:316)
      org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:296)
      org.tmatesoft.svn.core.javahl.SVNClientImpl.status(SVNClientImpl.java:278)
      org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:480)
      org.tigris.subversion.svnclientadapter.svnkit.SvnKitClientAdapter.getStatus(SvnKitClientAdapter.java:141)
      org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.getStatus(AbstractJhlClientAdapter.java:466)
      o.ji.vcs.svn.SVNURLInfoCacheSimpleStrategy.getURLInfo(SVNURLInfoCacheSimpleStrategy.java:79)
      o.ji.vcs.svn.SVNURLInfoCache.getURL(SVNURLInfoCache.java:79)
      o.ji.vcs.svn.SVNStatusResolver.populateStatuses(SVNStatusResolver.java:96)
      o.ji.vcs.generic.GenericClient$2.getImpl(GenericClient.java:531)
      o.j.vcs.spi.VCSStatusCache.getValuesImpl(VCSStatusCache.java:31)
      o.j.vcs.spi.VCSURLBasedCache.getValues(VCSURLBasedCache.java:107)
      o.j.vcs.spi.VCSStatusCache.get(VCSStatusCache.java:63)
      o.j.vcs.spi.VCSOverlayItemProducer.getOverlayItems(VCSOverlayItemProducer.java:63)
      o.j.vcs.spi.VCSNodeOverlayTracker.getCompositeElementOverlay(VCSNodeOverlayTracker.java:318)
      o.j.vcs.spi.VCSNodeOverlayTracker.getCompositeElementOverlay(VCSNodeOverlayTracker.java:359)
      o.j.vcs.spi.VCSNodeOverlayTracker.getOverlays(VCSNodeOverlayTracker.java:261)
      o.i.explorer.IconOverlayTracker.processPendingNodes(IconOverlayTracker.java:574)
      o.i.explorer.IconOverlayTracker.access$1400(IconOverlayTracker.java:69)
      o.i.explorer.IconOverlayTracker$7.run(IconOverlayTracker.java:487)
      j.util.TimerThread.mainLoop(Timer.java:512)
      </error>

      Jdev also hangs when I click on Versioning. I modified the allocated memory in both jdev.conf and ide.conf. I couldn't go beyond these figues as my jdev ide didnt start with higher allocations

      IDE.CONF
      AddVMOption -Xmx920M
      AddVMOption -Xms512M

      JDEV.CONF
      AddVMOption -XX:MaxPermSize=750M

      My system configuration is
      Windows 7 - 64 bit
      Java - ..\Oracle\Middleware\jdk160_24

      Are there any other parameters I should set? Is the problem due to SVN?
      I'd really appreciate any tips for working around this.

      Thanks and Regards,
      Silky
        • 1. Re: Jdeveloper throwing Out of Heap Space error with SVN
          Timo Hahn
          This depends you your physical memory too:
          I'm running on 8GB Win7-64 and use the parameters

          JDEV.CONF
          AddVMOption -XX:MaxPermSize=256M

          IDE.CONF
          AddVMOption -Xmx768M
          AddVMOption -Xms256M


          Timo
          • 2. Re: Jdeveloper throwing Out of Heap Space error with SVN
            848151
            My system too has 8 GB RAM, but somehow the modified allocations in jdev.config and ide.config isn't helping. I disabled SVN extension, and didn't encounter the error again, which confirms it is an SVN issue. Is there any way we can allocate more heap memory to SVN processes?
            Any clues???

            I think I'll otherwise switch over to other SVN clients like Tortoise and quit using Jdeveloper's extension for Versioning.

            Thanks!

            Edited by: user13380581 on Feb 17, 2012 12:24 AM
            • 3. Re: Jdeveloper throwing Out of Heap Space error with SVN
              802559
              JDeveloper 11.1.1.4(64bit) throws OutOfMemory in o.ji.vcs.svn.SVNURLInfoCacheSimpleStrategy.
              I've 8GB RAM.
              jdev.conf has,
              AddVMOption -XX:MaxPermSize=1024M
              ide.conf has,
              AddVMOption -Xmx640M
              AddVMOption -Xms128M

              Till last week, i could checkout, check in through Subversion connected through JDev. When i disable Subversion, JDev works well.
              I've uninstalled Tortoise SVN client 1.7 as i read in a blog that versioning in JDev does not work properly if we've Tortoise SVN client 1.7.

              I've reinstalled JDev11.1.1.4, but the problem still persists.