locked
GetKnowledge fails with InsufficientMemoryException RRS feed

  • Question

  • Hi

    I am running a sync session using the RelationalWebSyncService wcf service.

    The tables I am trying to upload are quite big. I set batching to 1000 but batching is not effective because the method GetKnowledge fails with InsufficientMemoryException when the SyncBatchParameters result is sent back to the client. (before batching starts).

    What can I do to synchronize large tables?

    Thanks

    Manu

     

     

     

    Thursday, November 4, 2010 11:17 PM

Answers

All replies

  • Hi,

    Is it the initial sync, or the WCF server has  been synced before? If it is initial sync, Knowledge should be pretty small (less than 1K) since there is not fragment in knowledge. Can you measure the size of the SyncKnowledge? You may want to check which objects take most of the memory.

    Thanks,

    Dong


    This posting is provided AS IS with no warranties, and confers no rights.
    Friday, November 5, 2010 6:35 AM
  • Thanks for your reply.

    this is the initial sync yet after calling "GetSyncBatchParameters" inside "GetKnowledge" in the web service I can see that the process jumps in memory consumption.

    Then when the results is sent back the memory consumption keeps growing.

    I tried to log the messages using the wcf tool svclog but I failed because messages where too big.

    I have to mention that the same code succeeds in synchronizing smaller tables.

    Manu

     

     

    Friday, November 5, 2010 10:42 PM
    • Marked as answer by manukahn Wednesday, November 17, 2010 6:55 AM
    Wednesday, November 17, 2010 6:55 AM