|
||||
Set it in login.conf(5).
Code:
RESOURCE LIMITS Name Type Notes Description coredumpsize size Maximum coredump size limit. cputime time CPU usage limit. datasize size Maximum data size limit. filesize size Maximum file size limit. maxproc number Maximum number of processes. memorylocked size Maximum locked in core memory size limit. memoryuse size Maximum of core memory use size limit. openfiles number Maximum number of open files per process. sbsize size Maximum permitted socketbuffer size. vmemoryuse size Maximum permitted total VM usage per process. stacksize size Maximum stack size limit.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
Quote:
but I want do this with Apache , I want when I have many request , these request do not use all of my memory and my system dose not hang Last edited by mfaridi; 7th July 2008 at 07:46 AM. |
|
|||
You may also need to limit the maximum number of connections Apache accepts, depending on the worker model you have chosen. Look at the output of 'top' and the RES value. Then set 'MaxClients = Available Memory / RES'.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Memory Not Detected | jrs | OpenBSD Installation and Upgrading | 3 | 19th May 2009 05:50 PM |
KDE4 uses a lot of memory... | mdh | FreeBSD General | 6 | 21st October 2008 06:21 AM |
dwindling memory | chavez243 | FreeBSD General | 15 | 26th August 2008 04:06 PM |
Memory cache | graudeejs | FreeBSD General | 3 | 9th July 2008 03:27 AM |
Apache data transfer limit | cajunman4life | General software and network | 5 | 7th June 2008 05:13 PM |