Re: xmalloc errors

From: Erick C. Chang <[email protected]>
Date: Sat, 15 Nov 1997 03:24:16 +0800

At 09:25 PM 1997/11/13 -0500,You Wrote :
:>|I was getting the following error to increase my cache memory:
:>|
:>|Nov 8 15:41:48 Vector squid[23261]: WARNING: Exceeded 'cache_mem' size
:>|(8212K > 8192K)
:>|Nov 8 15:41:48 Vector squid[23261]: Perhaps you should increase cache_mem?
:>|Nov 8 15:41:48 Vector squid[23261]: storeGetMemSpace stats:
:>|Nov 8 15:41:48 Vector squid[23261]: 0 objects locked in memory
:>|Nov 8 15:41:48 Vector squid[23261]: 0 LRU candidates
:>|Nov 8 15:41:48 Vector squid[23261]: 0 were purged
:>|Nov 8 15:41:48 Vector squid[23261]: 0 were released
:>|Nov 8 15:51:49 Vector squid[23261]: WARNING: Exceeded 'cache_mem' size
:>|(10192K > 8192K)
:>|
:>|I increased the cache memory in the conf file and now I am getting the
:>|following errors:
:>|
:>|Nov 13 10:31:25 Vector squid[2904]: Starting Squid Cache version 1.1.3 for
:>|/usr/local/sq
:>|uid...
:>|Nov 13 10:31:27 Vector squid[2904]: Ready to serve requests.
:>|Nov 13 11:05:59 Vector squid[2904]: xcalloc: Unable to allocate 4096 blocks
:>|of 1 bytes!
:>|Nov 13 11:06:15 Vector squid[3890]: Starting Squid Cache version 1.1.3 for
:>|/usr/local/sq
:>|uid...
:>|Nov 13 11:06:17 Vector squid[3890]: Ready to serve requests.
:>|Nov 13 11:42:08 Vector squid[3890]: xcalloc: Unable to allocate 4096 blocks
:>|of 1 bytes!
:>|Nov 13 11:42:24 Vector squid[4773]: Starting Squid Cache version 1.1.3 for
:>|/usr/local/sq
:>|uid...
:>|Nov 13 11:42:25 Vector squid[4773]: Ready to serve requests.
:>|Nov 13 12:03:46 Vector squid[4773]: xmalloc: Unable to allocate 4096 bytes!
:>|
:>|How can I resolve this Xmalloc error.

Try to run squid like this shell script
----------- script begin here ----------
#!/bin/sh
ulimit -t unlimited
ulimit -f unlimited
ulimit -d unlimited
ulimit -s unlimited
ulimit -c unlimited
ulimit -m unlimited
ulimit -l unlimited
ulimit -u unlimited
ulimit -n unlimited

squid -sY
----------- end of script -----------

I do this on my server, and it solve all problem same as yours

NOTE: you must unlimited at least follow

            data seg size (-d)
        stack size (-s)
        core file size (-c)
        max memory size (-m)
        locked memory (-l)

          I 've been remove core's unlimited,then problem come again. but i
still don't know why :p
. . .. . .......................
: : `' : ^^ ^^ : Odyseey Wind :
: : .. . ... ... : ^^ ^^ : ..................:
: . : :: :` : : `: .............:...: Erick C. Chang :
: : : :: : : : : ^^ ^^ : mailto:erick@s867.THU.edu.TW :
`.` `.`...::....' :..'...`:... ^^ :..................................:
Received on Fri Nov 14 1997 - 11:30:32 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:37:34 MST