Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

Apache - Improvements

Web Environment

OS - Linux 2.6.18 x86_64
Apache - 2.2.17
Openssl - 1.0.0d
Weblogic - 10

I have been running my application through apache since 2 months. Recently I have heard that enabling mod_deflate could improve performance. I have seen the difference after enabling it.

Can you please tell me what are different ways I can improve the performance?

More details::

Compiled in modules:
  core.c
  mod_authz_host.c
  mod_include.c
  mod_filter.c
  mod_charset_lite.c
  mod_deflate.c
  mod_log_config.c
  mod_log_forensic.c
  mod_env.c
  mod_mime_magic.c
  mod_headers.c
  mod_usertrack.c
  mod_setenvif.c
  mod_version.c
  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_scgi.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c
  mod_ssl.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

Note: Please let me know the improvements related to APACHE ONLY. (not linux & weblogic)

0
Raz
Asked:
Raz
1 Solution
 
underskyCommented:
Hmm, best way to improve performance:

1. Recompile it, and kernel, for your pc:

use -O3 tag for gcc

2. Download lastest stable release of apache2 (httpd) service,
don't change code, they already optimized and stable.

3. All optimization in config, set less (or more) apaches processes for connections.

standart is 150 clients per server:


All is here:

<IfModule mpm_event_module>
    StartServers          2
    MaxClients          10
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>


MaxKeepAliveRequests 100

KeepAliveTimeout 15


btw mod_deflate, not improve performance, they hard load server. But do less traffic load, so best way is optimize packages and client loads.

but if you rly want decrease your traffic, you can also use mod_gzip, but if mod_deflate gzip answers on "fly"

mod_gzip, first create answer, then gzip it, and send.
0
 
RazAuthor Commented:
Can you please elaborate on point 1 ?
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now