Hi,
I'm getting emalloc / erealloc errors in stderr.log which cause one of my vhosts not to work (I always get a 503 error). The single vhost which isn't working is serving a MediaWiki installation. The other (working) vhosts serve simple php-sites.
1) Ubuntu Dapper 6.06.1 64bit,
Linux peach 2.6.17.8 #4 Fri Aug 11 21:13:01 CEST 2006 x86_64 GNU/Linux
2) LiteSpeed 2.1.19 Standard
3) PHP 5.1.4 with LSAPI and APC 3.0.10
4) The wiki worked after I installed the LiteSpeed server (it's maybe 8 hours ago) and when I just looked, I got the 503 error. The only error-message I get is in stderr.log and says:
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
[...][Wed Aug 16 17:20:51 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[Wed Aug 16 17:20:51 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[Wed Aug 16 17:20:52 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[...]
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
My setup is:
Server->Tuning:
Max Cached Small File Size (bytes) 4096
Total Small File Cache Size (bytes) 20M
Max MMAP File Size (bytes) 1M
Total MMAP Cache Size (bytes) 128M
Max Request Header Size (bytes) 8192
Max Request Body Size (bytes) 1G
Max Dynamic Response Header Size (bytes) 8K
Max Dynamic Response Body Size (bytes) 1G
VHost Template -> External App Definition (excerpt):
Name: $VH_NAME-php
Address: uds://tmp/lshttpd/$VH_NAME-php.sock
Max Connections: 20
Environment: PHP_LSAPI_MAX_REQUESTS=500
Instances: 20
Memory Soft Limit (bytes) 0
Memory Hard Limit (bytes) 0
Process Soft Limit 0
Process Hard Limit 0
I tried setting these limits to a very high number (memory about 160MB) instead of 0, but this didn't change anything. I restarted the server several times. If you need any more information, just tell me.
Regards,
Philipp
I'm getting emalloc / erealloc errors in stderr.log which cause one of my vhosts not to work (I always get a 503 error). The single vhost which isn't working is serving a MediaWiki installation. The other (working) vhosts serve simple php-sites.
1) Ubuntu Dapper 6.06.1 64bit,
Linux peach 2.6.17.8 #4 Fri Aug 11 21:13:01 CEST 2006 x86_64 GNU/Linux
2) LiteSpeed 2.1.19 Standard
3) PHP 5.1.4 with LSAPI and APC 3.0.10
4) The wiki worked after I installed the LiteSpeed server (it's maybe 8 hours ago) and when I just looked, I got the 503 error. The only error-message I get is in stderr.log and says:
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
[...][Wed Aug 16 17:20:51 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[Wed Aug 16 17:20:51 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[Wed Aug 16 17:20:52 2006] [apc-error] apc_mmap: mmap failed: Cannot allocate memory
[...]
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: emalloc(): Unable to allocate 7680 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
FATAL: erealloc(): Unable to allocate 30720 bytes
My setup is:
Server->Tuning:
Max Cached Small File Size (bytes) 4096
Total Small File Cache Size (bytes) 20M
Max MMAP File Size (bytes) 1M
Total MMAP Cache Size (bytes) 128M
Max Request Header Size (bytes) 8192
Max Request Body Size (bytes) 1G
Max Dynamic Response Header Size (bytes) 8K
Max Dynamic Response Body Size (bytes) 1G
VHost Template -> External App Definition (excerpt):
Name: $VH_NAME-php
Address: uds://tmp/lshttpd/$VH_NAME-php.sock
Max Connections: 20
Environment: PHP_LSAPI_MAX_REQUESTS=500
Instances: 20
Memory Soft Limit (bytes) 0
Memory Hard Limit (bytes) 0
Process Soft Limit 0
Process Hard Limit 0
I tried setting these limits to a very high number (memory about 160MB) instead of 0, but this didn't change anything. I restarted the server several times. If you need any more information, just tell me.
Regards,
Philipp