Announcement Announcement Module
Collapse
No announcement yet.
Out of mem on Bundle Repository Index Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Out of mem on Bundle Repository Index

    Am stuck on the following error and sense that, based on perusal of a few sites, that I am not alone:
    An internal error occurred during: "Initializing SpringSource Bundle Repository index".
    Java heap space
    Here is the originating exception
    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Unknown Source)
    at java.lang.String.<init>(Unknown Source)
    at org.antlr.runtime.ANTLRStringStream.substring(ANTL RStringStream.java:203)
    at org.antlr.runtime.CommonToken.getText(CommonToken. java:95)
    at org.antlr.runtime.tree.CommonTree.getText(CommonTr ee.java:76)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.string(JsonFormatTreeWalker.java:582)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.literal(JsonFormatTreeWalker.java:401)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:336)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.maplet(JsonFormatTreeWalker.java:251)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.map(JsonFormatTreeWalker.java:190)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:314)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.list(JsonFormatTreeWalker.java:498)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:325)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.maplet(JsonFormatTreeWalker.java:251)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.map(JsonFormatTreeWalker.java:190)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:314)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.list(JsonFormatTreeWalker.java:498)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:325)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.maplet(JsonFormatTreeWalker.java:251)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.map(JsonFormatTreeWalker.java:190)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.value(JsonFormatTreeWalker.java:314)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.maplet(JsonFormatTreeWalker.java:251)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.map(JsonFormatTreeWalker.java:190)
    at com.springsource.json.parser.generated.JsonFormatT reeWalker.objects(JsonFormatTreeWalker.java:119)
    at com.springsource.json.parser.AntlrJSONParser.parse Internal(AntlrJSONParser.java:178)
    at com.springsource.json.parser.AntlrJSONParser.parse (AntlrJSONParser.java:89)
    at com.springsource.json.parser.AntlrJSONParser.parse (AntlrJSONParser.java:63)
    at com.springsource.server.ide.runtime.internal.core. provisioning.JsonArtefactRepositoryLoader.loadArte factRepository(JsonArtefactRepositoryLoader.java:5 4)
    at com.springsource.server.ide.runtime.core.provision ing.ArtefactRepositoryManager$ArtefactRepositorySt artJob.run(ArtefactRepositoryManager.java:545)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.j ava:55)

    I'm currently running Galileo Eclipse (fresh install as of yesterday) and Spring 2.2.6. Here are the Spring components showing as installed (from inside Eclipse):
    Spring IDE AJDT Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.ajdt.feature.sourc e.feature.group
    Spring IDE AJDT Integration (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.ajdt.feature.featu re.group
    Spring IDE AOP Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.aop.feature.source .feature.group
    Spring IDE AOP Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.aop.feature.featur e.group
    Spring IDE Autowire Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.autowire.feature.f eature.group
    Spring IDE Autowire Extension Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.autowire.feature.s ource.feature.group
    Spring IDE Batch Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.batch.feature.sour ce.feature.group
    Spring IDE Batch Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.batch.feature.feat ure.group
    Spring IDE Core (required) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.feature.feature.gr oup
    Spring IDE Core Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.feature.source.fea ture.group
    Spring IDE Mylyn Integration (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.mylyn.feature.feat ure.group
    Spring IDE Mylyn Integration Sources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.mylyn.feature.sour ce.feature.group
    Spring IDE OSGi Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.osgi.feature.featu re.group
    Spring IDE OSGi Extension Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.osgi.feature.sourc e.feature.group
    Spring IDE Security Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.security.feature.f eature.group
    Spring IDE Security Extension Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.security.feature.s ource.feature.group
    Spring IDE Web Flow Extension (optional) 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.webflow.feature.fe ature.group
    Spring IDE Web Flow Extension Developer Resources 2.2.6.200908072100-CI-R3370-B426 org.springframework.ide.eclipse.webflow.feature.so urce.feature.group
    SpringSource dm Server Tools (required) 2.0.0.200908050117-CI-R277-B96 com.springsource.server.ide.feature.feature.group
    SpringSource dm Server Tools Developer Resources 2.0.0.200908050117-CI-R277-B96 com.springsource.server.ide.feature.source.feature .group

    Guess I have two questions:
    1.Does anyone have a fix for this problem given my current setup?
    2.If there is no fix for my current setup, are there specific versions for both Eclipse and Spring which provide a proven, production quality dev environment?
    Am starting a new project and have some flexibility in the frameworks and tools I opt to use. But, as is always the case, I've got to get started yesterday.

    Thanks in advance for any constructive suggestions.

  • #2
    Hi,

    please add the following options to your eclipse.ini (after -vmargs):

    Code:
    -vmargs
    -XX:MaxPermSize=256m
    -Xms40m
    -Xmx768m
    That should fix this problem.

    HTH

    Christian

    Comment


    • #3
      Thanks for the quick reply ...

      And the suggestion worked. Embarrassingly, I had reset these vm args - or so I thought. But had set the XXPermSize for the launcher - but not the vm. Before you close the thread, please double check that my eclipse.ini is now correct:

      -startup
      plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
      --launcher.library
      plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.2 00.v20090519
      -product
      org.eclipse.epp.package.jee.product
      -showsplash
      org.eclipse.platform
      --launcher.XXMaxPermSize
      512m
      -vmpathC:\Java_Libraries\jdk
      -vmargs
      -XX:MaxPermSize=256m
      -Xms40m
      -Xmx768m

      I'm running on a machine with 4G memory. Would you recommend other values fo r-Xms an d-Xmx for my configuration?

      Again, thanks for the prompt (and informative) response. Feel free to pass my compliment "up the chain" at SpringSource.

      Al

      Comment


      • #4
        Al,

        thanks for the kind words. This kind of feedback is what keeps the team going ....

        I think there is one small hick up in your eclipse.ini. To specify the JDK you need to use the following settings:

        Code:
        -startup
        plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
        --launcher.library
        plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.2 00.v20090519
        -product
        org.eclipse.epp.package.jee.product
        -showsplash
        org.eclipse.platform
        --launcher.XXMaxPermSize
        512m
        -vm
        C:\Java_Libraries\jdk
        -vmargs
        -XX:MaxPermSize=256m
        -Xms40m
        -Xmx768m
        Please note the corrected -vm option (removal of superfluous 'path' and addition of line break).

        HTH

        Christian

        Comment


        • #5
          Now seeing launcher problem

          Christian:

          Now seeing error that may not be in you domain of responsibity, but will appreciate if you can provide a quick fix. When I use the .ini you sent, I now see a small dialog box with the message:
          The Eclipse executable launcher was unable to locate its companion shared library.
          I've checked the location of the two references to the equinox files (plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar and plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.2 00.v20090519) and they are in the indicated location.

          Yikes! Need to have page designs to client on Wed. Want to do them inside Eclipse.

          Thanks in advance - once again.

          Al

          Comment


          • #6
            Al,

            that is strange as you eclipse.ini seems to be correct. Did you rename the eclipse.exe file to something else eventually?

            If that is not the case please send me your eclipse.ini with a note on what Eclipse download (3.4 or 3.5, JEE package?) you are using to christian DOT dupuis AT springsource DOT com. And I'll have a look.

            Christian

            Comment


            • #7
              About ready for &quot;resolved&quot;

              Christian:

              Had no trouble getting up and running with the STS download. I'm off and running - planning to use Spring Web Flow (rather than Struts or other frameworks trying to represent web application flow).

              Guess my only concern in then near or medium term is whether I will wake up one day and owe you folks $ for the environment in which I'm working. Today's announcement re acquisition by VMWare of SpringSource probably elevates this concern. Your CEO's announcement mentions continued commitment to Open Source technologies - but this would not preclude charging for your "value add" to the Eclipse environment, would it?

              But technically, I'm a happy camper. And, as I've mentioned several times, you have been quick to respond and provided very useful advice. Thanks.

              Al

              Comment

              Working...
              X