Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: Apache2 заема много памет :(


  • Subject: Re: lug-bg: Apache2 заема много памет :(
  • From: Marian Marinov <mm@xxxxxxxx>
  • Date: Thu, 2 Mar 2006 09:32:16 +0200
  • Delivered-to: lug-bg-list@xxxxxxxxxxxxxxxxxx
  • Delivered-to: lug-bg@xxxxxxxxxxxxxxxxxx

Ако apache-а ти движи php или perl аз лично бих ти препоръчал да погледнеш 
тази директива:

RLimitMEM Directive
Description:	Limits the memory consumption of processes launched by Apache 
children
Syntax:	RLimitMEM bytes|max [bytes|max]
Default:	Unset; uses operating system defaults
Context:	server config, virtual host, directory, .htaccess
Override:	All
Status:	Core
Module:	core

Takes 1 or 2 parameters. The first parameter sets the soft resource limit for 
all processes and the second parameter sets the maximum resource limit. 
Either parameter can be a number, or max to indicate to the server that the 
limit should be set to the maximum allowed by the operating system 
configuration. Raising the maximum resource limit requires that the server is 
running as root, or in the initial startup phase.

This applies to processes forked off from Apache children servicing requests, 
not the Apache children themselves. This includes CGI scripts and SSI exec 
commands, but not any processes forked off from the Apache parent such as 
piped logs.

Memory resource limits are expressed in bytes per process.
See also

    * RLimitCPU
    * RLimitNPROC

Използвай я много внимателно защото е възможно ако не я настроиш правилно да 
прецакаш по-голяма част от приложеният които web сървъра ти поддържа.

Поздрави
  Мариян

On Wednesday 01 March 2006 12:39, deb4o wrote:
> Нормално ли е Apache2 да ми заема толкова памет. Вижда ми се доста.........
>
> memstat -w | grep httpd
>   12636k: PID  4142 (/usr/local/apache2/bin/httpd)
>   14948k: PID  4154 (/usr/local/apache2/bin/httpd)
>   12616k: PID  4364 (/usr/local/apache2/bin/httpd)
>    8316k: PID  4367 (/usr/local/apache2/bin/httpd)
>    8316k: PID  4375 (/usr/local/apache2/bin/httpd)
>   15088k: PID  4377 (/usr/local/apache2/bin/httpd)
>   13728k: PID  4378 (/usr/local/apache2/bin/httpd)
>    8316k: PID  7359 (/usr/local/apache2/bin/httpd)
>    7656k: PID  7361 (/usr/local/apache2/bin/httpd)
>   20536k: PID 13910 (/usr/local/apache2/bin/httpd)
>     584k: /usr/local/apache2/bin/httpd 4142 4154 4364 4367 4375 4377 4378
> 7359 7361 13910
>
> :(



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.