Re: maximize Apache services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Motty,

Okay, so you are using the prefork MPM.
I do not have access to a FreeBSD system.
But the performance issues should be similar to Linux.
You could probably see immediate performance improvements by switching to worker MPM.
- http://httpd.apache.org/docs/2.2/mod/worker.html

The prefork MPM uses only one thread per process.
So it is more demanding on system resources.
The worker MPM allows for multiple threads per child process.
Here is a quote from the above link:
"By using threads to serve requests, it is able to serve a large number of requests with fewer system resources than a process-based server. However, it retains much of the stability of a process-based server by keeping multiple processes available, each with many threads."
The link also lists several directives that can be tinkered with.

To get the worker MPM you would need to use the --with-mpm=worker option on the configure step.
- http://httpd.apache.org/docs/2.2/mpm.html#choosing
- http://httpd.apache.org/docs/2.2/install.html#configure

I hope this helps.

Thanks,

Mike

On 6/10/2013 7:33 AM, motty cruz wrote:
Hi Mike, 

Thanks for your replied; I'm using FreeBSD 9.1, here is the list of modules

Loaded Modules:
 core_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 authn_file_module (shared)
 authn_anon_module (shared)
 authn_default_module (shared)
 authn_alias_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_dbm_module (shared)
 authz_owner_module (shared)
 authz_default_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 file_cache_module (shared)
 cache_module (shared)
 disk_cache_module (shared)
 dumpio_module (shared)
 reqtimeout_module (shared)
 include_module (shared)
 filter_module (shared)
 charset_lite_module (shared)
 deflate_module (shared)
 log_config_module (shared)
 logio_module (shared)
 env_module (shared)
 mime_magic_module (shared)
 expires_module (shared)
 headers_module (shared)
 usertrack_module (shared)
 unique_id_module (shared)
 setenvif_module (shared)
 version_module (shared)
 mime_module (shared)
 dav_module (shared)
 status_module (shared)
 autoindex_module (shared)
 asis_module (shared)
 info_module (shared)
 cgi_module (shared)
 dav_fs_module (shared)
 vhost_alias_module (shared)
 negotiation_module (shared)
 dir_module (shared)
 imagemap_module (shared)
 actions_module (shared)
 speling_module (shared)
 userdir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
 php5_module (shared)
Syntax OK



On Fri, Jun 7, 2013 at 4:09 PM, Mike Rumph <mike.rumph@xxxxxxxxxx> wrote:
Hello Motty,

You can adjust any number of performance directives as in the following link:
- http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients

And here is a link for Apache HTTP Server performance tuning in general:
- http://httpd.apache.org/docs/2.2/misc/perf-tuning.html

What operating system and what MPM are you running?

Thanks,

Mike



On 6/7/2013 12:39 PM, motty cruz wrote:
Hello  All,
it seems that every time some one like 80legs or any other crawler craws my website my server goes down. do you k now hot to maximize the number of child server on Apache to avoid turning off my machine?

my Apache server is running latest Mysql, PHP and Apache22 virtual machine 2028MB of RAM

Thanks in advance


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux