我运行以下命令:
inst2xsd -design ss -simple-content-types smart -enumerations 10 foo.xml
其中
foo.xml
是500m
文件。我得到一个OutOfMemoryError: heapspace
。如何在命令行上将正确的堆空间参数传递给inst2xsd
进程?以下失败:
inst2xsd -Xmx1024m -design ss -simple-content-types smart -enumerations 10 foo.xml
以及:
inst2xsd -design ss -simple-content-types smart -enumerations 10 foo.xml -Xmx1024m
最佳答案
如果查看inst2xsd
文件夹中的xmlbeans-<version>/bin
脚本,您会注意到该脚本不支持该脚本。
java -classpath "$cp" org.apache.xmlbeans.impl.inst2xsd.Inst2Xsd "$@"
因此,您将不得不手动更改脚本。
关于java - XMLBeans inst2xsd内存不足错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16895974/