Hi Matthew,
No actually you have to inject the -Xms and -Xmx params to the java process
that is being started in your os.
if you have used the scripts in the bin directory of the Axis2 binary
distribution you can edit and include these, in the final java commad where
it start the java process (Ex: codegeneration with wsdl2java ) or if you are
using the IDE to run axis2 there is some file based configuration available
( For example, eclipse has a file called eclipse.ini in the root ditrectory
that you can set this Ex : -Xms128m -Xmx512m)

Thanks
Lahiru


On 10/16/07, Matthew Fadoul <[EMAIL PROTECTED]> wrote:
>
>  Hi all,
>
>
>
> I've got an app that is making the JVM run out of heap.  I'd like to
> adjust the heap size.  I've read about the "-Xmx" option for running java on
> the command line.  Unfortunately, I'm just a lowly C++ programmer who's
> still trying to find his way around Java, so I'm scratching my head trying
> to figure out how that translates into adjusting my JVM…maybe there's a
> secret batch file or configuration window where I can adjust the value?
>
>
>
> For the context, my system is:
>
> * WindowsXP Pro.
>
> * Java EE 5 SDK
>
> * Apache Tomcat
>
> * Apache Axis2
>
>
>
> Here is the actual error reported by Axis2:
>
>
>
> Error: java.lang.OutOfMemoryError: Java heap space at 
> java.util.Vector.(Unknown
> Source) at java.util.Vector.(Unknown Source) at java.util.Vector.(Unknown
> Source) at org.apache.ws.commons.schema.XmlSchemaObjectCollection.(
> XmlSchemaObjectCollection.java:37) at
> org.apache.ws.commons.schema.XmlSchemaSimpleTypeRestriction.(
> XmlSchemaSimpleTypeRestriction.java:36) at
> org.apache.ws.commons.schema.SchemaBuilder.handleSimpleType(
> SchemaBuilder.java:354) at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(
> SchemaBuilder.java:152) at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82) at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(
> XmlSchemaCollection.java:359) at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(
> XmlSchemaCollection.java:304) at
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(
> SchemaBuilder.java:1884) at
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(
> SchemaBuilder.java:1902) at
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
> at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(
> SchemaBuilder.java:175) at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(
> XmlSchemaCollection.java:347) at
> org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(
> WSDLToAxisServiceBuilder.java:140) at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements
> (WSDL11ToAxisServiceBuilder.java:2186) at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(
> WSDL11ToAxisServiceBuilder.java:306) at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(
> WSDL11ToAxisServiceBuilder.java:297) at
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(
> WSDL11ToAxisServiceBuilder.java:265) at
> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices
> (WSDL11ToAllAxisServicesBuilder.java:109) at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(
> ArchiveReader.java:230) at
> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(
> ArchiveReader.java:332) at
> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:64)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(
> DeploymentFileData.java:137) at
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(
> DeploymentEngine.java:571) at
> org.apache.axis2.deployment.repository.util.WSInfoList.update(
> WSInfoList.java:141) at
> org.apache.axis2.deployment.RepositoryListener.update(
> RepositoryListener.java:318) at
> org.apache.axis2.deployment.RepositoryListener.checkServices(
> RepositoryListener.java:220) at
> org.apache.axis2.deployment.DeploymentEngine.loadServices(
> DeploymentEngine.java:118) at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
> WarBasedAxisConfigurator.java:272) at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:78)
>
>
>
> Any help would be greatly appreciated!
>
>
>
> Matt
>



-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F

Reply via email to