MATLAB: Does MATLAB crash when using xmlread with large files

crashfilesjavalargeMATLABmemoryxmlread

When XMLREAD is used to parse through large files (~70MB) MATLAB crashes.
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (0xe06d7363), pid=3700, tid=3660
#
# JRE version: 6.0_17-b04
# Java VM: Java HotSpot(TM) Client VM (14.3-b01 mixed mode windows-x86 )
# Problematic frame:
# C [kernel32.dll+0x12afb]
#
# If you would like to submit a bug report, please visit:
# <http://java.sun.com/webapps/bugreport/crash.jsp>
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Best Answer

One of the reasons for XMLREAD to fail when reading large files could be the lack of enough Java Heap Memory. The amount of Java Heap memory available to MATLAB can be increased and this can be done in the following way, in the MATLAB Desktop Window:
For versions of MATLAB R2010a and above use -
File -> Preferences -> General -> Java Heap Memory.
Move the slider to a desirable location.
For versions of MATLAB prior to R2010a, refer to the link below-
<http://www.mathworks.com/support/solutions/en/data/1-18I2C>