Re: [Quickfix-developers] C# Memory growing fast
Brought to you by:
orenmnero
From: Shane T. <str...@co...> - 2009-03-03 15:37:23
|
I believe with the .NET version you must dispose each message after you have used it. Is it a requirement in your application to maintain a reference to all 35,000 trade messages? -- Shane Trotter Connamara Systems, LLC On Tue, Mar 3, 2009 at 9:06 AM, Bristotti, Fernando < fer...@cr...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi, > > I am currently using QuickFIX 1.12.4. Memory grows fast when QuickFIX > process a market data snapshot message, for instance the day I've received a > snapshot with about 35000 trades (attached), memory grows to about 1.0G and > my application crashes. > > Taking a look on QuickFIX source code I could see that struct message_order > ( MessageSorters.cpp ) allocates for each group a vector int[] size of the > largest field in the group even if the group contains only two fields. The > largest field in NoMDEntry group for BM&F market data is a custom field = > 6032, thus for processing the message above QuickFIX allocates 6032 x ( > 35000 trades ) x ( 4 bytes ). > > I have changed the code in order to allocate a vector int[] size of the > number of fields in the group, any suggestion? > > Thanks, > Fernando > > ============================================================================== > Please access the attached hyperlink for an important electronic communications disclaimer: > http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html > ============================================================================== > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |