Re: [squid-users] xmalloc and out of memory errors in messages log

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 20 Sep 2003 11:38:01 +0200 (CEST)

On Sat, 20 Sep 2003, Tay Teck Wee wrote:

> Sep 20 00:09:58 blar out of memory [28008
> Sep 20 00:09:59 blar squid[29539]: Squid Parent: child
> process 28008 exited due to signal 6
>
> Sep 20 01:39:21 blar (squid): xmalloc: Unable to
> allocate 87380 bytes!
> Sep 20 01:39:21 blar squid[29539]: Squid Parent: child
> process 28435 exited due to signal 6

The above is effectively the same error..

> twice a day. I've read the FAQ. Its states 2 possible
> reasons for OS to have xmalloc error:
> 1) out of swap
> 2) data segment size reached

Yes..

> I am sure that the machine never ran out of swap,
> using monitoring tools. And the below shows that I've
> set the data segment size to unlimited.
>
> [root@squid squid]# ulimit -a

Unfortunately ulimit only gives half the picture. What ulimit unlimited
says is that there is no additional limits imposed. The process size is
still limited by the maximum data segment size allowed or possible with
your kernel.

This is why the FAQ goes into how to tune the kernel for this.

> linux kernel 2.4.20-19.8

And which memory model is the kernel compiled for?

And how large is your Squid process?

Regards
Henrik
Received on Sat Sep 20 2003 - 03:38:07 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:19:58 MST