Error with XPath node

Hi,

I need to extract data from a big XML file (128 Mo).  I’m able to read it with the XML Reader but when I want to extract specific data using the XPath node, I get an error

“ERROR XPath                0:2        Execute failed: java.lang.OutOfMemoryError: Java heap space”.

I tried to play with my Knime.ini file (see below), without success.

-startup

plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417

--launcher.defaultAction

openFile

-vmargs

-server

-Dsun.java2d.d3d=false

-Dosgi.classloader.lock=classname

-XX:+UnlockDiagnosticVMOptions

-XX:+UnsyncloadClass

-Dknime.enable.fastload=true

-XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot

-Xmx3G

-XX:MaxPermSize=341m

-Dorg.eclipse.swt.browser.IEVersion=10001

-Dsun.awt.noerasebackground=true

-Dequinox.statechange.timeout=30000

 

Do you have an idea I can try to get this working?

Thanks,

Cheers,

Cl

Hi Claire,

Fiddling with the -Xmx parameter on knime.ini (as you already did) worked for me in similar situations, but your mileage may vary depending on the available heap space left from these maximum of 3G at the time of the node execution ... Have you tried to read the XML and execute the XPath query on an isolated workflow, without opening anyting else on KNIME (just in order to understand the root cause)? Do you have any chance to increase the configured heap space? 

Best Regards,

--

Jorge

Hi Jorge,

Thanks for your help.  I've been able to read the file with a bigger machine ;-)

Cheers,

Claire