Lagprobleme mit openSuse 10.2

Steely2

New Member
Hallo,
habe einen Server von Strato mit openSuse 10.2, Apache 2.2, PhP 5.2.5, mySQL 5.0.26

Auf dem Server laufen 3 Domains (HP) + 1 Shoutcaststream + 1 Teamspeak
Userauslastung etwa 200 Clients am Forum, 180 af dem Stream, 50 im Teamspeak.

Seit gestern hat der Server etwa ab Mittags grosse Probleme, Seitenaufbau geht langsam, Stream und TS haben Aussetzer.

Ich häng mal Top (von heute morgen), Servertuning.conf und my.cnf dran.

MOD: Bilder immer als Anhang.

# prefork MPM
<IfModule prefork.c>
# number of server processes to start
# mpm_common - Apache HTTP Server
StartServers 5
# minimum number of server processes which are kept spare
# prefork - Apache HTTP Server
MinSpareServers 10
# maximum number of server processes which are kept spare
# prefork - Apache HTTP Server
MaxSpareServers 15
# highest possible MaxClients setting for the lifetime of the Apache process.
# mpm_common - Apache HTTP Server
ServerLimit 1000
# maximum number of server processes allowed to start
# mpm_common - Apache HTTP Server
MaxClients 400
# maximum number of requests a server process serves
# mpm_common - Apache HTTP Server
MaxRequestsPerChild 1000
</IfModule>



KeepAlive On


MaxKeepAliveRequests 10


KeepAliveTimeout 2


#EnableMMAP off


#EnableSendfile off



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


BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
# The following options will be passed to all MySQL clients
[client]

port = 3306
socket = /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
set-variable=local-infile=0
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 64M
sort_buffer_size = 60M
myisam_sort_buffer_size = 512K
net_buffer_length = 128K
max_allowed_packet = 2M
read_buffer_size = 128K
read_rnd_buffer_size = 128K
thread_stack = 128K
thread_cache_size = 256K
thread_concurrency = 8
max_connections = 400
table_cache = 4048
low_priority_updates = 1
concurrent_insert = 2

query_cache_limit = 4M
query_cache_size = 6M


#skip-networking


# log-bin=mysql-bin

server-id = 1

#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin

# Point the following paths to different dedicated disks
#tmpdir = /tmp/
#log-update = /path-to-dedicated-directory/hostname

# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /var/lib/mysql/
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql/
#innodb_log_arch_dir = /var/lib/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50

# The safe_mysqld script
[safe_mysqld]
err-log=/var/lib/mysql/mysqld.log

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout
 

Attachments

  • top.jpg
    top.jpg
    58.4 KB · Views: 108
Last edited by a moderator:
ja, das wollte ich sowieso machen, der Freund hat mir auf dem alten Server schon geholfen.
Habe aber hier eher Apache im Verdacht, da dieser auch relativ viel Speicher bei Zugriff von den o.a. Usern frisst.

Der alte Server mit Debian 4.0 hatte bei selber Auslastung und der Hälfte an reellem RAM weniger Probleme...

Kann da jemand zur Apache- bzw. Gesamtkonfiguration ne Aussage machen?
 
Also laut Ausgabe von top verwendet dein Rechner kein einziges KB vom Swap Space. Arbeitsspeichermangel kann man deshalb ausschließen.
 
irgend etwas stimmt generell nicht.
Ich brauche etwa 50 Sekunden um das Tuning-primer script auf den Server zu laden.
Eine Anzeigeaktualisierung von WinSCP für einen Ordner mit 1000 Dateien und 90MB braucht etwa ebenso lange.

Einloggvorgang über Putty: 15 Sekunden

Kann mir das nicht wirklich erklären.

Aktueller Top
Und die rot/gelben Einträge des Tuning-Primers im Anhang.
 

Attachments

  • Unbenannt2.JPG
    Unbenannt2.JPG
    118 KB · Views: 99
  • sql.JPG
    sql.JPG
    68.9 KB · Views: 91
Last edited by a moderator:
Haben alle das Problem oder nur du?
Mach mal einen MTR von zu Hause auf deinen Server und schau mal nach, ob an einer Stelle extremer Packetloss auftritt. Ich hatte dieses Problem mit meinem vServer schonmal, da konnte sich aber keiner vom technischen Support erklären, woher das kam, und der Fehler lag eindeutig im Strato-RZ, da alle Leute aus unterschiedlichen Ländern diese Probleme hatten.
 
das Problem haben alle User etwa ab Mittag (denke mal Auslastung).
MTR von heute morgen:

Code:
|------------------------------------------------------------------------------------------|
|                                      WinMTR statistics                                   |
|                       Host              -   %  | Sent | Recv | Best | Avrg | Wrst | Last |
|------------------------------------------------|------|------|------|------|------|------|
|                            speedport.ip -    0 |   71 |   71 |    0 |    0 |    0 |    0 |
|                   No response from host -  100 |   71 |    0 |    0 |    0 |    0 |    0 |
|                             217.0.66.58 -    0 |   70 |   70 |    0 |    4 |   16 |    0 |
|                  f-ea3.F.DE.net.DTAG.DE -    0 |   70 |   70 |    0 |    8 |   63 |   15 |
|                          62.156.139.246 -    0 |   70 |   70 |    0 |    7 |   78 |    0 |
|                so-5-0-0-bcr2.fra.cw.net -    0 |   70 |   70 |    0 |    6 |   16 |    0 |
|                ge-0-3-0-gcr1.bcx.cw.net -    0 |   70 |   70 |   15 |   15 |   16 |   15 |
|                    strato-gw-bcx.cw.net -    0 |   70 |   70 |   15 |   18 |   31 |   16 |
|                            85.214.0.178 -    0 |   70 |   70 |   15 |   16 |   31 |   15 |
|                            85.214.76.68 -    0 |   70 |   70 |   15 |   22 |   62 |   16 |
|________________________________________________|______|______|______|______|______|______|

