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 » File processing taking up all memory

Post new topic  Reply to topic
 File processing taking up all memory « View previous topic :: View next topic » 
Author Message
ajayrana
PostPosted: Mon May 26, 2014 9:31 am    Post subject: File processing taking up all memory Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi All,

I am trying to read a fixed length file with some 140 fields. The file size is 189 MB and it has 160000 records to process with single record length 1483 characters.

The record detection property is set to 'Parsed Record Sequence'.

My message flow representation :

FileReader - > Mapping Transformation (which inserts into MSSQL database)

The transaction mode on the file reader is set to No and Transaction property at mapping is set to automatic.

Now every time i try to process the file it keeps on executing for more than an hour (with taking up all the memory in the system) and then when there is no memory left the file processing fails.

Is there a way i can define the database commit size in my bar file ??

Thanks & Regards
Ajay Rana


Last edited by ajayrana on Tue May 27, 2014 10:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 26, 2014 9:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Set the mapping node transaction mode to NO
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Mon May 26, 2014 1:49 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
it has 160000 records to process with single record length 1483 characters.
The record detection property is set to 'Parsed Record Sequence'.
If every record is 1483 characters then you may as well use 'Fixed Length' rather than 'Parsed record sequence'. Or maybe you have a good reason for not doing that?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon May 26, 2014 4:31 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

ajayrana, please stop putting "URGENT" in all your subject lines. Its presumptuous to think you'll get a faster or better response from people doing this on their own time on a free website by placing that word in all caps in the subject line. In fact, it very likely has the exact opposite effect you intend.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
ajayrana
PostPosted: Tue May 27, 2014 10:26 pm    Post subject: Reply with quote

Apprentice

Joined: 08 May 2014
Posts: 35

Hi Kimbert,

The file includes header and trailer which are not of the same length(forgot to mention that).
We have resolved the issue by using Delimited option in records and elements.
This required us to move all the three sections(header/body/trailer) of the DFDL under a choice element.
This worked well for us. Thanks for the direction.

Hi fjb_saper,

I tried doing this before trying the above approach but the drop down to select the transaction mode only shows automatic in Mapping transformation properties.


Hi PeterPotKay,

I did not realise this would have such impact on the users of the community.
My apologies !! I have removed URGENT from all my posts.


Regards
Ajay Rana
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 28, 2014 12:31 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

ajayrana wrote:
Hi fjb_saper,

I tried doing this before trying the above approach but the drop down to select the transaction mode only shows automatic in Mapping transformation properties.

Regards
Ajay Rana

So may be you should do the DB insert in a node that gives more control over the transactionality...
_________________
MQ & Broker admin
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 » File processing taking up all memory
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.