Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
Following is the issues i am facing in appfabric. Waiting for help?

System.InsufficientMemoryException: Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
System Ram size- 32gb

After I set maxBufferSize="999999999", but still i am getting above error
please look into my configuration file

<configuration>
     <configsections>
       <section name="dataCache" type="Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core" />
     </configsections>
     <datacache size="Small">
       <caches>
         <cache consistency="StrongConsistency" name="default" minsecondaries="0">
           <policy>
             <eviction type="Lru" />
             <expiration defaultttl="10" isexpirable="true" />
           </policy>
         </cache>
       </caches>
       <hosts>
         <host replicationport="22236" arbitrationport="22235" clusterport="22234">
           hostId="1222497344" size="16383" leadHost="true" account="XXX"
           cacheHostName="AppFabricCachingService" name="XXX.com"
           cachePort="22233" />
       </host></hosts>
    <advancedproperties>
         <securityproperties mode="None" protectionlevel="None">
           <authorization>
             <allow users="Anblicks" />
             <allow users="DefaultAppPool" />
             <allow users="Administrator" />
             ="network service" />
           </authorization>
         </securityproperties>
         <transportproperties><big>maxBufferSize="999999999"</big> />
       </transportproperties></advancedproperties>
       <deploymentsettings>
         <deploymentmode value="RoutingClient" />
       </deploymentsettings>
     </datacache>
   </configuration><pre>
Posted
Comments
Richard MacCutchan 27-Feb-15 4:09am    
Why do you think that making the buffer four times larger will avoid this problem?
astrovirgin 14-Jun-16 7:03am    
Instead of finding the flaws in his code, if you could have replied to the solution, it might help others like me.
Richard MacCutchan 14-Jun-16 9:16am    
The solution is to find out why the program is causing an OutOfMemory exception. And making a buffer larger is certainly not going to help.
Charan_Kumar 1-Mar-15 22:58pm    
Even we tried for fixed buffer size what we need. but of no use.
Can u help me?
astrovirgin 14-Jun-16 7:03am    
Hi Charan, I am facing the same issue. I know it's been an year but did you find the solution?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900