FreeBSD limits the size of a process to 512MB, even if you have much more RAM available on the system. So you may get an error such as this:
Out of memory (Needed 16391 bytes)
In current versions of FreeBSD (at least 4.x and greater), you may increase this limit by adding the following entries to the /boot/loader.conf file and rebooting the machine (these are not settings that can be changed at run time with the sysctl command):
kern.maxdsiz="1073741824" # 1GB
kern.dfldsiz="1073741824" # 1GB
kern.maxssiz="134217728" # 128MB
For older versions of FreeBSD, you must recompile your kernel to change the maximum data segment size for a process. In this case, you should look at the MAXDSIZ option in the LINT config file for more information.
上面寫了那麼多,重點就只是FreeBSD把一個執行程序限制在512MB,所以不管你的SERVER有幾T都沒用...
請把上面那三行加到 /boot/loader.conf 中,並且重新開機,如此一來才能把小惡魔敲醒...
P.S. 你的RAM夠多的話,可以再設高一點,例如 2G or 4G etc...
沒有留言:
張貼留言