Re: Big XML file indexing out of Memory error

"Marco Ferretti" <[email protected]>
Newsgroups gmane.comp.jakarta.slide.user
Message-ID <[email protected]>
On 1/22/07, Miguel Figueiredo <[email protected]> wrote:
>
>  Hello Aslam,
>
>  Not sure if you already tried this, but set this options to the JVM:
>
>  -Xms128m -Xmx768m -XX:MaxPermSize=256m
>
>  Hope this helps,
>  Miguel Figueiredo
>

Hi,
I can confirm this.
SAXBuilder uses, by default, JAXP which is documented to have this
problem (http://java.sun.com/webservices/docs/1.6/jaxb/ReleaseNotes.html)

in particular :

Compilations of sufficiently large and/or complex schemas may fail
with java.lang.StackOverflowError. Try working around this problem by
increasing the native stack size. For example, to increase the stack
size to 2 megabytes:

    java -Xss2m

If you run out of memory, try increasing the maximum memory size. For
example, to increase the maximum memory to 128 megabytes:

    java -Xmx128m
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.