forum.venkateswarlu.net
      Register      Login
Failed to allocate a managed memory buffer of 536870912 bytes. The amount of available memory may be low.

1 replies to this topic

Karunakar Reddy #1
Member
18 Points
Posted on 13 May 2014 08:38 PM IST Production Isuue:
Unable send more than 1lak records from wcf service to windows application
 
WCF     6248 views     Reply to this topic
Cherukuri Venkateswarlu #2
Member
140 Points
Replied on 14 May 2014 05:20 AM IST  It seems you're configuring maxBufferSize with a buffered transfer mode. If the value of this attribute is small, large messages will be dropped. If you increase the value of this attribute, while you will be able to accept large messages, obviously more server memory will be consumed, and if you run out of memory, there's nothing you can do other than increase the physical memory.

For large messages, it is recommended to use streamed transfer mode (set transferMode="Streamed" on the binding). This allows the server to start processing the message while the client is still transfering it, rather than wait for the whole message to be transferred, put the whole message in memory, and then process it. 
Reply to this topic