ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Java Input Node and Memory utilization

Post new topic  Reply to topic
 Java Input Node and Memory utilization « View previous topic :: View next topic » 
Author Message
dkeister
PostPosted: Fri Apr 16, 2004 11:57 am    Post subject: Java Input Node and Memory utilization Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

I have written a java input node to read files from a folder. Because the files are extremely large, I have to

.read them character by character, looking for a new line.

.After a number of lines I put the message to the rest of the flow which inserts the results into a database.

. when the input node gets control back it clears the message (msg.clearMessage).

. continues in this loop until all lines from the input node have been processed.

. when all processed, goes into a check-sleep-return-check-sleep-return loop waiting for more files to arrive in the folder.

I have noticed that while processing the input of a file, the memory utilization seems to grow and after a message is completely processed the size of memory used by the broker seems to stay large.

Does anyone know if this the way the broker works or should I look to my code or some function to release memory? (I think I am doing all the proper house keeping in the java code, and I thought that after a message was processed by a flow and put to a queue, the broker released the memory.)
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JLRowe
PostPosted: Fri Apr 16, 2004 12:29 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

There should be nothing to worry about as long as you have done a *long* stress test to make sure you have no memory leaks.

Each JVM is created with an initial heap size and maximum heap size, the JVM is simply growing the heap as it needs to. As for releasing heap allocated memory, I'm not sure if this happens - I think the JVM just keeps hold of the memory even if it is not currently used.
Back to top
View user's profile Send private message Send e-mail
dkeister
PostPosted: Fri Apr 16, 2004 12:39 pm    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

How does one (me) find out the initial heap size and maximum heap size the JVM for WMQI?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JLRowe
PostPosted: Fri Apr 16, 2004 1:45 pm    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Sorry, I don't know. The values will be coded into WBIMB and I don't think they are documented.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Java Input Node and Memory utilization
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.