Hi, I have got a problem with the memory-usage of Axis2. Every time I execute my Service the Memory-usage rises about 5 MB. And after 35 executions I get this error:
2007-01-05 10:27:31,051 ERROR org.apache.axis2.transport.http.AxisServlet - java.lang.OutOfMemoryError: unable to create new native thread It seems to me, that axis2 is not setting any memory free after a service was executed. Or is that in my responsibility to do? I am using Apache Tomcat/6.0.2 with Axis2 1.1(Release) and I attached all the files of my Webservice. Thanks for your help! Benjamin
HomeControlServiceMessageReceiverInOut.java
Description: Binary data
HomeControlService.java
Description: Binary data
<wsdl:definitions xmlns:axis2="http://homeControl.homeNetworkServices" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns1="http://homeControl.homeNetworkServices/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://homeControl.homeNetworkServices"><wsdl:types><xs:schema xmlns:ns3="http://ressource.network.nino/xsd" xmlns:ns2="http://property.homeControl.nino/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://homeControl.nino/xsd" xmlns:ns1="http://Gadget.homeControl.nino/xsd" xmlns:ax21="http://homeControl.homeNetworkServices/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://homeControl.homeNetworkServices/xsd"> <xs:element name="getLight"> <xs:complexType> <xs:sequence> <xs:element name="room" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getLightResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getSensor"> <xs:complexType> <xs:sequence> <xs:element name="room" type="ns0:NinoObject" /> <xs:element name="stype" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getSensorResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getHCS"> <xs:complexType> <xs:sequence> <xs:element name="light" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getHCSResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="switchLightbySensor"> <xs:complexType> <xs:sequence> <xs:element name="light" type="ns0:NinoObject" /> <xs:element name="lstat" type="ns0:NinoObject" /> <xs:element name="sensor" type="ns0:NinoObject" /> <xs:element name="sstat" type="ns0:NinoObject" /> <xs:element name="hcs" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="switchLightbySensorResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getNRsByFunction"> <xs:complexType> <xs:sequence> <xs:element name="func" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="getNRsByFunctionResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" minOccurs="0" maxOccurs="unbounded" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="setTrafficClassPriority"> <xs:complexType> <xs:sequence> <xs:element name="nrs" type="ns0:NinoObject" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="tc" type="ns0:NinoObject" /> <xs:element name="prio" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="setTrafficClassPriorityResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="setVacationConf"> <xs:complexType> <xs:sequence> <xs:element name="vac" type="ns0:NinoObject" /> <xs:element name="conf" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="setVacationConfResponse"> <xs:complexType> <xs:sequence> <xs:element name="return" type="ns0:NinoObject" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ax22="http://homeControl.nino/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://homeControl.nino/xsd"> <xs:element name="NinoObject" type="ax22:NinoObject" /> <xs:complexType name="NinoObject"> <xs:sequence> <xs:element name="localName" type="xs:string" /> <xs:element name="rdfType" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema> </wsdl:types> <wsdl:message name="getLightMessage"> <wsdl:part name="part1" element="ns1:getLight" /> </wsdl:message> <wsdl:message name="getLightResponseMessage"> <wsdl:part name="part1" element="ns1:getLightResponse" /> </wsdl:message> <wsdl:message name="getSensorMessage"> <wsdl:part name="part1" element="ns1:getSensor" /> </wsdl:message> <wsdl:message name="getSensorResponseMessage"> <wsdl:part name="part1" element="ns1:getSensorResponse" /> </wsdl:message> <wsdl:message name="getHCSMessage"> <wsdl:part name="part1" element="ns1:getHCS" /> </wsdl:message> <wsdl:message name="getHCSResponseMessage"> <wsdl:part name="part1" element="ns1:getHCSResponse" /> </wsdl:message> <wsdl:message name="switchLightbySensorMessage"> <wsdl:part name="part1" element="ns1:switchLightbySensor" /> </wsdl:message> <wsdl:message name="switchLightbySensorResponseMessage"> <wsdl:part name="part1" element="ns1:switchLightbySensorResponse" /> </wsdl:message> <wsdl:message name="getNRsByFunctionMessage"> <wsdl:part name="part1" element="ns1:getNRsByFunction" /> </wsdl:message> <wsdl:message name="getNRsByFunctionResponseMessage"> <wsdl:part name="part1" element="ns1:getNRsByFunctionResponse" /> </wsdl:message> <wsdl:message name="setTrafficClassPriorityMessage"> <wsdl:part name="part1" element="ns1:setTrafficClassPriority" /> </wsdl:message> <wsdl:message name="setTrafficClassPriorityResponseMessage"> <wsdl:part name="part1" element="ns1:setTrafficClassPriorityResponse" /> </wsdl:message> <wsdl:message name="setVacationConfMessage"> <wsdl:part name="part1" element="ns1:setVacationConf" /> </wsdl:message> <wsdl:message name="setVacationConfResponseMessage"> <wsdl:part name="part1" element="ns1:setVacationConfResponse" /> </wsdl:message> <wsdl:portType name="HomeControlServicePortType"> <wsdl:operation name="getLight"> <wsdl:input message="axis2:getLightMessage" /> <wsdl:output message="axis2:getLightResponseMessage" /> </wsdl:operation> <wsdl:operation name="getSensor"> <wsdl:input message="axis2:getSensorMessage" /> <wsdl:output message="axis2:getSensorResponseMessage" /> </wsdl:operation> <wsdl:operation name="getHCS"> <wsdl:input message="axis2:getHCSMessage" /> <wsdl:output message="axis2:getHCSResponseMessage" /> </wsdl:operation> <wsdl:operation name="switchLightbySensor"> <wsdl:input message="axis2:switchLightbySensorMessage" /> <wsdl:output message="axis2:switchLightbySensorResponseMessage" /> </wsdl:operation> <wsdl:operation name="getNRsByFunction"> <wsdl:input message="axis2:getNRsByFunctionMessage" /> <wsdl:output message="axis2:getNRsByFunctionResponseMessage" /> </wsdl:operation> <wsdl:operation name="setTrafficClassPriority"> <wsdl:input message="axis2:setTrafficClassPriorityMessage" /> <wsdl:output message="axis2:setTrafficClassPriorityResponseMessage" /> </wsdl:operation> <wsdl:operation name="setVacationConf"> <wsdl:input message="axis2:setVacationConfMessage" /> <wsdl:output message="axis2:setVacationConfResponseMessage" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="HomeControlServiceSOAP11Binding" type="axis2:HomeControlServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="getLight"> <soap:operation soapAction="urn:getLight" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getSensor"> <soap:operation soapAction="urn:getSensor" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getHCS"> <soap:operation soapAction="urn:getHCS" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="switchLightbySensor"> <soap:operation soapAction="urn:switchLightbySensor" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getNRsByFunction"> <soap:operation soapAction="urn:getNRsByFunction" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="setTrafficClassPriority"> <soap:operation soapAction="urn:setTrafficClassPriority" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="setVacationConf"> <soap:operation soapAction="urn:setVacationConf" style="document" /> <wsdl:input> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="HomeControlServiceSOAP12Binding" type="axis2:HomeControlServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="getLight"> <soap12:operation soapAction="urn:getLight" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getSensor"> <soap12:operation soapAction="urn:getSensor" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getHCS"> <soap12:operation soapAction="urn:getHCS" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="switchLightbySensor"> <soap12:operation soapAction="urn:switchLightbySensor" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="getNRsByFunction"> <soap12:operation soapAction="urn:getNRsByFunction" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="setTrafficClassPriority"> <soap12:operation soapAction="urn:setTrafficClassPriority" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="setVacationConf"> <soap12:operation soapAction="urn:setVacationConf" style="document" /> <wsdl:input> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" namespace="http://homeControl.homeNetworkServices" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="HomeControlService"> <wsdl:port name="HomeControlServiceSOAP11port" binding="axis2:HomeControlServiceSOAP11Binding"> <soap:address location="http://localhost:8080/axis2/services/HomeControlService" /> </wsdl:port> <wsdl:port name="HomeControlServiceSOAP12port" binding="axis2:HomeControlServiceSOAP12Binding"> <soap12:address location="http://localhost:8080/axis2/services/HomeControlService" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
<service name="HomeControlService">
<description>
BlabLabla
</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="homeNetworkServices.homeControl.HomeControlServiceMessageReceiverInOut"/>
</messageReceivers>
<parameter name="ServiceClass">homeNetworkServices.homeControl.HomeControlService</parameter>
<parameter name="useOriginalwsdl">true</parameter>
<operation name="getHCS" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:getHCS</actionMapping>
</operation>
<operation name="getSensor" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:getSensor</actionMapping>
</operation>
<operation name="getLight" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:getLight</actionMapping>
</operation>
<operation name="switchLightbySensor" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:switchLightbySensor</actionMapping>
</operation>
<operation name="getNRsByFunction" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:getNRsByFunction</actionMapping>
</operation>
<operation name="setTrafficClassPriority" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:setTrafficClassPriority</actionMapping>
</operation>
<operation name="setVacationConf" mep="http://www.w3.org/2004/08/wsdl/in-out">
<actionMapping>urn:setVacationConf</actionMapping>
</operation>
</service>--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
