[Quickfix-developers] C# Memory growing fast
Brought to you by:
orenmnero
From: Bristotti, F. <fer...@cr...> - 2009-03-03 15:07:18
|
> 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 ============================================================================== |