Archiv verlassen und diese Seite im Standarddesign anzeigen : Performanceprobleme
löschfinger
14.02.2007, 10:36
Wir haben leider im Moment sehr stark mit der Permance unseres Servers zu kämpfen.
Ein kleiner Überblick unseres Servers:
Hosteurope:
VPS Linux XL 2.0
512 MB RAM
http://hosteurope.de/pics/tabspace5x5.gifgarantiert
896 MB RAM
http://hosteurope.de/pics/tabspace5x5.gifdynamisch
30000 MB
http://hosteurope.de/pics/tabspace5x5.gifSpeicherplatz
1500 GB Traffic
http://hosteurope.de/pics/tabspace5x5.gifinklusiveDas Forum wächst kontinuierlich. Im Moment besuchen uns täglich zwischen 30 - 120 Benutzer (inkl. Gäste). Leider geht die Performence unseres Servers in den Spitzenzeiten ziemlich in die Knie. Weitere Maßnahmen werden wir ergreifen:
Aktive Benutzer anzeige deaktivieren etc.
Nun, es wäre Interessant zu erfahren woher die Perfomanceeinbrüche kommen? Ich vermute das es am zu wenigen Arbeitsspeicher liegt?
Aus den Statistiken des Servers werde ich leider nicht schlau. Die CPU Last dümpelt nur so vor sich rum. Eine weitere Anzeige liegt allerdings ständig bei über 90% eher sogar 98,99%... (Ich kann es jetzt nicht ausm Kopf sagen, da ich momentan auf der Arbeit bin und kein Zugriff auf den Server habe).
Jetzt bräuchten wir auch paar Tipps ob es reichen würde evtl. auf einen VPS Linux XXL 2.0 (http://hosteurope.de/produkt/VPS-Linux-XXL-2.0) zu wechseln bzw. was würdet ihr empfehlen?
Schraubär
14.02.2007, 11:03
512 MB Ram sind eigentlich für die Grösse des Forums mehr als ausreichend.
Ich hab 1024 MB Ram und hab im Schnitt 16.000 Hits pro Tag bei ~800 Aktiven Usern pro Tag zzgl. Gäste und Spider.
Ich Tippe bei Dir eher auf eine schlechte Konfiguration des Apachen.
Oder der Server auf dem die VPS (Vrtuozzo ?!?) läuft ist Hoffnungslos
ausgelastet.
VPS sind ganz nett wenn man erste Erfahrungen mit Serverbetriebssystemen online sammeln möchte.
Bei mir lohnt sich schon der Einsatz eines dedizierten Servers.
Kostet allerdings auch einiges mehr.
Ausser man entscheidet sich für Billighoster wie S4U & Consorten.
Schau Dir mal die Config Dateien des Apachen mal an und Poste die ggf. mal hier.
mr.no-name
14.02.2007, 11:30
Ich vermute, dass bei dir mehrere Probleme gleichzeitig die Performance negativ beeinflussen:
512 MB Ram klingt viel, aber wenn man bedenkt, dass in dem Server evtl. mit 4 oder 8 GB Ram also 8 oder 16 VPS gehostet werden, ist klar, dass der Speicher zwar zur Verfügung steht, aber die Anbindung des Speichers oder der Festplatte der Flaschenhals des ganzen Servers ist.
Selbst wenn du deine Belastung um die hälfte oder mehr reduzierst, gibt es noch die 7 oder 15 anderen VPS auf dem Server, an denen sich nichts geändert hat, sodass die Belastung des Servers kaum weniger wird.Daher rate ich dir, dass du dir entweder einen kleinen Root/Managed Server mietest, oder einen entsprechend leistungsfähigen Webspace suchst, bei dem dann schonmal nicht 8 bis 16 Betriebssysteme auf dem Server die Festplatte und die Speicheranbindung verlangsamen.
Wenn du Interesse hast und dich bei mir meldest, könnte ich dir Premium Webspace oder Managed Server anbieten.
löschfinger
14.02.2007, 20:34
@Schraubbär thx schon mal für dein Hilfe. Hab auch vergessen zu erwähnen das wir einige Add On´s & Hacks benutzen. Unter anderem:
vBSEO
iTrader
Paar kleine Hacks
Hier mal die Config Datei:
#
# /etc/apache2/httpd.conf
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs-2.0/> for detailed information about
# the directives.
# Based upon the default apache configuration file that ships with apache,
# which is based upon the NCSA server configuration files originally by Rob
# McCool. This file was knocked together by Peter Poeml <poeml+apache@suse.de>.
# If possible, avoid changes to this file. It does mainly contain Include
# statements and global settings that can/should be overridden in the
# configuration of your virtual hosts.
# Overview of include files, chronologically:
#
# httpd.conf
# |
# |-- uid.conf . . . . . . . . . . . . . . UserID/GroupID to run under
# |-- server-tuning.conf . . . . . . . . . sizing of the server (how many processes to start, ...)
# |-- sysconfig.d/loadmodule.conf . . . . . load these modules
# |-- listen.conf . . . . . . . . . . . . . IP adresses / ports to listen on
# |-- mod_log_config.conf . . . . . . . . . define logging formats
# |-- sysconfig.d/global.conf . . . . . . . server-wide general settings
# |-- mod_status.conf . . . . . . . . . . . restrict access to mod_status (server monitoring)
# |-- mod_info.conf . . . . . . . . . . . . restrict access to mod_info
# |-- mod_usertrack.conf . . . . . . . . . defaults for cookie-based user tracking
# |-- mod_autoindex-defaults.conf . . . . . defaults for displaying of server-generated directory listings
# |-- mod_mime-defaults.conf . . . . . . . defaults for mod_mime configuration
# |-- errors.conf . . . . . . . . . . . . . customize error responses
# |-- ssl-global.conf . . . . . . . . . . . SSL conf that applies to default server _and all_ virtual hosts
# |
# |-- default-server.conf . . . . . . . . . set up the default server that replies to non-virtual-host requests
# | |--mod_userdir.conf . . . . . . . . enable UserDir (if mod_userdir is loaded)
# | `--conf.d/apache2-manual?conf . . . add the docs ('?' = if installed)
# |
# |-- sysconfig.d/include.conf . . . . . . your include files
# | (for each file to be included here, put its name
# | into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
# |
# `-- vhosts.d/ . . . . . . . . . . . . . . for each virtual host, place one file here
# `-- *.conf . . . . . . . . . . . . . (*.conf is automatically included)
#
#
# Files marked are created from sysconfig upon server restart: instead of
# these files, you edit /etc/sysconfig/apache2
# Filesystem layout:
#
# /etc/apache2/
# |-- conf.d/
# | |-- apache2-manual.conf . . . . . . . conf that comes with apache2-doc
# | |-- mod_php4.conf . . . . . . . . . . (example) conf that comes with apache2-mod_php4
# | `-- ... . . . . . . . . . . . . . . . other configuration added by packages
# |-- default-server.conf
# |-- errors.conf
# |-- httpd.conf . . . . . . . . . . . . . top level configuration file
# |-- listen.conf
# |-- magic
# |-- mime.types -> ../mime.types
# |-- mod_autoindex-defaults.conf
# |-- mod_info.conf
# |-- mod_log_config.conf
# |-- mod_mime-defaults.conf
# |-- mod_perl-startup.pl
# |-- mod_status.conf
# |-- mod_userdir.conf
# |-- mod_usertrack.conf
# |-- server-tuning.conf
# |-- ssl-global.conf
# |-- ssl.crl/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Revocation Lists (CRL)
# |-- ssl.crt/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificates
# |-- ssl.csr/ . . . . . . . . . . . . . . PEM-encoded X.509 Certificate Signing Requests
# |-- ssl.key/ . . . . . . . . . . . . . . PEM-encoded RSA Private Keys
# |-- ssl.prm/ . . . . . . . . . . . . . . public DSA Parameter Files
# |-- sysconfig.d/ . . . . . . . . . . . . files that are created from /etc/sysconfig/apache2
# | |-- global.conf
# | |-- include.conf
# | `-- loadmodule.conf
# |-- uid.conf
# `-- vhosts.d/ . . . . . . . . . . . . . . put your virtual host configuration (*.conf) here
# |-- vhost-ssl.template
# `-- vhost.template
### Global Environment ######################################################
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests.
# run under this user/group id
Include /etc/apache2/uid.conf
# - how many server processes to start (server pool regulation)
# - usage of KeepAlive
Include /etc/apache2/server-tuning.conf
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
ErrorLog /var/log/apache2/error_log
# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf
# IP addresses / ports to listen on
Include /etc/apache2/listen.conf
# predefined logging formats
Include /etc/apache2/mod_log_config.conf
# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf
# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf
# optional cookie-based user tracking
# read the documentation before using it!!
Include /etc/apache2/mod_usertrack.conf
# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf
# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf
# set up (customizable) error responses
Include /etc/apache2/errors.conf
# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
# List of resources to look for when the client requests a directory
DirectoryIndex at_domains_index.html index.html index.shtml index.html.var index.cfm
### 'Main' server configuration #############################################
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
Include /etc/apache2/default-server.conf
# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf
### Virtual server configuration ############################################
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
Include /etc/apache2/vhosts.d/*.conf
# Note: instead of adding your own configuration here, consider
# adding it in your own file (/etc/apache2/httpd.conf.local)
# putting its name into APACHE_CONF_INCLUDE_FILES in
# /etc/sysconfig/apache2 -- this will make system updates
# easier :)
AddOutputFilter INCLUDES .shtml
AddType text/html .shtml
Include /etc/apache2/httpd.include
@mr.no-name danke fürs Angebot. Evtl. komm ich auf dich zurück.
Schraubär
15.02.2007, 01:57
Ah, so schauts bei Dir aus...
Dann einmal den Inhalt von:
/etc/apache2/server-tuning.conf
löschfinger
15.02.2007, 22:43
Bitte sehr:
##
## Server-Pool Size Regulation (MPM specific)
##
# the MPM (multiprocessing module) is not a dynamically loadable module in the
# sense of other modules. It is a compile time decision which one is used. We
# provide different apache2 MPM packages, containing different httpd2 binaries
# compiled with the available MPMs. See APACHE_MPM in /etc/sysconfig/apache2.
# prefork MPM
<IfModule prefork.c>
# number of server processes to start
StartServers 1
# minimum number of server processes which are kept spare
MinSpareServers 2
# maximum number of server processes which are kept spare
MaxSpareServers 5
# highest possible MaxClients setting for the lifetime of the Apache process.
StartServers 75
# maximum number of server processes allowed to start
MaxClients 10
# maximum number of requests a server process serves
MaxRequestsPerChild 0
</IfModule>
# worker MPM
<IfModule worker.c>
# initial number of server processes to start
StartServers 1
# minimum number of worker threads which are kept spare
MinSpareThreads 25
# maximum number of worker threads which are kept spare
MaxSpareThreads 75
# maximum number of simultaneous client connections
MaxClients 150
# constant number of worker threads in each server process
ThreadsPerChild 25
# maximum number of requests a server process serves
MaxRequestsPerChild 0
</IfModule>
# leader MPM
<IfModule leader.c>
# initial number of server processes to start
StartServers 1
# minimum number of worker threads which are kept spare
MinSpareThreads 25
# maximum number of worker threads which are kept spare
MaxSpareThreads 75
# maximum number of simultaneous client connections
MaxClients 150
# constant number of worker threads in each server process
ThreadsPerChild 25
# maximum number of requests a server process serves
MaxRequestsPerChild 0
</IfModule>
# perchild MPM
<IfModule perchild.c>
# constant number of server processes
NumServers 5
# initial number of worker threads in each server process
StartThreads 5
# minimum number of worker threads which are kept spare
MinSpareThreads 5
# maximum number of worker threads which are kept spare
MaxSpareThreads 10
# maximum number of worker threads in each server process
MaxThreadsPerChild 20
# maximum number of connections per server process
MaxRequestsPerChild 0
AcceptMutex fcntl
</IfModule>
# metux MPM
<IfModule metuxmpm.c>
# initial number of worker threads in each server process
StartThreads 5
# minimum number of worker threads which are kept spare
MinSpareThreads 5
# maximum number of worker threads which are kept spare
MaxSpareThreads 10
# maximum number of connections per server process
MaxRequestsPerChild 0
Multiplexer "wwwrun" "www"
</IfModule>
#
# 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 15
#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablemmap
#
#EnableMMAP off
#
# EnableSendfile: Control whether the sendfile kernel support is
# used to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile
#
#EnableSendfile off
#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash. This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
Mechelaar
17.06.2007, 16:46
Hallo,
wie ist die Geschichte denn ausgegangen ? Bin im Moment am überlegen ob ich von einem 1und1 V-Server zu Hosteurope wechseln soll, da die Performance bei 1und1 mehr als bescheiden ist. Hatte eigentlich an genau den Linux XL 2.0 gedacht, da er genau in meinem finanziellen Rahmen liegt.
Wenn´s dort jedoch nicht besser ist, dann brauche ich auch nicht wechseln.
löschfinger
18.06.2007, 12:46
Eine Geschichte mit Happy End. :D
Wir sind nun auf einen dedicated Server gewechselt, den wir mit einem Partner teilen.
CPU: Core2Duo 2.1GHz
RAM: 2048MB DDR2
http://www.ipx-server.de/
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.