Irgendwie bekomme ich keine Antwort über MTR, bei Ping gehts.

/edit: Server blockt das wohl, denn auch http://visualroute.visualware.com/ bricht mit "Access denied" ab.
 
Last edited by a moderator:
Nochn paar Antwortzeiten, vielleicht fällt ja noch jemanden etwas ein.


Code:
--------------------------------------------------------------------------------------------
VisualRoute Connection Test to www.gilde-gothic.de
Performed on 22 May 2008 07:14:42 GMT
--------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------------------------------------------------------
| Hop | %loss | IP Address      | Node Name                     | Location               | ms  | Graph      | Network                                     |
-----------------------------------------------------------------------------------------------------------------------------------------------------------
| 0   | 0     | 205.234.111.204 | DTG311.visualware.com         | Ashburn, VA, USA?      | -   |            | Defender Technologies Group  LLC DEFENDER-1 |
| 1   | 0     | 205.234.111.129 | r03-8.iad.defenderhosting.com | Washington, DC, USA    | 0   | +          | Defender Technologies Group  LLC DEFENDER-1 |
| 2   | 0     | 69.65.112.25    | r01.iad.defenderhosting.com   | Washington, DC, USA    | 0   | +          | Defender Technologies Group  LLC DEFENDER-1 |
| 3   | 0     | 69.28.158.173   | ve103.fr4.iad.llnw.net        | Washington, DC, USA    | 1   | +          | Limelight Networks  Inc. LLNW-1             |
| 4   | 0     | 69.28.171.154   | tge4-1.fr4.lga.llnw.net       | New York, NY, USA      | 5   | +          | Limelight Networks  Inc. LLNW-1             |
| 5   | 0     | 69.28.171.85    | tge8-1.fr3.ams.llnw.net       | Amsterdam, Netherlands | 87  |     +      | Limelight Networks  Inc. LLNW-1             |
| 6   | 0     | 69.28.172.114   | ve5.fr4.ams.llnw.net          | Amsterdam, Netherlands | 88  |     +      | Limelight Networks  Inc. LLNW-1             |
| 7   | 0     | 69.28.171.53    | tge1-2.fr4.frf.llnw.net       | Frankfurt, Germany     | 94  |     +      | Limelight Networks  Inc. LLNW-1             |
| 8   | 0     | 80.81.192.110   | atuin.rzone.de                | Frankfurt, Germany?    | 95  |     +-     | DE-CIX Frankfurt IXP                        |
| 9   | 0     | 85.214.1.253    | -                             | Berlin, Germany?       | 107 |     +      | Strato Rechenzentrum  Berlin                |
| 10  | 0     | 85.214.0.70     | -                             | Berlin, Germany?       | 113 |     -+---  | Strato Rechenzentrum  Berlin                |
| 11  | 0     | 85.214.76.68    | illuminated--beast.de         | Berlin, Germany?       | 137 |     --+--- | Strato Rechenzentrum  Berlin                |
-----------------------------------------------------------------------------------------------------------------------------------------------------------

Code:
TraceRoute to 85.214.76.68 [www.gilde-gothic.de]
Hop	(ms)	(ms)	(ms)		IP Address	Host name
1	14	9	11		72.249.0.65	-
2	215	222	203		8.9.232.73	ge-6-18.car1.dallas1.level3.net
3	21	15	17		4.68.19.190	vlan89.csw3.dallas1.level3.net
4	16	17	17		4.69.136.161	ae-83-83.ebr3.dallas1.level3.net
5	32	35	37		4.69.134.22	ae-7.ebr3.atlanta2.level3.net
6	54	39	50		4.69.132.86	ae-2.ebr1.washington1.level3.net
7	42	40	49		4.69.134.142	ae-91-91.csw4.washington1.level3.net
8	46	46	41		4.68.17.210	ae-4-99.edge1.washington4.level3.net
9	42	40	40		4.53.112.2	cable-wirel.edge1.washington4.level3.net
10	127	130	125		195.2.10.250	so-7-0-0-dcr2.amd.cw.net
11	141	135	136		195.2.25.113	xe-4-3-0.xcr1.amd.cw.net
12	148	147	143		195.2.25.109	xe-0-3-0.xcr1.amd.cw.net
13	154	134	137		195.2.25.46	xe-11-1-0.xcr1.fra.cw.net
14	145	134	140		195.2.10.158	as0-dcr2.fra.cw.net
15	143	138	140		195.2.10.77	so-5-0-0-bcr2.fra.cw.net
16	153	153	150		195.2.3.126	ge-0-3-0-gcr1.bcx.cw.net
17	150	153	147		194.221.42.86	strato-gw-bcx.cw.net
18	151	148	155		85.214.0.178	-
19	264	177	148		85.214.76.68	illuminated--beast.de

Code:
Ping 85.214.76.68

[www.gilde-gothic.de]

Round trip time to 85.214.76.68: 153 ms
Round trip time to 85.214.76.68: 155 ms
Round trip time to 85.214.76.68: 255 ms
Round trip time to 85.214.76.68: 193 ms
Round trip time to 85.214.76.68: 151 ms
Round trip time to 85.214.76.68: 153 ms
Round trip time to 85.214.76.68: 149 ms
Round trip time to 85.214.76.68: 252 ms
Round trip time to 85.214.76.68: 215 ms
Round trip time to 85.214.76.68: 151 ms

Average time over 10 pings: 182.7 ms
 
Back
Top