Server Load Tinggi


Status
Not open for further replies.

rahab

Poster 2.0
Ini Pak ..

[root@si /]# dir -l /etc/httpd/conf; cat /etc/httpd/conf/httpd.conf|grep -i incl ude
total 52
-rw-r--r-- 1 root root 34419 Jan 22 15:59 httpd.conf
-rw-r--r-- 1 root root 13139 Feb 10 00:29 magic
LoadModule include_module modules/mod_include.so
Include conf.d/*.conf
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# Possible values include: debug, info, notice, warn, error, crit,
# "combinedio" includes actual counts of actual bytes received (%I) and sent (%O ); this
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Note that if you include a trailing / on fakename then the server will
# We include the /icons/ alias for FancyIndexed directory listings. If you
# and not include in the listing. Shell-style wildcarding is permitted.
# For files that include their own HTTP headers:
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
AddOutputFilter INCLUDES .shtml
# includes to substitute the appropriate text.
# Alias /error/include/ "/your/include/path/"
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
<IfModule mod_include.c>
Options IncludesNoExec
AddOutputFilter Includes html
# a directory that does not include the trailing slash. This fixes a
[root@si /]#
 

rahab

Poster 2.0
Berikut update server load ( tambah parah aja )


load_parah.jpg


Harus diedit apanya yah?
 

FluidaWeb

Hosting Guru
dulu pernah pakai nginx-proxy phpfcgi juga punya masalah sejenis,, akhirnya ganti ke nginx phpfpm dan tidak bermasalah lagi
 

rahab

Poster 2.0
Ini tuan :

[root@si /]# cat /etc/rc.d/init.d/httpd
#!/bin/bash
#
# httpd Startup script for the Apache HTTP Server
#
# chkconfig: - 85 15
# description: The Apache HTTP Server is an efficient and extensible \
# server implementing the current HTTP standards.
# processname: httpd
# config: /etc/httpd/conf/httpd.conf
# config: /etc/sysconfig/httpd
# pidfile: /var/run/httpd/httpd.pid
#
### BEGIN INIT INFO
# Provides: httpd
# Required-Start: $local_fs $remote_fs $network $named
# Required-Stop: $local_fs $remote_fs $network
# Should-Start: distcache
# Short-Description: start and stop Apache HTTP Server
# Description: The Apache HTTP Server is an extensible server
# implementing the current HTTP standards.
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

if [ -f /etc/sysconfig/httpd ]; then
. /etc/sysconfig/httpd
fi

# Start httpd in the C locale by default.
HTTPD_LANG=${HTTPD_LANG-"C"}

# This will prevent initlog from swallowing up a pass-phrase prompt if
# mod_ssl needs a pass-phrase from the user.
INITLOG_ARGS=""

# Set HTTPD=/usr/sbin/httpd.worker in /etc/sysconfig/httpd to use a server
# with the thread-based "worker" MPM; BE WARNED that some modules may not
# work correctly with a thread-based MPM; notably PHP will refuse to start.

# Path to the apachectl script, server binary, and short-form for messages.
apachectl=/usr/local/apache/bin/apachectl
httpd=${HTTPD-/usr/local/apache/bin/httpd}
prog=httpd
pidfile=${PIDFILE-/usr/local/apache/logs/httpd.pid}
lockfile=${LOCKFILE-/var/lock/subsys/httpd}
RETVAL=0
STOP_TIMEOUT=${STOP_TIMEOUT-10}

# The semantics of these two functions differ from the way apachectl does
# things -- attempting to start while running is a failure, and shutdown
# when not running is also a failure. So we just do it the way init scripts
# are expected to behave here.
start() {
echo -n $"Starting $prog: "
LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}

# When stopping httpd, a delay (of default 10 second) is required
# before SIGKILLing the httpd parent; this gives enough time for the
# httpd parent to SIGKILL any errant children.
stop() {
echo -n $"Stopping $prog: "
killproc -p ${pidfile} -d ${STOP_TIMEOUT} $httpd
RETVAL=$?
echo
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
}
reload() {
echo -n $"Reloading $prog: "
if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
RETVAL=6
echo $"not reloading due to configuration syntax error"
failure $"not reloading $httpd due to configuration syntax error"
else
# Force LSB behaviour from killproc
LSB=1 killproc -p ${pidfile} $httpd -HUP
RETVAL=$?
if [ $RETVAL -eq 7 ]; then
failure $"httpd shutdown"
fi
fi
echo
}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status -p ${pidfile} $httpd
RETVAL=$?
;;
restart)
stop
start
;;
condrestart|try-restart)
if status -p ${pidfile} $httpd >&/dev/null; then
stop
start
fi
;;
force-reload|reload)
reload
;;
graceful|help|configtest|fullstatus)
$apachectl $@
RETVAL=$?
;;
*)
echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|force-reload|reload|status|fullstatus|graceful|help|configtest}"
RETVAL=2
esac

exit $RETVAL
[root@si /]#
 

rahab

Poster 2.0
Satu lagi :

[root@si /]# ps aux|grep httpd; ps aux|grep php
root 4875 0.0 0.0 62428 812 ? Ss Mar11 0:54 /usr/local/apache/bin/httpd
nobody 12167 0.0 0.2 62908 2840 ? S 18:04 0:00 /usr/local/apache/bin/httpd
nobody 12934 0.0 0.2 62836 2856 ? S 18:16 0:00 /usr/local/apache/bin/httpd
nobody 12936 0.0 0.2 62700 2736 ? S 18:16 0:00 /usr/local/apache/bin/httpd
nobody 12937 0.0 0.2 62908 2864 ? S 18:16 0:00 /usr/local/apache/bin/httpd
nobody 13357 0.0 0.2 62700 2660 ? S 18:23 0:00 /usr/local/apache/bin/httpd
nobody 13369 0.0 0.2 62836 2760 ? S 18:23 0:00 /usr/local/apache/bin/httpd
nobody 13547 0.0 0.2 62788 2676 ? S 18:25 0:00 /usr/local/apache/bin/httpd
nobody 13563 0.0 0.2 62796 2652 ? S 18:25 0:00 /usr/local/apache/bin/httpd
nobody 13643 0.0 0.2 62700 2648 ? S 18:26 0:00 /usr/local/apache/bin/httpd
nobody 13659 0.0 0.2 62700 2652 ? S 18:27 0:00 /usr/local/apache/bin/httpd
nobody 13765 0.0 0.2 62564 2340 ? S 18:28 0:00 /usr/local/apache/bin/httpd
nobody 13767 0.0 0.2 62564 2404 ? S 18:28 0:00 /usr/local/apache/bin/httpd
nobody 13768 0.0 0.2 62564 2404 ? S 18:28 0:00 /usr/local/apache/bin/httpd
root 13771 0.0 0.0 103312 888 pts/0 S+ 18:28 0:00 grep httpd
clientwebsaya 13760 16.5 6.0 173656 63812 ? S 18:28 0:00 /usr/local/bin/php-cgi
clientwebsaya 13764 8.7 3.7 149320 39684 ? S 18:28 0:00 /usr/local/bin/php-cgi
clientwebsaya 13766 12.2 5.4 165672 57272 ? R 18:28 0:00 /usr/local/bin/php-cgi
clientwebsaya 13769 12.5 3.2 140496 34416 ? R 18:28 0:00 /usr/local/bin/php-cgi
root 13773 0.0 0.0 103312 884 pts/0 S+ 18:28 0:00 grep php
 

mustafaramadhan

Hosting Guru
Kelihatannya httpd di-compile khusus sehingga letak di /usr/local/apache/bin dan bukan di /usr/sbin/.

Bisa jadi main configure (httpd.conf) juga berbeda letak.

Coba infokan 'which httpd; /usr/local/apache/bin/httpd -V'.
 

rahab

Poster 2.0
Ini tuan :

[root@si /]# which httpd; /usr/local/apache/bin/httpd -V
/usr/sbin/httpd
Server version: Apache/2.2.27 (Unix)
Server built: Dec 31 2015 12:40:53
Server's Module Magic Number: 20051115:33
Server loaded: APR 1.5.1, APR-Util 1.5.3
Compiled using: APR 1.5.1, APR-Util 1.5.3
Architecture: 64-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
[root@si /]#
 
Status
Not open for further replies.

Top