Post Reply  Post Thread 
Pages (3): « First < Previous 1 2 [3] Last »
Multi forum server optimization ?
tomek
Junior Member
**

Posts: 15
Group: Registered
Joined: Aug 2006
Status: Offline
Reputation: 0
Post: #21
RE: Multi forum server optimization ?

It doesn't help Sad

01-15-2007 10:02 AM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 222
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 1
Post: #22
RE: Multi forum server optimization ?

Get a top and free -m status from peak times please and post your httpd.conf data as well.

01-15-2007 07:05 PM
Find all posts by this user Quote this message in a reply
tomek
Junior Member
**

Posts: 15
Group: Registered
Joined: Aug 2006
Status: Offline
Reputation: 0
Post: #23
RE: Multi forum server optimization ?

Code:
top - 20:53:56 up 2 days, 13:28,  1 user,  load average: 1.47, 1.03, 0.60
Tasks: 128 total,   2 running, 126 sleeping,   0 stopped,   0 zombie
Cpu(s): 19.1%us, 13.3%sy,  0.0%ni, 62.4%id,  4.2%wa,  0.0%hi,  0.0%si,  0.9%st
Mem:   1966260k total,  1938140k used,    28120k free,   134436k buffers
Swap:   524280k total,       52k used,   524228k free,  1087456k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
9975 mysql     15   0 1719m 254m 5176 S 13.0 13.3  23:25.77 mysqld
29151 root      16   0  2164 1176  856 R  5.9  0.1   0:01.30 top
29165 root      18   0  1520  568  484 S  5.0  0.0   0:00.16 getty
29166 root      18   0  1520  568  484 S  3.4  0.0   0:00.11 getty
26564 www-data  15   0 82216  10m 8668 S  0.3  0.6   0:00.69 apache
26590 www-data  15   0 82144  10m 8632 S  0.3  0.6   0:01.12 apache
26600 www-data  15   0 82136  10m 8596 S  0.3  0.6   0:00.66 apache
26601 www-data  15   0 82304  12m 9.8m S  0.3  0.6   0:01.38 apache
26602 www-data  16   0 82380  11m 9560 S  0.3  0.6   0:01.08 apache
26607 www-data  15   0 82288  11m 9180 S  0.3  0.6   0:01.18 apache
26612 www-data  15   0 82160 9.9m 7808 S  0.3  0.5   0:00.67 apache
26621 www-data  15   0 82120  11m 9860 S  0.3  0.6   0:01.07 apache
26623 www-data  15   0 82192  10m 8880 S  0.3  0.6   0:00.79 apache
26724 www-data  15   0 82268  11m 9224 S  0.3  0.6   0:01.14 apache
29058 www-data  15   0 82068 7220 5000 S  0.3  0.4   0:00.13 apache
    1 root      16   0  1552  628  532 S  0.0  0.0   0:06.16 init
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.10 ksoftirqd/0
    4 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.02 events/0
    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 khelper
    7 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
    8 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 xenwatch
    9 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 xenbus
   16 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kblockd/0
   20 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 khubd
   59 root      15   0     0    0    0 S  0.0  0.0   0:00.02 pdflush
   60 root      15   0     0    0    0 S  0.0  0.0   0:07.70 pdflush
   62 root      13  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0
   61 root      15   0     0    0    0 S  0.0  0.0   0:15.36 kswapd0
  578 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod
  658 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
  663 root      15   0  1524  552  472 S  0.0  0.0   0:04.61 logd
  806 root      11  -4  2096  580  352 S  0.0  0.0   0:00.10 udevd
1646 root      15   0     0    0    0 S  0.0  0.0   0:04.72 kjournald
1802 root      16   0  1524  520  444 S  0.0  0.0   0:00.00 getty
1859 root      16   0  1644  496  408 S  0.0  0.0   0:00.01 dd


Code:
free -m
             total       used       free     shared    buffers     cached
Mem:          1920       1885         34          0        131       1063
-/+ buffers/cache:        690       1229
Swap:          511          0        511


Code:
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive On

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 4

#
# Server-pool size regulation.  Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request.  If there are fewer than MinSpareServers, it creates
# a new spare.  If there are more than MaxSpareServers, some of the
# spares die off.  The default values are probably OK for most sites.
#
MinSpareServers 5
MaxSpareServers 10

#
# Number of servers to start initially --- should be a reasonable ballpark
# figure.
#
StartServers 5

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 150

#
# MaxRequestsPerChild: the number of requests each child process is
# allowed to process before the child dies.  The child will exit so
# as to avoid problems after prolonged use when Apache (and maybe the
# libraries it uses) leak memory or other resources.  On most systems, this
# isn't really needed, but a few (such as Solaris) do have notable leaks
# in the libraries. For these platforms, set to something like 10000
# or so; a setting of 0 means unlimited.
#
# NOTE: This value does not include keepalive requests after the initial
#       request per connection. For example, if a child process handles
#       an initial request and 10 subsequent "keptalive" requests, it
#       would only count as 1 request towards this limit.
#
MaxRequestsPerChild 1000

01-15-2007 08:01 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 222
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 1
Post: #24
RE: Multi forum server optimization ?

That's a fine load, anything below is 1.50-2 is alright. What's the main problem there?

You can lower the Timeout from 300 to 30 in httpd.conf..

01-16-2007 12:52 PM
Find all posts by this user Quote this message in a reply
tomek
Junior Member
**

Posts: 15
Group: Registered
Joined: Aug 2006
Status: Offline
Reputation: 0
Post: #25
RE: Multi forum server optimization ?

My load avarage is 0.48 Smile I will try to set Timeout to 30.

01-16-2007 03:19 PM
Find all posts by this user Quote this message in a reply
Pages (3): « First < Previous 1 2 [3] Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: