Posted: Fri Jan 09, 2009 8:19 am Post subject: Fail to allocate memory
Partisan
Joined: 07 Aug 2001 Posts: 386
We are running WMB V6 CSD 05 on AIX. We have a simple flow
MQINPUT- MAPPING-MQOUTPUT
The MAP was written to handle products in a sotre. The mapping is not complicated but it has to loop through a large number of repeated records which represent a product. The INPUT is XML message.
In one situation we have a 26M imput message containing 90,000 records, the EG blow up with fail to allocate memory.
We retry the message in our test environment with only the failing flow in its own EG. We also monitor the usage of the EG while the flow is running.
The same message runs fine the first time. The memory used by the EG rises from 400+ M to about 650M and stays there when the flow completes with no failure. We then try with 2 of the same message on the INPUT queue. The EG will always blow up with fail to allocate memory on the second message. Our memory monitor shows that the memory used by the EG when handling the 2nd message rises to exceed 1G which is our limit.
I was under the impression that all memory can be re-used after the first message is done with the flow.
Why is this failing on the second run ? I know that there are things that developers we can do on making the flow more memory efficient. But we (administrators) need some facts before we can ask developers to change their code. Any help on this wil be greatly appreciated.
I am sure there was a topic like this before. http://www.mqseries.net/phpBB2/viewtopic.php?t=46564
I am a developer and had the same problem with huge messages and had no work around for it. The problem occured on solaris and there you can get 4GB of memory but that was not enough as message broker does not free the used memory (as you would probably think). It keeps all the memory allocated until there is none anymore and restarts the whole execution group... _________________ IBM Certified Solution Designer - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
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