Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
loachman wrote:I have all of the sudden out of the blue started getting memory errors on every project old and new.
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)
Anyway I can fix this in the GWT Designer? And what would all the sudden start causing errors like that I wonder?
loachman wrote:Maybe I spoke too soon.
I am using the beta release.
[cut]
I put the following into the eclipse.ini my computer has 512MB of ram (well this particular box anyways)
--launcher.XXMaxPermSize
512m
-vmargs
-Xms40m
-Xmx512m
loachman wrote:Hi,
Using the settings you suggested. The heap status showed 40 of 256 when trying to parse and run the application.
loachman wrote:I am using java 1.5.0_16 as my jdk, wonder if I should try a different one, or try eclipse 3.3.x again maybe.
Konstantin.Scheglov wrote:loachman wrote:Maybe I spoke too soon.
I am using the beta release.
[cut]
I put the following into the eclipse.ini my computer has 512MB of ram (well this particular box anyways)
--launcher.XXMaxPermSize
512m
-vmargs
-Xms40m
-Xmx512m
Can you check that your Eclipse/JVM is really configured for enough memory?
Turn ON "Show heap status" in Window | Preferences | General and check max memory limit, also look how it is changed during parsing.
I use following JVM args "-XX:MaxPermSize=128m -Xms256m -Xmx256m" and this is more than enough to open simple GWT module (but with EXT GWT library attached, so it is also compiled).
eduxativa wrote:i don't know to check max memory limit, how i can do it please?
Eric Clayberg wrote:eduxativa wrote:i don't know to check max memory limit, how i can do it please?
The max memory limit used by Eclipse is whatever you set it to in the Eclipse startup parameters (typically set in the eclipse.ini file).
-startup
plugins\org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
--launcher.library
plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.100.v20080509-1800
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms256m
-Xmx256m
[ERROR] Failure to load module 'com.mycompany.project.ImageViewer'
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.jdt.internal.compiler.Compiler.handleInternalException(Compiler.java:459)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:275)
at com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:194)
at com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:72)
at com.google.gwt.dev.cfg.ModuleDef.updateTypeOracle(ModuleDef.java:477)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:324)
at com.google.gwt.dev.GWTShell$BrowserWidgetHostImpl.createModuleSpaceHost(GWTShell.java:253)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:67)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:128)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
[ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M ...)
Users browsing this forum: No registered users and 3 guests