[JBoss Messaging] - Re: Problem with large strings
by ONIT
Hello Tim,
Thanks for the quick response. Your results sound very encouageing. I didn't bother you with the details since I thought you would experience the same problem.
I am using:
JBoss_4_0_4_GA
JBoss Messaging 1.0.1.CR3
Windows XP Professional
Everything is on one JBoss server.
I have an EJB that is virtually identical to the messaging stateless EJB in the examples that come with JBoss Messaging. The EJB has a sendRequest method that puts a TextMessage in a queue named requestQueue and a getResponse method that retrieves TextMessages from a queue named responseQueue.
A MDB is listening on the requestQueue queue. It processes the request and puts the results into a TextMessage and sends it to the responseQueue queue. The EJB then retrieves the TextMessage from the responseQueue.
My queues are configured in the destinations-service.xml as follows:
<mbean code="org.jboss.jms.server.destination.Queue"
name="jboss.messaging.destination:service=Queue,name=requestQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
750000
20000
20000
<mbean code="org.jboss.jms.server.destination.Queue"
name="jboss.messaging.destination:service=Queue,name=responseQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
750000
20000
20000
The server log is:
09:24:35,828 INFO [Queue] Queue[/queue/requestQueue] started, fullSize=750000, pageSize=20000, downCacheSize=20000
09:24:35,828 INFO [Queue] Queue[/queue/responseQueue] started, fullSize=750000, pageSize=20000, downCacheSize=20000
I am running the application in debug mode in Eclipse. I am using a memory monitor in Eclipse to track memory usage.
The program uses about 80M of memory. When I process the first large string (about 380k), memory climbs to about 150M and I start getting these messages in the server log:
09:42:56,343 WARN [SimpleMemoryManager] Less than 25% of total available memory free
The next time I process the same request memory grows to about 360M and I get more of the above messages. The more requests I send (one at a time) the more the memory grows.
Response times are about 30 to 35 seconds.
Any clue?
Thanks,
Dennis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961300#3961300
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961300
19 years, 9 months
[JBossWS] - 1.0.2: Exception when client receives a JavaBean
by Juergen.Zimmermann
Using the new version 1.0.2 on the client side I get the following exception when the JBoss server transmits a JavaBean. Any hint is appreciated!
2006-07-27 15:21:09,668 DEBUG org.jboss.ws.soap.SOAPContentElement - setXMLFragment: <result xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'><ns_art:art xmlns:ns_art='http://de.hska.ws/jaws'>privat</ns_art:art><ns_id:id xmlns:ns_id='http://de.hska.ws/jaws'>1</ns_id:id><ns_nachname:nachname xmlns:ns_nachname='http://de.hska.ws/jaws'>Alpha</ns_nachname:nachname><ns_rabatt:rabatt xmlns:ns_rabatt='http://de.hska.ws/jaws'>0</ns_rabatt:rabatt><ns_vorname:vorname xmlns:ns_vorname='http://de.hska.ws/jaws'>Adrian</ns_vorname:vorname></result>
| 2006-07-27 15:21:09,668 DEBUG org.jboss.ws.soap.SOAPContentElement - getObjectValue [xmlType={http://de.hska.ws/jaws}KundeData,javaType=class de.hska.ws.KundeData]
| 2006-07-27 15:21:09,678 ERROR org.jboss.ws.jaxrpc.CallImpl - Call invocation failed with unkown Exception
| javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art
| at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:292)
| at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| at org.jboss.ws.binding.EndpointInvocation.getReturnValue(EndpointInvocation.java:182)
| at org.jboss.ws.jaxrpc.CallImpl.syncOutputParams(CallImpl.java:873)
| at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:704)
| at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
| at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
| at $Proxy2.findKunde(Unknown Source)
| at de.hska.test.WebServicesTest.testFindKunde(Unknown Source)
| 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:585)
| at junit.framework.TestCase.runTest(TestCase.java:154)
| at junit.framework.TestCase.runBare(TestCase.java:127)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
| at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
| Caused by: org.jboss.ws.binding.BindingException: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art
| at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:100)
| at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:229)
| ... 23 more
| Caused by: org.jboss.ws.jaxb.UnmarshalException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art
| at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:67)
| at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| ... 24 more
| Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:156)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:126)
| at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:63)
| ... 25 more
| Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element {http://de.hska.ws/jaws}art is not allowed in this position in the sequence. The next element should be art
| at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:214)
| at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:152)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
| at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
| at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
| at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:152)
| ... 27 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961295#3961295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961295
19 years, 9 months