I'm working with a Mac OS X server running apache, and am getting the following errors in my logs:
[Thu Oct 18 23:44:08 2007] [notice] child pid 23372 exit signal Segmentation fault (11)
httpd(24092) malloc: *** vm_allocate(size=16384) failed (error code=268451844)
httpd(24092) malloc: *** error: can't allocate region
httpd(24092) malloc: *** set a breakpoint in szone_error to debug
FATAL: erealloc(): Unable to allocate 15352 bytes
httpd(24096) malloc: *** vm_allocate(size=16384) failed (error code=268451844)
httpd(24096) malloc: *** error: can't allocate region
httpd(24096) malloc: *** set a breakpoint in szone_error to debug
FATAL: erealloc(): Unable to allocate 15352 bytes
httpd(23374) malloc: *** error for object 0x25c0000: Can't deallocate_pages region
httpd(23374) malloc: *** set a breakpoint in szone_error to debug
[Fri Oct 19 02:07:35 2007] [notice] child pid 24549 exit signal Bus error (10)
httpd(23374) malloc: *** vm_allocate(size=20480) failed (error code=-301)
httpd(23374) malloc: *** error: can't allocate region
httpd(23374) malloc: *** set a breakpoint in szone_error to debug
[Fri Oct 19 02:16:04 2007] [notice] child pid 23374 exit signal Segmentation fault (11)
When I check the limits for the server, I get this:
ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) 6144
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 100
virtual memory (kbytes, -v) unlimited
Here are some settings for my.cnf
[mysqld]
port = 3306
socket = /var/mysql/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 1M
table_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 64M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
query_cache_limit = 32M
max_heap_table_size = 32M
long_query_time = 5
log_slow_queries = /var/log/mysql-slow.log
skip-thread-priority
My question is, how do I change the data seg size? I can change it temporarily with ulimit -d, but this change is lost when my Putty session ends. I've looked at some online forums, and I think I need to set something up in System/Library/StartUpItem
s, but I don't know what to change or add in this directory. Also, do you see something else that I might change or look for? Will I need to reboot the server (or apache?) to implement the changes?
Thanks for your consideration or this problem.
Start Free Trial