You are not logged in.

Unanswered posts

#1 2007-04-16 16:02:04

dlrcs
Member
9 posts

Save failed : Java heap space

Tags: [eclipse]

Bonjour,
Tout d'abord, mes félicitations pour toute votre équipe pour ce produit qui me semble très prometteur.
J'ai un problème qui apparait de temps en temps lorque j'essai de sauvegarder un job design. Un message d'eclipse apparait
"Save failed : Java heap space" .
Il faut que j'arrete et redémarre talend pour ne plus avoir ce pb pendant un certain.
Est ce que vous avez vu ce genre de pb. Il y a t'il un moyen pour paramétrer la mémoire de la machine virtuelle utilisée par talend?
Merci

Offline

#2 2007-05-10 18:23:00

esabot
Talend Team


Re: Save failed : Java heap space

Hi dlrcs,

Many thanks for your supporting message. Much appreciated here.
However, could you please post your question in English from now on?
Obviously your question is related to a memory space issue, linked to Eclipse.
Can you provide us with the version of Talend Open Studio you work on? as well as the JVM version?
Did you update the Eclipse and/or Talend through the automatic update feature?

Thanks again for your understanding.
Elisa


Talend - Global leader in Open Source Integration

Offline

#3 2007-05-11 00:27:15

anhhai
Member
7 posts

Re: Save failed : Java heap space

Hi,
I'm using TOS-Win32-r3065-V2.0.0 . The JVM is 1.5.0_11.
I'm designing jobs that contains lots of components, at least 10 up to 20. 
The designer begin to slow down to load  a job design and frenquently I got this message above.
Please find a sample of the log below:



!ENTRY org.eclipse.ui 4 4 2007-05-11 01:21:43.375
!MESSAGE Save Failed

!ENTRY org.eclipse.ui 2 0 2007-05-11 01:21:43.375
!MESSAGE Save Failed
!STACK 0
java.lang.OutOfMemoryError: Java heap space

!ENTRY org.eclipse.ui 4 4 2007-05-11 01:22:24.750
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2007-05-11 01:22:24.765
!MESSAGE Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: Java heap space)
    at org.eclipse.swt.SWT.error(SWT.java:3374)
    at org.eclipse.swt.SWT.error(SWT.java:3297)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
    at org.eclipse.jface.window.Window.open(Window.java:796)
    at org.eclipse.jface.dialogs.MessageDialog.openError(MessageDialog.java:322)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:263)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
    at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1386)
    at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:2995)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3008)
    at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.talend.rcp.intro.Application.run(Application.java:66)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.lang.OutOfMemoryError: Java heap space

Regards.

Offline

#4 2007-05-11 23:58:17

dlrcs
Member
9 posts

Re: Save failed : Java heap space

Hello,
My TOS version is TOS-Win32-r3065-V2.0.0. My JRE is jdk1.5.0_11.
As for the version of eclipse on which TOS is running I don't know if it is up to date.
But I 've the same log when Eclipse fail to save a job design as that above.
My jobs include often numerous components. 10 to 20 components.
Best Regards.

Offline

#5 2007-05-12 08:52:38

ccarbone
Talend Team


Re: Save failed : Java heap space

anhhai wrote:

Caused by: java.lang.OutOfMemoryError: Java heap space

To launch Talend Open Studio with more memory, it's very easy : create a .bat or .sh and type in the following command :

TalendOpenStudio -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m

I don't know how much RAM you have?  With the above command line, T.O.S. will be allowed to take 512 MB (a good configuration for a machine with 1024MB of ram).

If your station has only 512MB, you should use

TalendOpenStudio -vmargs -Xms256m -Xmx256m -XX:PermSize=64m -XX:MaxPermSize=64m

More information at http://www.eclipsezone.com/eclipse/forums/t61618.html


Regards,
Cedric Carbone
Talend CTO
https://twitter.com/carbone

Offline

#6 2007-07-05 15:01:52

mhelleboid
Member
85 posts

Re: Save failed : Java heap space

From version 2.1.0RC1 you can tune the memory allocation for your JVM, please have a look at http://talendforge.org/wiki/doku.php?id … tion_guide

Offline

#7 2010-12-17 06:13:40

Rahul Sharma
Guest

Re: Save failed : Java heap space

Hey Great guys....You helped me in solving java heap space error. Thanks

#8 2011-03-17 02:52:04

talendtester
Member
159 posts

Re: Save failed : Java heap space

I think I should be able to increase my memory usage limit.

What settings should I use for a server with the following specs?
RAM: 7.81 GB (7.56 usable)
System type: 64 bit


My current settings are:
-vmargs
-Xms64m
-Xmx1536m
-XX:MaxPermSize=256m

Offline

Board footer