Quantcast

STS with Grails 2.0.0.BUILD-SNAPSHOT throws out of memery

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

STS with Grails 2.0.0.BUILD-SNAPSHOT throws out of memery

fiallega
I have STS 2.7.0 intalled with
grails-2.0.0.BUILD-SNAPSHOT 
When  I try to create a projects it hangs and finally gives me  an out of memory exception


!ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:24:07.468
!MESSAGE An internal error occurred during: "Debug Event Dispatch".
!STACK 0
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 com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.getOutput(SynchLaunch.java:339)
        at com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.handleTerminate(SynchLaunch.java:305)
        at com.springsource.sts.grails.core.launch.AbstractLaunchProcessListener.handleDebugEvents(AbstractLaunchProcessListener.java:57)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1089)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1123)
        at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:390)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:24:07.468
!MESSAGE Problem executing grails command
!STACK 0
java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:2882)
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
        at java.lang.StringBuilder.append(StringBuilder.java:119)
        at com.springsource.sts.grails.core.launch.SynchLaunch$ResultFromTerminatedLaunch.getErrorMessage(SynchLaunch.java:242)
        at com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getException(SynchLaunch.java:135)
        at com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getCoreException(SynchLaunch.java:149)
        at com.springsource.sts.grails.core.launch.SynchLaunch.synchExec(SynchLaunch.java:48)
        at com.springsource.sts.grails.commands.GrailsExecutor.synchExec(GrailsExecutor.java:107)
        at com.springsource.sts.grails.commands.GrailsCommand.synchExec(GrailsCommand.java:129)
        at com.springsource.sts.grails.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:329)
        at com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:240)
        at com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:306)
        at com.springsource.sts.grails.ui.internal.wizard.ANewGrailsProjectWizard$1.run(ANewGrailsProjectWizard.java:186)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:25:52.077
!MESSAGE An internal error occurred during: "Debug Event Dispatch".
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:25:52.093
!MESSAGE Problem executing grails command
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!SESSION 2011-07-06 16:13:38.849 -----------------------------------------------
eclipse.buildId=2.6.1.201105041000-RELEASE
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product com.springsource.sts.ide
Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide


My heap configuration is as follows:
-vm
c:\Java\jdk1.6.0_20\bin
--launcher.XXMaxPermSize
512M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx768m
-XX:MaxPermSize=512m



How do we run grails 2 in STS ?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: STS with Grails 2.0.0.BUILD-SNAPSHOT throws out of memery

Andy Clement
Hi,

We have done very limited testing of grails 2.0 builds with STS, the
only build beyond 1.3.7 we have done any thorough testing with being
1.4.M1.

Please raise a jira in
https://issuetracker.springsource.com/browse/STS, but really we will
only claim to support 2.0.M1 with STS 2.8.0.M1 (if that Grails 2.0
milestone comes out ahead of STS 2.8.0.M1).

cheers
Andy

On 6 July 2011 13:47, fiallega <[hidden email]> wrote:

