FreeBSD ERROR: (8011-323-1057) Failed to allocate memory and Solution

Posted on in Categories , , , last updated July 3, 2008

Q. I’m running application called Urchin or Google Analytics under FreeBSD and I’m getting the error that read as follows:
ERROR: (8011-323-1057) Failed to allocate memory

How do I fix this error?

A. Urchin is used to analyze web server log file content and display the traffic information on that website based upon the log data.

According to Google Urchin support pages – FreeBSD has a hard-coded process datasize limit of 500MB. This limit is exceeded because of Urchin’s geodata that must be memory resident during log processing. As a result, you will see the following runtime error:

ERROR: (8011-323-1057) Failed to allocate memory

To fix this issue, you’ll need to increase the FreeBSD system’s default process datasize, which you can do by editing the /boot/loader.conf file, enter:
# vi /boot/loader.conf
Append the following lines
# Increase max process data segment size to 1GB
kern.maxdsiz="1073741824"

Reboot the system to accept new changes, enter:
# reboot

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment