Java Heap Error

Hi Kilian

When i try to save the workflow i get java heap error. I have also changed the following in Knime Configuration

-startup

plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-vmargs
-XX:MaxPermSize=2048m
-server
-Dsun.java2d.d3d=false
-Dosgi.classloader.lock=classname
-XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
-Dknime.enable.fastload=true
-Xmx2g

Even after changing the settings i face the same issue. Please guide me with a turnaround.

 

Thanks

S Sathish

 

Hi,

XX:MaxPermSize shouldn't be set that high. Set it to 256m (permanent generation), thats enough. The -Xmx2G setting (heap) is fine.

More detailed explanation:
The problem is, that the PermGenSpace is part of the heap (the permanent generation). If you assign 2048m (=2G) to the MaxPermSize then it takes the complete size of the heap (which is defined by -Xmx2G) and KNIME has no chance to allocate any memory in the heap.

I hope this helps.

Christian