> I have STS 2.7.0 intalled with
> http://hudson.grails.org/job/grails_core_1.4.x/lastSuccessfulBuild/artifact/build/distributions/grails-2.0.0.BUILD-SNAPSHOT.zip
> grails-2.0.0.BUILD-SNAPSHOT
> When  I try to create a projects it hangs and finally gives me  an out of
> memory exception
>
>
> !ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:24:07.468
> !MESSAGE An internal error occurred during: "Debug Event Dispatch".
> !STACK 0
> 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
> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.getOutput(SynchLaunch.java:339)
>        at
> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.handleTerminate(SynchLaunch.java:305)
>        at
> com.springsource.sts.grails.core.launch.AbstractLaunchProcessListener.handleDebugEvents(AbstractLaunchProcessListener.java:57)
>        at
> org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1089)
>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>        at
> org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1123)
>        at
> org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:390)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> !ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:24:07.468
> !MESSAGE Problem executing grails command
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
>        at java.util.Arrays.copyOf(Arrays.java:2882)
>        at
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
>        at java.lang.StringBuilder.append(StringBuilder.java:119)
>        at
> com.springsource.sts.grails.core.launch.SynchLaunch$ResultFromTerminatedLaunch.getErrorMessage(SynchLaunch.java:242)
>        at
> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getException(SynchLaunch.java:135)
>        at
> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getCoreException(SynchLaunch.java:149)
>        at
> com.springsource.sts.grails.core.launch.SynchLaunch.synchExec(SynchLaunch.java:48)
>        at
> com.springsource.sts.grails.commands.GrailsExecutor.synchExec(GrailsExecutor.java:107)
>        at
> com.springsource.sts.grails.commands.GrailsCommand.synchExec(GrailsCommand.java:129)
>        at
> com.springsource.sts.grails.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:329)
>        at
> com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:240)
>        at
> com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:306)
>        at
> com.springsource.sts.grails.ui.internal.wizard.ANewGrailsProjectWizard$1.run(ANewGrailsProjectWizard.java:186)
>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>
> !ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:25:52.077
> !MESSAGE An internal error occurred during: "Debug Event Dispatch".
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
>
> !ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:25:52.093
> !MESSAGE Problem executing grails command
> !STACK 0
> java.lang.OutOfMemoryError: Java heap space
>
> !SESSION 2011-07-06 16:13:38.849
> -----------------------------------------------
> eclipse.buildId=2.6.1.201105041000-RELEASE
> java.version=1.6.0_20
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments:  -product com.springsource.sts.ide
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product
> com.springsource.sts.ide
>
>
> My heap configuration is as follows:
> -vm
> c:\Java\jdk1.6.0_20\bin
> --launcher.XXMaxPermSize
> 512M
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms512m
> -Xmx768m
> -XX:MaxPermSize=512m
>
>
>
> How do we run grails 2 in STS ?
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/STS-with-Grails-2-0-0-BUILD-SNAPSHOT-throws-out-of-memery-tp3649952p3649952.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: STS with Grails 2.0.0.BUILD-SNAPSHOT throws out of memery

fiallega
OK, thanks that is what I needed to know.
I thought that since 2.0 was presented as a renaming of 1.4, that it would still load correctly in STS 2.7.0 the same way that 1.4 does, but I am sure there is a lot more going on.
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: STS with Grails 2.0.0.BUILD-SNAPSHOT throws out of memery

Kris De Volder-2
In reply to this post by Andy Clement
Just FYI,

Since Grails 1.4.M! changes have been quite drastic. I've already done
some work on getting STS working with 2.0, but all of this work is ia
non-mainstream branch, since if I put in those changes, STS wouldn't
even work with 1.4.M1.

We won't be releasing any fixes for 2.0 related issues into STS master
until there is some kind of an officially released 2.0 milestone for
Grails.

But please, do raise Jira for any problems you experience.

As to your current problem, it could be that Grails 2.0 generates so
much more verbose output that is causing the memory problem here. Our
Grails command execution engine is keeping that output... but perhaps
it is generally a good idea to put bounds on how much of it we
actually keep anyway. This needn't be considered as a 2.0 specific
problem/fix. So its something I'd probably consider fixing immediately
in the STS master branch.

Note: We keep this output for diagnostic reasons. When Grails commands
fail, without seeing the output of the command, its is rather hard to
figure out why the command failed.

Keeping this output hasn't been a problem... until now... but Grails
2.0 is generating a lot of additional / repeated output. (I think this
is something Graeme intends to fix before final release).

Kris

On Wed, Jul 6, 2011 at 4:11 PM, Andy Clement <[hidden email]> wrote:

