users@jaxb.java.net

OutOfMemoryError

From: Marc Dumontier <dumontier_at_mshri.on.ca>
Date: Wed, 26 Feb 2003 11:42:11 -0500

    Hi,

I'm working with a very large set of schemas. In the beta version, i had
to add the -mx800m flag to the java invocation call in xjc.sh and that
solved my problem for compiling the schema. In this version however, I
can't get passed the OutOfMemoryError no matter how much memory i throw
at it. It seems to max out at about 100Mb before dying anyhow.

I'm working on a Redhat 8.0 desktop with 1.2GB of memory.

Any suggestions?




[marc_at_bmbetty2 newdatatool]$ java -mx800m -classpath
/home/marc/jwsdp-1.1/jaxb-1.0/bin:/home/marc/jwsdp-1.1/jaxb-1.0/bin/../../jwsdp-shared/bin
LauncherBootstrap -verbose xjc
-DJAXB_HOME=/home/marc/jwsdp-1.1/jaxb-1.0/bin/../jaxb-1.0
-DJAVA_HOME=/usr/java/j2sdk1.4.1_01 -d test bind.xsd
parsing a schema...
compiling a schema...
java.lang.reflect.InvocationTargetException
        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:324)
        at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.OutOfMemoryError
[marc_at_bmbetty2 newdatatool]$


MD