|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Input Node and Memory utilization |
« View previous topic :: View next topic » |
Author |
Message
|
dkeister |
Posted: Fri Apr 16, 2004 11:57 am Post subject: Java Input Node and Memory utilization |
|
|
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 |
|
 |
JLRowe |
Posted: Fri Apr 16, 2004 12:29 pm Post subject: |
|
|
 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 |
|
 |
dkeister |
Posted: Fri Apr 16, 2004 12:39 pm Post subject: |
|
|
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 |
|
 |
JLRowe |
Posted: Fri Apr 16, 2004 1:45 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|