> Hi,
>
> We have done very limited testing of grails 2.0 builds with STS, the
> only build beyond 1.3.7 we have done any thorough testing with being
> 1.4.M1.
>
> Please raise a jira in
> https://issuetracker.springsource.com/browse/STS, but really we will
> only claim to support 2.0.M1 with STS 2.8.0.M1 (if that Grails 2.0
> milestone comes out ahead of STS 2.8.0.M1).
>
> cheers
> Andy
>
> On 6 July 2011 13:47, fiallega <[hidden email]> wrote:
>> I have STS 2.7.0 intalled with
>> http://hudson.grails.org/job/grails_core_1.4.x/lastSuccessfulBuild/artifact/build/distributions/grails-2.0.0.BUILD-SNAPSHOT.zip
>> grails-2.0.0.BUILD-SNAPSHOT
>> When  I try to create a projects it hangs and finally gives me  an out of
>> memory exception
>>
>>
>> !ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:24:07.468
>> !MESSAGE An internal error occurred during: "Debug Event Dispatch".
>> !STACK 0
>> 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
>> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.getOutput(SynchLaunch.java:339)
>>        at
>> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchListener.handleTerminate(SynchLaunch.java:305)
>>        at
>> com.springsource.sts.grails.core.launch.AbstractLaunchProcessListener.handleDebugEvents(AbstractLaunchProcessListener.java:57)
>>        at
>> org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1089)
>>        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>>        at
>> org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1123)
>>        at
>> org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:390)
>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>> !ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:24:07.468
>> !MESSAGE Problem executing grails command
>> !STACK 0
>> java.lang.OutOfMemoryError: Java heap space
>>        at java.util.Arrays.copyOf(Arrays.java:2882)
>>        at
>> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>>        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
>>        at java.lang.StringBuilder.append(StringBuilder.java:119)
>>        at
>> com.springsource.sts.grails.core.launch.SynchLaunch$ResultFromTerminatedLaunch.getErrorMessage(SynchLaunch.java:242)
>>        at
>> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getException(SynchLaunch.java:135)
>>        at
>> com.springsource.sts.grails.core.launch.SynchLaunch$LaunchResult.getCoreException(SynchLaunch.java:149)
>>        at
>> com.springsource.sts.grails.core.launch.SynchLaunch.synchExec(SynchLaunch.java:48)
>>        at
>> com.springsource.sts.grails.commands.GrailsExecutor.synchExec(GrailsExecutor.java:107)
>>        at
>> com.springsource.sts.grails.commands.GrailsCommand.synchExec(GrailsCommand.java:129)
>>        at
>> com.springsource.sts.grails.commands.GrailsCommandUtils.refreshDependencies(GrailsCommandUtils.java:329)
>>        at
>> com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:240)
>>        at
>> com.springsource.sts.grails.commands.GrailsCommandUtils.eclipsifyProject(GrailsCommandUtils.java:306)
>>        at
>> com.springsource.sts.grails.ui.internal.wizard.ANewGrailsProjectWizard$1.run(ANewGrailsProjectWizard.java:186)
>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
>>
>> !ENTRY org.eclipse.core.jobs 4 2 2011-07-06 16:25:52.077
>> !MESSAGE An internal error occurred during: "Debug Event Dispatch".
>> !STACK 0
>> java.lang.OutOfMemoryError: Java heap space
>>
>> !ENTRY com.springsource.sts.grails.core 4 0 2011-07-06 16:25:52.093
>> !MESSAGE Problem executing grails command
>> !STACK 0
>> java.lang.OutOfMemoryError: Java heap space
>>
>> !SESSION 2011-07-06 16:13:38.849
>> -----------------------------------------------
>> eclipse.buildId=2.6.1.201105041000-RELEASE
>> java.version=1.6.0_20
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
>> Framework arguments:  -product com.springsource.sts.ide
>> Command-line arguments:  -os win32 -ws win32 -arch x86 -product
>> com.springsource.sts.ide
>>
>>
>> My heap configuration is as follows:
>> -vm
>> c:\Java\jdk1.6.0_20\bin
>> --launcher.XXMaxPermSize
>> 512M
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.5
>> -Xms512m
>> -Xmx768m
>> -XX:MaxPermSize=512m
>>
>>
>>
>> How do we run grails 2 in STS ?
>>
>>
>>
>> --
>> View this message in context: http://grails.1312388.n4.nabble.com/STS-with-Grails-2-0-0-BUILD-SNAPSHOT-throws-out-of-memery-tp3649952p3649952.html
>> Sent from the Grails - user mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...