URGENT: The underlying compression routine could not reserve sufficient memory

1,793 views
Skip to first unread message

Paul Hinett

unread,
Mar 19, 2013, 8:55:16 PM3/19/13
to rav...@googlegroups.com
Production server suddenly started spitting out this message, not sure
what to do?

I do have the compression bundle enabled, but has been working for many
months.

Exception type: ZLibException
Exception message: The underlying compression routine could not
reserve sufficient memory.
at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel
compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy
strategy)
at System.IO.Compression.DeflaterZLib..ctor(CompressionLevel
compressionLevel)
at System.IO.Compression.DeflateStream.CreateDeflater(Nullable`1
compressionLevel)
at System.IO.Compression.DeflateStream..ctor(Stream stream,
CompressionMode mode, Boolean leaveOpen)
at System.IO.Compression.GZipStream..ctor(Stream stream,
CompressionMode mode)
at
Raven.Abstractions.Connection.HttpRequestHelper.WriteDataToRequest(HttpWebRequest
req, String data, Boolean disableCompression)
at Raven.Client.Connection.HttpJsonRequest.Write(String data)
at Raven.Client.Connection.ServerClient.DirectBatch(IEnumerable`1
commandDatas, String operationUrl)
at
Raven.Client.Connection.ServerClient.<>c__DisplayClass70.<Batch>b__6f(String
u)
at
Raven.Client.Connection.ReplicationInformer.TryOperation[T](Func`2
operation, String operationUrl, Boolean avoidThrowing, T& result)
at
Raven.Client.Connection.ReplicationInformer.ExecuteWithReplication[T](String
method, String primaryUrl, Int32 currentRequest, Int32
currentReadStripingBase, Func`2 operation)
at
Raven.Client.Connection.ServerClient.ExecuteWithReplication[T](String
method, Func`2 operation)
at Raven.Client.Connection.ServerClient.Batch(IEnumerable`1
commandDatas)
at Raven.Client.Document.DocumentSession.SaveChanges()
at HMv2.Web.MvcApplication.<.ctor>b__1(Object sender, EventArgs args)
at
System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)



Paul Hinett

unread,
Mar 19, 2013, 9:01:08 PM3/19/13
to rav...@googlegroups.com
hmm panic over for the moment, after a couple of restarts and
restarting IIS it started working again.

Any idea on why this happened and how to prevent it from happening
again though?

Oren Eini (Ayende Rahien)

unread,
Mar 20, 2013, 1:50:06 AM3/20/13
to ravendb
First time that I see this error.
I am assuming that this is somehow related to .NET 4.5, which started to use Zlib internally.
did you have a low mem condition in your code?


--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Paul Hinett

unread,
Mar 20, 2013, 7:34:47 AM3/20/13
to rav...@googlegroups.com
No, it was using around 4gb out of 32gb.

I am using .net 4.5, although RavenDb is running as a service.

One issue that you bought to mind is that for some reason i have to set
my application pool to allow 32 bit applications to run, if not it
fails with an error, not sure if this could affect the memory available?

On 20 March 2013 05:50:06, Oren Eini (Ayende Rahien) wrote:
> First time that I see this error.
> I am assuming that this is somehow related to .NET 4.5, which started
> to use Zlib internally.
> did you have a low mem condition in your code?
>
>
> On Wed, Mar 20, 2013 at 3:01 AM, Paul Hinett
> <pa...@ukcreativedesigns.com <mailto:pa...@ukcreativedesigns.com>> wrote:
>
> hmm panic over for the moment, after a couple of restarts and
> restarting IIS it started working again.
>
> Any idea on why this happened and how to prevent it from happening
> again though?
>
>
> On 20 March 2013 <tel:2013> 00:55:16, Paul Hinett wrote:
>
> Production server suddenly started spitting out this message,
> not sure
> what to do?
>
> I do have the compression bundle enabled, but has been working for
> many months.
>
> Exception type: ZLibException
> Exception message: The underlying compression routine
> could not
> reserve sufficient memory.
> at
> System.IO.Compression.__DeflaterZLib.DeflateInit(__CompressionLevel
> compressionLevel, Int32 windowBits, Int32 memLevel,
> CompressionStrategy strategy)
> at
> System.IO.Compression.__DeflaterZLib..ctor(__CompressionLevel
> compressionLevel)
> at
> System.IO.Compression.__DeflateStream.CreateDeflater(__Nullable`1
> compressionLevel)
> at System.IO.Compression.__DeflateStream..ctor(Stream stream,
> CompressionMode mode, Boolean leaveOpen)
> at System.IO.Compression.__GZipStream..ctor(Stream stream,
> CompressionMode mode)
> at
> Raven.Abstractions.Connection.__HttpRequestHelper.__WriteDataToRequest(__HttpWebRequest
> req, String data, Boolean disableCompression)
> at Raven.Client.Connection.__HttpJsonRequest.Write(String data)
> at
> Raven.Client.Connection.__ServerClient.DirectBatch(__IEnumerable`1
> commandDatas, String operationUrl)
> at
> Raven.Client.Connection.__ServerClient.<>c____DisplayClass70.<Batch>b__6f(__String
> u)
> at
> Raven.Client.Connection.__ReplicationInformer.__TryOperation[T](Func`2
> operation, String operationUrl, Boolean avoidThrowing, T& result)
> at
> Raven.Client.Connection.__ReplicationInformer.__ExecuteWithReplication[T](__String
> method, String primaryUrl, Int32 currentRequest, Int32
> currentReadStripingBase, Func`2 operation)
> at
> Raven.Client.Connection.__ServerClient.__ExecuteWithReplication[T](__String
> method, Func`2 operation)
> at Raven.Client.Connection.__ServerClient.Batch(__IEnumerable`1
> commandDatas)
> at Raven.Client.Document.__DocumentSession.SaveChanges()
> at HMv2.Web.MvcApplication.<.__ctor>b__1(Object sender,
> EventArgs args)
> at
> System.Web.HttpApplication.__SyncEventExecutionStep.System.__Web.HttpApplication.__IExecutionStep.Execute()
>
> at System.Web.HttpApplication.__ExecuteStep(IExecutionStep
> step,
> Boolean& completedSynchronously)
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "ravendb" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ravendb+unsubscribe@__googlegroups.com
> <mailto:ravendb%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "ravendb" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ravendb+u...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Mar 20, 2013, 7:53:51 AM3/20/13
to ravendb
Um, 
That means that it is running in 32 bits mode and allows us only 2GB of RAM






--
You received this message because you are subscribed to the Google
Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages