MySQL zwingt Server in die Knie

Und wo bleibt die lang ersehnte Auswertung von mysqltuner|tuning-primer?

Da hier konkrete Lücken in den Graphen entstehen (und die Speicher-Auslastung lässt es ebenfalls vermuten), tippe ich auf zu hohen Speicherverbrauch auf einmal. Der Server rennt in den Swap und kommt vor lauter Swappen zu nichts Anderem mehr. Kein weiterer Prozess läuft vernünftig und daher werden die Graphen nicht mehr weiter fortgeführt.

Da drängt sich mir die Frage auf, wie viele von den über 1.100 Prozessen wohl geforkte Apache-Prozesse sind, die Speicher auffressen...

Lass mal Deine Apache-MPM-Konfiguration sehen.

huschi.
 
Apache benutzt das MPM Worker
eine spezielle Konfiguration gibt es hierfür nicht - Apache2 verwaltet dies alles selbst (default)

PHP:
        -- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -

MySQL Version 5.0.51a-24+lenny4-log x86_64

Uptime = 0 days 4 hrs 39 min 35 sec
Avg. qps = 11960
Total Questions = 200643469
Threads Connected = 11

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 3 sec.
You have 53 out of 200643496 that take longer than 3 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 3
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 11
Historic max_used_connections = 65
The number of used connections is 32% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 77 M
Current InnoDB data space = 31 M
Current InnoDB buffer pool free = 99 %
Current innodb_buffer_pool_size = 3.21 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 3.45 G
Configured Max Per-thread Buffers : 599 M
Configured Max Global Buffers : 3.26 G
Configured Max Memory Limit : 3.85 G
Physical Memory : 11.75 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 988 M
Current key_buffer_size = 24 M
Key cache miss rate is 1 : 2671
Key buffer free ratio = 42 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 24 M
Current query_cache_used = 14 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 59.82 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 512.00 K
You have had 471 queries where a join could not use an index properly
You have had 13 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 65535 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 32662 tables
You have a total of 15762 tables
You have 15995 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 32 M
Current tmp_table_size = 32 K
Of 22604 temp tables, 14% were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 588 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 1381
You may benefit from selective use of InnoDB.
 
Apache benutzt das MPM Worker
eine spezielle Konfiguration gibt es hierfür nicht - Apache2 verwaltet dies alles selbst (default)
Doch es gibt Einstellungen für den Worker. Gib uns die Default-Werte, da jede Distri andere einstellt und ich nicht alle auswendig kenne.
Und auch die Werte Deiner fcgi-Einstellungen. Denn irgendein Prozess forkt sich bei Dir durch die Decke.

Historic max_used_connections = 65
Wenn ich davon aus gehe, dass diese Werte während dem letzten Bot-Lauf aufgenommen worden sind, dann waren lediglich 65 PHP-Scripte gleichzeitig am laufen.
Also bleibt die Frage: Welcher Prozess vervielfältigt sich und frisst damit den Speicher auf?
Mein aktueller Tipp: fcgid.

Max Memory Ever Allocated : 3.45 G
MySQL frisst also nicht den ganzen Speicher auf.
Du suchst also von Anfang an an der falschen Stelle.

Current key_buffer_size = 24 M
Das ist eine ganze Menge. Und laut der Tables-Anzahl und groben Erfahrungswerten nach zu urteilen, wirklich zu hoch.

Current read_rnd_buffer_size = 256 K
Current join_buffer_size = 512.00 K
Current read_buffer_size = 128 K
Diese Werte scheinen mir - angesichts des vorhandenen Speichers - etwas zu klein.

huschi.
 
Hallo,

in der apache2.conf des betroffenen Servers gibt es keine Parametrierung für den Worker MPM. Die Defaultwerte die Apache Standartmäßig nutzt sind folgende:

Code:
# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75 
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

Welche nun der betroffene Server nutzt kann ich gar nicht sagen; aber
wenn man sich die von Apache vorhandene Statusseite anschaut sieht man das Apache die Threads selbst verwaltet und nach Bedarf individuell anpasst.


Hier noch das Starter-Script für FCGID

Code:
umask 022
PHPRC='/var/www/php-fcgi-scripts/xxx/xxx.de/'
export PHPRC
PHP_FCGI_CHILDREN=1
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi -c '/var/www/php-fcgi-scripts/xxx/xxx.de/'
und zum guten Schluss noch die Einstellungen der fcgid.conf:

Code:
<IfModule mod_fcgid.c>
  AddHandler	fcgid-script .fcgi
  IPCConnectTimeout 60
ProcessLifeTime 900
BusyTimeout 60
BusyScanInterval 320
ErrorScanInterval 3
ZombieScanInterval 3
</IfModule>

Auf eine Empfehlung hin habe ich die original Config für MySQL die Nacht nochmal wieder hergestellt daher hier das Update der ausgabe von Tuning-primer:

Code:
MySQL Version 5.0.51a-24+lenny4-log x86_64

Uptime = 0 days 7 hrs 52 min 3 sec
Avg. qps = 129
Total Questions = 3674197
Threads Connected = 13

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 3 sec.
You have 9 out of 3674218 that take longer than 3 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 1
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 14
Historic max_used_connections = 25
The number of used connections is 12% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 77 M
Current InnoDB data space = 31 M
Current InnoDB buffer pool free = 98 %
Current innodb_buffer_pool_size = 3.21 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 3.34 G
Configured Max Per-thread Buffers : 599 M
Configured Max Global Buffers : 3.26 G
Configured Max Memory Limit : 3.85 G
Physical Memory : 11.75 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 988 M
Current key_buffer_size = 24 M
Key cache miss rate is 1 : 192
Key buffer free ratio = 27 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 24 M
Current query_cache_used = 16 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 67.88 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 512.00 K
You have had 870 queries where a join could not use an index properly
You have had 15 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 65535 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 32662 tables
You have a total of 15773 tables
You have 15888 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 32 M
Current tmp_table_size = 32 K
Of 36945 temp tables, 15% were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 2680 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 935
You may benefit from selective use of InnoDB.

Leider gab es in der Zeit scheinbar keinen Botzugriff.
Sobald ich nochmal einen Bot-Zugriff feststelle poste ich die Ausgabe von Tuning-primer erneut.
 
Die Defaultwerte die Apache Standartmäßig nutzt sind folgende:
Ich hab keine Lust auf lange Diskussionen. Dir sollte einfach klar sein, dass wenn man nach Einstellungen fragt, genau sowas als Antwort erwartet wird.
Das spart Deine und unsere Zeit und verdirbt nicht die Laune.

MaxRequestsPerChild 0
Auch beim MPM-Worker bietet es sich an, dass er seine Threads regelmäßig neu erstellt um evtl. auftretende Speicher-Leaks zu beseitigen.
Ich nehme gerne einen Wert rund zwischen 1000 bis 10000.
Hängt immer davon ab, wie Speicherlastig die Scripte sind und ob sie von "Zwischenpuffern" profitieren.

Welche nun der betroffene Server nutzt kann ich gar nicht sagen;
Sollte man aber können. Bzw. Verständnis dazu haben, wie der Apache tickt. Denn zur eigenständigen Verwaltung der Threads braucht er Ober- und Untergrenzen in denen er sich bewegen darf.

Hier noch das Starter-Script für FCGID
PHP_FCGI_CHILDREN=1
Bitte die Doku von fcgid lesen. Denn das könnte bereits der Fehler sein.
Code:
    PHP child process management (PHP_FCGI_CHILDREN)
    should always be disabled with mod_fcgid, which will only route
    one request at a time to application processes it has spawned;
    thus, any child processes created by PHP will not be used
    effectively.  (Additionally, the PHP child processes may not be 
    terminated properly.) By default, and with the environment
    variable setting "PHP_FCGI_CHILDREN=0", PHP child
    process management is disabled.

und zum guten Schluss noch die Einstellungen der fcgid.conf:
Bekannter Bug in fcgid: ein <VirtualHost ...> übernimmt nicht die hier gesetzten Einstellungen sondern stellt sie alle wieder auf die Default-Werte.
Oder anders formuliert: Diese Parameter sollten noch einmal in jedem VirtualHost wiederholt werden.

hier das Update der ausgabe von Tuning-primer
Aktuell kein wesentlicher Mehrwert. Meine Anmerkungen hab ich ja oben schon geschrieben.

huschi.
 
so gerade ist eine solche Anfrage nochmal durchgerockt hier -
hier nochmal tuning primer:

Code:
-- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -

MySQL Version 5.0.51a-24+lenny4-log x86_64

Uptime = 0 days 12 hrs 25 min 17 sec
Avg. qps = 3806
Total Questions = 170227713
Threads Connected = 17

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 3 sec.
You have 17 out of 170228841 that take longer than 3 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 4
Current threads_cached = 3
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 200
Current threads_connected = 16
Historic max_used_connections = 35
The number of used connections is 17% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 77 M
Current InnoDB data space = 31 M
Current InnoDB buffer pool free = 98 %
Current innodb_buffer_pool_size = 3.21 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 3.36 G
Configured Max Per-thread Buffers : 599 M
Configured Max Global Buffers : 3.26 G
Configured Max Memory Limit : 3.85 G
Physical Memory : 11.75 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 988 M
Current key_buffer_size = 24 M
Key cache miss rate is 1 : 1274
Key buffer free ratio = 27 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 24 M
Current query_cache_used = 17 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 72.25 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 512.00 K
You have had 1816 queries where a join could not use an index properly
You have had 27 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 65535 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 32662 tables
You have a total of 15773 tables
You have 15982 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 32 M
Current tmp_table_size = 32 K
Of 74552 temp tables, 19% were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 1243 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 2357
You may benefit from selective use of InnoDB.
 
Ließt Du auch was ich antworte oder ist das alles für die Katz?
Bitte um Antwort, denn sonst kann ich meine Zeit anderweitig verbringen. :(

huschi.
 
Sorry, klar lese ich was du schreibst.

Den MPM Worker hab ich jetzt mit folgenden Werten eingebunden:
Code:
<IfModule mpm_worker_module>
    StartServers               2
    MaxClients             400
    MinSpareThreads          25
    MaxSpareThreads          75 
    ThreadsPerChild          25
    MaxRequestsPerChild    100
</IfModule>

Den Wert für
Code:
PHP_FCGI_CHILDREN=1
hab ich auf 0 gestellt

Nicht so ganz versteh ich den Bug. Was soll ich in den VHost übernehmen?
Hier mal ein VHost:

Code:
<VirtualHost 127.0.0.1:80>
  ServerName xxx.de
  ServerAlias www.xxx.de
  ServerAdmin info@xxx.de
  DocumentRoot "/var/kunden/webs/xxx/"
  SuexecUserGroup "#10158" "#10158"
  <Directory "/var/kunden/webs/xxx/">
    AddHandler fcgid-script .php
    FCGIWrapper /var/www/php-fcgi-scripts/xxx/php-fcgi-starter .php
    Options +ExecCGI
    Order allow,deny
    allow from all
  </Directory>
  Alias /awstats "/var/kunden/webs/xxx/awstats/xxx.de"
  ErrorLog "/var/kunden/logs/xxx.de-error.log"
  CustomLog "/var/kunden/logs/xxx.de-access.log" combined
</VirtualHost>
 
Du musst nichts in den VirtualHost übernehmen. Es war lediglich ein Hinweis. ;)

Der Wert für MaxRequestsPerChild ist schon extrem klein.
Allein die Shop-Start-Seite besteht bei Dir aus 79 Einzelelementen. Grob gesagt muss der Apache fast für jede Seite einen Child erzeugen.
(An alle kritischen Mitleser: Ja, diese Behauptung ist totaler Quatsch. Aber es verdeutlicht, warum 100 nicht der optimale Wert ist.)

Gab es nach den neuen Einstellungen ein neue Massen-Bot-Anfragen?
Wenn ja, wie sah die allgemeine Auslastung dann aus?

huschi.
 
Danke,

ich werde die Werte dann noch weiter nach oben setzen. Deine Empfehlung lag bei 1000 - 10000 MaxRequestsPerChild.

Es gab seither mir zwei "grössere" Zugriffe auf die Datenbank. Die waren aber beide so klein, das man sie vernachlässigen kann. Im Anhang findest du eine entsprechende Grafik. Die letzten Anpassungen wurden nach den 2 grossen Balken vorgenommen. Ich kann leider nicht genau sagen, was die beiden Bälkchen danach ausgelöst hat. Ich glaube hier müssen wir einfach nochmal ne Nacht warten bis wir das genauer sagen können.
 

Attachments

  • localhost.localdomain-mysql_queries-day.png
    localhost.localdomain-mysql_queries-day.png
    23 KB · Views: 150
Nachdem ich das MPM beim Apache auf folgende Parameter eingestellt habe:

Code:
<IfModule mpm_worker_module>
    StartServers               2
    MaxClients             400
    MinSpareThreads          25
    MaxSpareThreads          75 
    ThreadsPerChild          25
    MaxRequestsPerChild  10000
</IfModule>

läuft mir der RAM voll. Ich hab den Eindruck das er immer mehr Apache Prozesse forkt und diese nicht mehr beendet.
Hast du da eventuell eine Lösung dafür.

Bei den Querys sieht es da schon viel besser aus. Im Anhang findest du wieder eine neue Grafik über die Querys. Da sieht es momentan sehr viel besser aus. Hoffen wir mal das es so bleibt.

Jetzt muss nur noch das Problem mit dem Apache gelöst werden.

Trotzdem schonmal vielen Dank
 

Attachments

  • localhost.localdomain-mysql_queries-day.png
    localhost.localdomain-mysql_queries-day.png
    22.9 KB · Views: 356
Erstmal Literatur: http://httpd.apache.org/docs/2.0/mod/worker.html
Den Teil unter "Arbeitsweise" solltest Du gründlich lesen und verstehen bevor Du weiter an den Parametern rum schraubst.
Denn ein MaxClients mit 400 kann schon eine Menge Threads veranstalten.

läuft mir der RAM voll. Ich hab den Eindruck
Darf ich mal Unterbrechen: Genau das ist das Problem hier: Unbelegt Aussagen und Eindrücke.
Bitte lass das! Belege die Aussagen und Eindrücke!
Z.B. wie voll? (Du hast eine grafische Auswertung darüber. Oder "free" gibt es direkt für Copy&Paste.)
Kein Eindruck über die Anzahl der Apache-Prozesse, sondern Fakten sprechen lassen:
ps aux | grep apache | wc -l
Das Selbe direkt hinterher mit dem "fcgid" und "php".

Nochmal:
Du hattest erst den "Eindruck" es wäre der MySQL. Nun ist es der Apache. Aber wir liefen über die Hälfte des Thread hinter einem falschen Eindruck her. Und genau das ist der Grund, warum Du/wir hier nicht vorwärts kommen.

Und nun meine Nominierung für das Zitat der Woche:
Mit Eindrücken kann man eine Ehe führen. Aber keinen Server administrieren.
:D

huschi.
 
Das mit den Problemen waren keine Eindrücke, sondern Fakten. Am Anfang dieses Threads stresste MySQL, durch diverse Anpassungen an MySQL und dann auch noch an Apache haben sich die Probleme verschoben. Die Datenbank läuft jetzt ruhiger und stressfreier, dafür stresst der Apache jetzt.

Hier dann mal das Ergebnis von Free, da dies aber nur eine Moment aufnahme ist und ich kurzvorher durch einen Restart des Apaches wieder RAM freigegeben hatte ist im Anhang nochmal eine Grafik über den Verlauf des Rams:

Code:
 free
             total       used       free     shared    buffers     cached
Mem:      12330944    7972136    4358808          0     187848    1114664
-/+ buffers/cache:    6669624    5661320
Swap:      4200888     114056    4086832

Dazu dann hier noch die Prozesse für Apache FCGI und PHP. Wobei FCGI und PHP identisch sind:

Code:
ps aux | grep apache | wc -l => 11
ps aux | grep fcgi | wc -l => 432
ps aux | grep php | wc -l => 432

Die Literatur zum Worker les ich mir nochmal seperat durch und passe dem entsprechend die Config nochmal an

Ich finde schon, das wir vorwärts kommen, auch wenn wir durch die Lösung eines Problems ein anderes aufgedeckt haben.
Dieses wäre aber sicher über kurz oder lang ebenfalls ein Problem geworden.
 

Attachments

  • localhost.localdomain-memory-day.png
    localhost.localdomain-memory-day.png
    44.2 KB · Views: 156
Last edited by a moderator:
Hier dann mal das Ergebnis von Free
Wäre gut, wenn der Speicher gerade mal "voll" ist.

Wobei FCGI und PHP identisch sind:
Das passt auch so. Wäre nämlich blöd wenn Einer davon mehr hätte. Das wären dann Leichen.
Dennoch finde ich, ist die Anzahl fcgi+PHP relativ hoch. Aber soweit der Speicher es verkraftet. (Aktuell scheint es zu reichen.)
Aber evtl. könnte der Speicher anderweitig besseren Dienst leisten...?
Reduzieren kannst Du es mit den MaxClients im Apache.
Du musst die Waage zwischen den Speicherfressern MySQL und Apache finden.

huschi.
 
Der RAM ist zwar noch nicht ganz voll aber fast.

Deshalb hier schonmal die Werte:
Code:
ps aux | grep apache | wc -l => 9
ps aux | grep fcgi | wc -l => 732
ps aux | grep php | wc -l => 732

Code:
free
             total       used       free     shared    buffers     cached
Mem:      12330944   12205004     125940          0     184828    1253524
-/+ buffers/cache:   10766652    1564292
Swap:      4200888     260984    3939904

Im Anhang finden Sie auch nochmal die aktualisierte Grafik für den Ram.
 

Attachments

  • localhost.localdomain-memory-day.png
    localhost.localdomain-memory-day.png
    42.5 KB · Views: 189
Wie Huschi nun schon mehrfach schrieb, sind die MaxClients im Apache und die max_connections im MySQL viel zu hoch angesetzt.
Bitte folgende Werte für Apache setzen:
Code:
Timeout 30
KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 100
<IfModule mpm_prefork_module>
    StartServers         10
    MinSpareServers      10
    MaxSpareServers      10
    MaxClients          200
    MaxRequestsPerChild 500
</IfModule>
<IfModule mpm_worker_module>
    StartServers          2
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxClients          150
    MaxRequestsPerChild 500
</IfModule>
Bitte folgende Werte für MySQL setzen:
Code:
[mysqld]
user                            = mysql
port                            = 3306
bind-address                    = 127.0.0.1
thread_concurrency              = 8
thread_cache_size               = 32
max_connections                 = 32
skip-external-locking
skip-locking
Nach 36-72 Stunden bitte Rückmeldung geben, danke.
 
Danke Joe, die Daten beim Apache hab ich so übernommen.

Bei den Änderungen an MySql bin ich mir nicht ganz so sicher. Du hast max connections von nur 32 angegeben.
Tuning Primer sagt mir aber einen Historic max_used_connections = 43 das wären ein paar zu wenig. Von daher übernehm ich deine Werte mal soweit, ändere aber die Max_Connections auf 64 ab, das sollte immer noch nicht übertrieben viel sein und bedeutend weniger als 200.

Gruss
 
Hallo,

es sind zwar noch keine 36 Stunden rum aber trotzdem kann ich schonmal die Rückmeldung geben das der Apache immer noch unmengen an Ram verschlingt:

Code:
free
             total       used       free     shared    buffers     cached
Mem:      12330944   12149888     181056          0     275896    1458588
-/+ buffers/cache:   10415404    1915540
Swap:      4200888     358568    3842320

Um das ganze etwas zu verdeutlichen findest du im Anhang nochmal eine Grafiküber den Verlauf des Rams. Die Änderungen am Apache wurden etwa gegen 14:30 gemacht. Ab dem Zeitpunkt fing der RAM an zu steigen. Um ihn wieder runter zu bekommen musste ich die PHP-Prozesse killen.

Vor dem Killen der PHP-Prozesse ergibt
Code:
ps aux | grep php | wc -l => 743
Danach ergibt der gleiche Befehl
Code:
ps aux | grep php | wc -l => 245

Also knappe 500 Prozesse unterschied.
Für mich sieht es so aus, als würden die PHP-Prozesse nicht sterben wollen. bzw ist der Timeout dafür zu gross.
Ich gehe mal davon aus, das der Timeout dafür in der fcgid.conf definiert wird, nur welcher von den 3 Timeouts ist der richtige:
Code:
  IPCConnectTimeout 60
ProcessLifeTime 900
BusyTimeout 60
Der einzigste Wert der mir hier etwas zu hoch vorkommt ist:
Code:
ProcessLifeTime
Siehst du einen Sinn darin den Wert runter zu setzen oder bin ich da jetzt ganz falsch.


Hier noch die Ausgabe des Tuning-Primers:

Code:
Uptime = 0 days 18 hrs 46 min 0 sec
Avg. qps = 422
Total Questions = 28516294
Threads Connected = 8

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is enabled.
Current long_query_time = 3 sec.
You have 18 out of 28516319 that take longer than 3 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 32
Current threads_cached = 25
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 64
Current threads_connected = 8
Historic max_used_connections = 45
The number of used connections is 70% of the configured maximum.
Your max_connections variable seems to be fine.

INNODB STATUS
Current InnoDB index space = 77 M
Current InnoDB data space = 31 M
Current InnoDB buffer pool free = 99 %
Current innodb_buffer_pool_size = 3.21 G
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 3.39 G
Configured Max Per-thread Buffers : 191 M
Configured Max Global Buffers : 3.26 G
Configured Max Memory Limit : 3.45 G
Physical Memory : 11.75 G
Max memory limit seem to be within acceptable norms

KEY BUFFER
Current MyISAM index space = 988 M
Current key_buffer_size = 24 M
Key cache miss rate is 1 : 270
Key buffer free ratio = 28 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 24 M
Current query_cache_used = 16 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 67.11 %
Current query_cache_min_res_unit = 4 K
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 512.00 K
You have had 3211 queries where a join could not use an index properly
You have had 41 joins without keys that check for key usage after each row
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.

Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.

OPEN FILES LIMIT
Current open_files_limit = 65535 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 32730 tables
You have a total of 15877 tables
You have 16107 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 32 M
Current tmp_table_size = 32 K
Of 78161 temp tables, 13% were created on disk
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 2530 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 676
You may benefit from selective use of InnoDB.

Hierzu ebenfalls eine Grafik im Anhang. Hier scheint es seither keine Probleme mehr zu geben.
 

Attachments

  • localhost.localdomain-memory-day.png
    localhost.localdomain-memory-day.png
    41.5 KB · Views: 146
  • localhost.localdomain-mysql_queries-day.png
    localhost.localdomain-mysql_queries-day.png
    21.9 KB · Views: 153
  • localhost.localdomain-processes-day.png
    localhost.localdomain-processes-day.png
    21.1 KB · Views: 159
Last edited by a moderator:
Hier die vollständige fcgid.conf

Code:
<IfModule mod_fcgid.c>
AddHandler    fcgid-script .fcgi
IPCConnectTimeout 60
ProcessLifeTime 900
BusyTimeout 60
BusyScanInterval 320
ErrorScanInterval 3
ZombieScanInterval 3
</IfModule>

Und hier die phpinfo():
PHP:
PHP Version 5.2.6-1+lenny9

System     Linux servername 2.6.26-2-amd64 #1 SMP Thu Sep 16 15:56:38 UTC 2010 x86_64
Build Date     Aug 4 2010 05:59:12
Server API     CGI/FastCGI
Virtual Directory Support     disabled
Configuration File (php.ini) Path     /etc/php5/cgi
Loaded Configuration File     /var/www/php-fcgi-scripts/Server/kunden.domainname.de/php.ini
Scan this dir for additional .ini files     /etc/php5/cgi/conf.d
additional .ini files parsed     /etc/php5/cgi/conf.d/curl.ini, /etc/php5/cgi/conf.d/gd.ini, /etc/php5/cgi/conf.d/imagick.ini, /etc/php5/cgi/conf.d/imap.ini, /etc/php5/cgi/conf.d/mcrypt.ini, /etc/php5/cgi/conf.d/mysql.ini, /etc/php5/cgi/conf.d/mysqli.ini, /etc/php5/cgi/conf.d/pdo.ini, /etc/php5/cgi/conf.d/pdo_mysql.ini
PHP API     20041225
PHP Extension     20060613
Zend Extension     220060519
Debug Build     no
Thread Safety     disabled
Zend Memory Manager     enabled
IPv6 Support     enabled
Registered PHP Streams     zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports     tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters     string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

This server is protected with the Suhosin Patch 0.9.6.2
Copyright (c) 2006 Hardened-PHP Project

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

Configuration
PHP Core
Directive    Local Value    Master Value
allow_call_time_pass_reference    On    On
allow_url_fopen    On    On
allow_url_include    Off    Off
always_populate_raw_post_data    Off    Off
arg_separator.input    &    &
arg_separator.output    &    &
asp_tags    Off    Off
auto_append_file    no value    no value
auto_globals_jit    On    On
auto_prepend_file    no value    no value
browscap    no value    no value
default_charset    no value    no value
default_mimetype    text/html    text/html
define_syslog_variables    Off    Off
disable_classes    no value    no value
disable_functions    exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate    exec,passthru,shell_exec,system,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate
display_errors    On    On
display_startup_errors    Off    Off
doc_root    no value    no value
docref_ext    no value    no value
docref_root    no value    no value
enable_dl    Off    Off
error_append_string    no value    no value
error_log    no value    no value
error_prepend_string    no value    no value
error_reporting    6135    6135
expose_php    Off    Off
extension_dir    /usr/lib/php5/20060613    /usr/lib/php5/20060613
file_uploads    On    On
highlight.bg    #FFFFFF    #FFFFFF
highlight.comment    #FF8000    #FF8000
highlight.default    #0000BB    #0000BB
highlight.html    #000000    #000000
highlight.keyword    #007700    #007700
highlight.string    #DD0000    #DD0000
html_errors    Off    Off
ignore_repeated_errors    Off    Off
ignore_repeated_source    Off    Off
ignore_user_abort    Off    Off
implicit_flush    Off    Off
include_path    .:/usr/share/php/:/usr/share/php5/    .:/usr/share/php/:/usr/share/php5/
log_errors    On    On
log_errors_max_len    1024    1024
magic_quotes_gpc    Off    Off
magic_quotes_runtime    Off    Off
magic_quotes_sybase    Off    Off
mail.force_extra_parameters    no value    no value
max_execution_time    30    30
max_file_uploads    50    50
max_input_nesting_level    64    64
max_input_time    60    60
memory_limit    32M    32M
open_basedir    no value    no value
output_buffering    4096    4096
output_handler    no value    no value
post_max_size    32M    32M
precision    14    14
realpath_cache_size    16K    16K
realpath_cache_ttl    120    120
register_argc_argv    Off    Off
register_globals    Off    Off
register_long_arrays    On    On
report_memleaks    On    On
report_zend_debug    On    On
safe_mode    Off    Off
safe_mode_exec_dir    /usr/lib/php5/libexec    /usr/lib/php5/libexec
safe_mode_gid    Off    Off
safe_mode_include_dir    /usr/share/php/:/usr/share/php5/    /usr/share/php/:/usr/share/php5/
sendmail_from    no value    no value
sendmail_path    /usr/sbin/sendmail -t -f postmaster@domainname.eu    /usr/sbin/sendmail -t -f postmaster@domainname.eu
serialize_precision    100    100
short_open_tag    On    On
SMTP    localhost    localhost
smtp_port    25    25
sql.safe_mode    Off    Off
suhosin.log.phpscript    0    0
suhosin.log.phpscript.is_safe    Off    Off
suhosin.log.phpscript.name    no value    no value
suhosin.log.sapi    no value    no value
suhosin.log.script    no value    no value
suhosin.log.script.name    no value    no value
suhosin.log.syslog    no value    no value
suhosin.log.syslog.facility    no value    no value
suhosin.log.syslog.priority    no value    no value
suhosin.log.use-x-forwarded-for    Off    Off
track_errors    Off    Off
unserialize_callback_func    no value    no value
upload_max_filesize    64M    64M
upload_tmp_dir    /var/web/tmp/Firma/    /var/web/tmp/Firma/
user_dir    no value    no value
variables_order    GPCS    GPCS
xmlrpc_error_number    0    0
xmlrpc_errors    Off    Off
y2k_compliance    On    On
zend.ze1_compatibility_mode    Off    Off

bcmath
BCMath support     enabled

bz2
BZip2 Support     Enabled
Stream Wrapper support     compress.bz2://
Stream Filter support     bzip2.decompress, bzip2.compress
BZip2 Version     1.0.5, 10-Dec-2007

calendar
Calendar support     enabled

cgi-fcgi
Directive    Local Value    Master Value
cgi.check_shebang_line    1    1
cgi.fix_pathinfo    1    1
cgi.nph    0    0
cgi.rfc2616_headers    0    0
fastcgi.logging    1    1

ctype
ctype functions     enabled

curl
cURL support     enabled
cURL Information     libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18

date
date/time support     enabled
"Olson" Timezone Database Version     0.system
Timezone Database     internal
Default timezone     Europe/Berlin

Directive    Local Value    Master Value
date.default_latitude    31.7667    31.7667
date.default_longitude    35.2333    35.2333
date.sunrise_zenith    90.583333    90.583333
date.sunset_zenith    90.583333    90.583333
date.timezone    Europe/Berlin    Europe/Berlin

dba
DBA support     enabled
Supported handlers     cdb cdb_make db4 inifile flatfile

dom
DOM/XML     enabled
DOM/XML API Version     20031129
libxml Version     2.6.32
HTML Support     enabled
XPath Support     enabled
XPointer Support     enabled
Schema Support     enabled
RelaxNG Support     enabled

exif
EXIF Support     enabled
EXIF Version     1.4 $Id: exif.c,v 1.173.2.5.2.25 2008/03/12 17:33:14 iliaa Exp $
Supported EXIF Version     0220
Supported filetypes     JPEG,TIFF

filter
Input Validation and Filtering     enabled
Revision     $Revision: 1.52.2.42 $

Directive    Local Value    Master Value
filter.default    unsafe_raw    unsafe_raw
filter.default_flags    no value    no value

ftp
FTP support     enabled

gd
GD Support     enabled
GD Version     2.0 or higher
FreeType Support     enabled
FreeType Linkage     with freetype
FreeType Version     2.3.7
T1Lib Support     enabled
GIF Read Support     enabled
GIF Create Support     enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support     enabled

gettext
GetText Support     enabled

hash
hash support     enabled
Hashing Engines     md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support     enabled
iconv implementation     glibc
iconv library version     2.7

Directive    Local Value    Master Value
iconv.input_encoding    ISO-8859-1    ISO-8859-1
iconv.internal_encoding    ISO-8859-1    ISO-8859-1
iconv.output_encoding    ISO-8859-1    ISO-8859-1

imagick
imagick module     enabled
imagick module version     2.1.1-rc1
imagick classes     Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version     ImageMagick 6.3.7 08/09/09 Q16 http://www.imagemagick.org
ImageMagick copyright     Copyright (C) 1999-2008 ImageMagick Studio LLC
ImageMagick release date     08/09/09
ImageMagick Number of supported formats:     179
ImageMagick Supported formats     A, AI, ART, ARW, AVI, AVS, B, BMP, BMP2, BMP3, C, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DFONT, DJVU, DNG, DOT, DPS, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, HISTOGRAM, HTM, HTML, ICB, ICO, ICON, INFO, IPL, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, MAP, MAT, MATTE, MIFF, MNG, MONO, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PEF, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSD, PTIF, PWP, R, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XV, XWD, Y, YCbCr, YCbCrA, YUV

Directive    Local Value    Master Value
imagick.locale_fix    0    0

imap
IMAP c-Client Version     2004
SSL Support     enabled
Kerberos Support     enabled

json
json support     enabled
json version     1.2.1

libxml
libXML support     active
libXML Version     2.6.32
libXML streams     enabled

mbstring
Multibyte Support     enabled
Multibyte string engine     libmbfl
Multibyte (japanese) regex support     enabled
Multibyte regex (oniguruma) version     4.4.4
Multibyte regex (oniguruma) backtrack check     On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive    Local Value    Master Value
mbstring.detect_order    no value    no value
mbstring.encoding_translation    Off    Off
mbstring.func_overload    0    0
mbstring.http_input    pass    pass
mbstring.http_output    pass    pass
mbstring.internal_encoding    ISO-8859-1    no value
mbstring.language    neutral    neutral
mbstring.strict_detection    Off    Off
mbstring.substitute_character    no value    no value

mcrypt
mcrypt support    enabled
Version     2.5.7
Api No     20021217
Supported ciphers     cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes     cbc cfb ctr ecb ncfb nofb ofb stream

Directive    Local Value    Master Value
mcrypt.algorithms_dir    no value    no value
mcrypt.modes_dir    no value    no value

mime_magic
mime_magic support    invalid magic file, disabled

Directive    Local Value    Master Value
mime_magic.debug    Off    Off
mime_magic.magicfile    /usr/share/file/magic.mime    /usr/share/file/magic.mime

mysql
MySQL Support    enabled
Active Persistent Links     0
Active Links     0
Client API version     5.0.51a
MYSQL_MODULE_TYPE     external
MYSQL_SOCKET     /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE     -I/usr/include/mysql
MYSQL_LIBS     -L/usr/lib -lmysqlclient_r

Directive    Local Value    Master Value
mysql.allow_persistent    On    On
mysql.connect_timeout    60    60
mysql.default_host    no value    no value
mysql.default_password    no value    no value
mysql.default_port    no value    no value
mysql.default_socket    no value    no value
mysql.default_user    no value    no value
mysql.max_links    Unlimited    Unlimited
mysql.max_persistent    Unlimited    Unlimited
mysql.trace_mode    Off    Off

mysqli
MysqlI Support    enabled
Client API library version     5.0.51a
Client API header version     5.0.51a
MYSQLI_SOCKET     /var/run/mysqld/mysqld.sock

Directive    Local Value    Master Value
mysqli.default_host    no value    no value
mysqli.default_port    3306    3306
mysqli.default_pw    no value    no value
mysqli.default_socket    no value    no value
mysqli.default_user    no value    no value
mysqli.max_links    Unlimited    Unlimited
mysqli.reconnect    Off    Off

openssl
OpenSSL support     enabled
OpenSSL Version     OpenSSL 0.9.8g 19 Oct 2007

pcre
PCRE (Perl Compatible Regular Expressions) Support     enabled
PCRE Library Version     7.6 2008-01-28

Directive    Local Value    Master Value
pcre.backtrack_limit    100000    100000
pcre.recursion_limit    100000    100000

PDO
PDO support    enabled
PDO drivers     mysql

pdo_mysql
PDO Driver for MySQL, client library version    5.0.51a

posix
Revision     $Revision: 1.70.2.3.2.18 $

Reflection
Reflection    enabled
Version     $Id: php_reflection.c,v 1.164.2.33.2.50 2008/03/13 15:56:21 iliaa Exp $

session
Session Support     enabled
Registered save handlers     files user
Registered serializer handlers     php php_binary wddx

Directive    Local Value    Master Value
session.auto_start    Off    Off
session.bug_compat_42    Off    Off
session.bug_compat_warn    On    On
session.cache_expire    180    180
session.cache_limiter    nocache    nocache
session.cookie_domain    no value    no value
session.cookie_httponly    Off    Off
session.cookie_lifetime    0    0
session.cookie_path    /    /
session.cookie_secure    Off    Off
session.entropy_file    /dev/urandom    /dev/urandom
session.entropy_length    16    16
session.gc_divisor    1000    1000
session.gc_maxlifetime    14400    14400
session.gc_probability    1    1
session.hash_bits_per_character    4    4
session.hash_function    0    0
session.name    PHPSESSID    PHPSESSID
session.referer_check    no value    no value
session.save_handler    files    files
session.save_path    /var/web/tmp/Server/    /var/web/tmp/Server/
session.serialize_handler    php    php
session.use_cookies    On    On
session.use_only_cookies    Off    Off
session.use_trans_sid    0    0

shmop
shmop support     enabled

SimpleXML
Simplexml support    enabled
Revision     $Revision: 1.151.2.22.2.39 $
Schema support     enabled

soap
Soap Client     enabled
Soap Server     enabled

Directive    Local Value    Master Value
soap.wsdl_cache    1    1
soap.wsdl_cache_dir    /tmp    /tmp
soap.wsdl_cache_enabled    1    1
soap.wsdl_cache_limit    5    5
soap.wsdl_cache_ttl    86400    86400

sockets
Sockets Support     enabled

SPL
SPL support    enabled
Interfaces     Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes     AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

standard
Regex Library     Bundled library enabled
Dynamic Library Support     enabled
Path to sendmail     /usr/sbin/sendmail -t -f postmaster@domainname.eu

Directive    Local Value    Master Value
assert.active    1    1
assert.bail    0    0
assert.callback    no value    no value
assert.quiet_eval    0    0
assert.warning    1    1
auto_detect_line_endings    0    0
default_socket_timeout    60    60
safe_mode_allowed_env_vars    PHP_    PHP_
safe_mode_protected_env_vars    LD_LIBRARY_PATH    LD_LIBRARY_PATH
url_rewriter.tags    a=href,area=href,frame=src,form=,fieldset=    a=href,area=href,frame=src,form=,fieldset=
user_agent    no value    no value

sysvmsg
sysvmsg support     enabled
Revision     $Revision: 1.20.2.3.2.7 $

tokenizer
Tokenizer Support     enabled

wddx
WDDX Support    enabled
WDDX Session Serializer     enabled

xml
XML Support     active
XML Namespace Support     active
libxml2 Version     2.6.32

xmlreader
XMLReader     enabled

xmlwriter
XMLWriter     enabled

Zend Optimizer
Optimization Pass 1     enabled
Optimization Pass 2     enabled
Optimization Pass 3     enabled
Optimization Pass 4     enabled
Optimization Pass 9     disabled
Zend Loader     enabled
License Path     no value
Obfuscation level     3

zip
Zip     enabled
Extension Version     $Id: php_zip.c,v 1.1.2.43 2008/01/18 00:51:38 pajoye Exp $
Zip version     1.8.11
Libzip version     0.8.0-compatible

zlib
ZLib Support     enabled
Stream Wrapper support     compress.zlib://
Stream Filter support     zlib.inflate, zlib.deflate
Compiled Version     1.2.1.1
Linked Version     1.2.3.3

Directive    Local Value    Master Value
zlib.output_compression    Off    Off
zlib.output_compression_level    -1    -1
zlib.output_handler    no value    no value

Additional Modules
Module Name
ionCube Loader
sysvsem
sysvshm

Environment
Variable    Value
PHPRC     /var/www/php-fcgi-scripts/Server/server.web.de/
PHP_FCGI_CHILDREN     0
PATH     /usr/local/bin:/usr/bin:/bin
PWD     /var/www/php-fcgi-scripts/Server/server.web.de
SHLVL     0
PHP_FCGI_MAX_REQUESTS     250

PHP Variables
Variable    Value
_SERVER["PHPRC"]    /var/www/php-fcgi-scripts/Server/server.web.de
_SERVER["PHP_FCGI_CHILDREN"]    0
_SERVER["PATH"]    /usr/local/bin:/usr/bin:/bin
_SERVER["PWD"]    /var/www/php-fcgi-scripts/Server/server.web.de
_SERVER["SHLVL"]    0
_SERVER["PHP_FCGI_MAX_REQUESTS"]    250
_SERVER["FCGI_ROLE"]    RESPONDER
_SERVER["GEOIP_COUNTRY_CODE"]    --
_SERVER["GEOIP_COUNTRY_NAME"]    N/A
_SERVER["HTTP_HOST"]    web.server.de
_SERVER["HTTP_USER_AGENT"]    Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.10) Gecko/20100914 AskTbTRL2/3.8.0.12304 Firefox/3.6.10
_SERVER["HTTP_ACCEPT"]    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"]    de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
_SERVER["HTTP_ACCEPT_ENCODING"]    gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]    ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]    115
_SERVER["HTTP_CONNECTION"]    keep-alive
_SERVER["HTTP_REFERER"]    http://serversupportforum.de/forum/sql/41405-mysql-zwingt-server-die-knie-3.html
_SERVER["SERVER_SIGNATURE"]    <address>Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g Server at kunden.saarserver.de Port 80</address>
_SERVER["SERVER_SOFTWARE"]    Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g
_SERVER["SERVER_NAME"]    web.server.de
_SERVER["SERVER_ADDR"]    188.40.72.131
_SERVER["SERVER_PORT"]    80
_SERVER["REMOTE_ADDR"]    93.211.164.228
_SERVER["DOCUMENT_ROOT"]    /var/web/webs/Server/KUNDEN/
_SERVER["SERVER_ADMIN"]    postmaster@saarserver.eu
_SERVER["SCRIPT_FILENAME"]    /var/web/webs/Server/KUNDEN/info.php
_SERVER["REMOTE_PORT"]    49954
_SERVER["GATEWAY_INTERFACE"]    CGI/1.1
_SERVER["SERVER_PROTOCOL"]    HTTP/1.1
_SERVER["REQUEST_METHOD"]    GET
_SERVER["QUERY_STRING"]    no value
_SERVER["REQUEST_URI"]    /info.php
_SERVER["SCRIPT_NAME"]    /info.php
_SERVER["PHP_SELF"]    /info.php
_SERVER["REQUEST_TIME"]    1286969974

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.


Danke
 
Last edited by a moderator:
Back
Top