Hi,
I've got an performance issue. I have serveral beans which have to process
messages where the xml files are about 50+ MByte. Currently I'am working
with consumer bean instances which have an DeliveryChannel and
ServiceMixClient object. My problem is, that when I process one message/file
after that there where 300Mbytes staying in heap. So I did some performance
tests with netbeans and saw that there where much byte[] and char[] objects
(Not totally shure from where they come). After starting SMX without doing
anything my heap is about 20MByte. So I think there must be some failure in
my code. So I searched all created classes found some failures but the
problem doesn't disappear.
Then I found out that it is possible to call the close()-Method of the
DeliveryChannel and the ServiceMixClient Interface. So my question is do I
have to close them? Or Maybe is it better to create instances for my bean
class for each exchange (I think my solution is ok, because its easier to
handle multible calls).

Regards
/Steffen

-----
Brockhaus GmbH
COMPETITIVE THROUGH KNOWLEDGE

Web:  http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de  / 
http://www.brockhaus-group.com www.brockhaus-group.com 
-- 
View this message in context: 
http://www.nabble.com/Best-practices%2C-working-with-beans-and-huge-messages.-tp19914439p19914439.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to