Simon Lange wrote:
On 18.07.05 at 14:25:07 [+0200], Benjamin Podszun <[EMAIL PROTECTED]> wrote:

Simon Lange wrote:

deshalb ja mein thread start. die ergebnisse sind grausam und SO nicht
produktiv nutzbar. ich bin wirklich zZ sehr enttaeuscht von der
apache2-performance. ein befreundeter hoster hat bereits wieder zu apache1
downgraded. ich moechte den schritt erst gehen wenn es wirklich keine
hoffnung mehr fuer apache2 gibt.

Ich würde das bisher noch nicht auf den apache2 schieben.. Bisher hast
du noch nicht auf die mehrfach genannten Hinweise auf dein
"Speicherproblem" geantwortet.. Und MySQL ist da deutlich schlechter
(lies: gieriger) konfiguriert als der Apache.

deshalb ja meine frage nach eurer lamp configuration en detail. evtl ist es ne configurations geschichte. allerdings sind saemtliche im netz gefundenen manuals konterproduktiv da jeder SEIN produkt priorisiert was aber in einer gleichberechtigten LAMP umgebung nocht funktionieren kann. wie du schon schreibst klaut mal apache2 mysql den speicher/cpu mal umgekehrt. darum taete mich eure konfiguration fuer grosse dynamische sites interessieren. statische seiten stellen kein grosses problem dar. achja der speicher ist nicht ausgelastet:

Nicht ausgelastet, bei 11MB von 1GB frei.. Nun ja, vielleicht ist im Einstein-Jahr alles relativ..

---------snip-----------------
[EMAIL PROTECTED] root]# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  1024356352 1012760576 11595776        0 38207488 409370624
Swap: 1077501952 492961792 584540160
MemTotal:      1000348 kB
MemFree:         11324 kB
MemShared:           0 kB
Buffers:         37312 kB
Cached:         351048 kB
SwapCached:      48728 kB
Active:         554580 kB
Inactive:       270240 kB
HighTotal:       98240 kB
HighFree:         1532 kB
LowTotal:       902108 kB
LowFree:          9792 kB
SwapTotal:     1052248 kB
SwapFree:       570840 kB
-------------snip-------------------


hier der von Hans-Joerg angeforderte vmstat 1:
---------- snip -----------------
[EMAIL PROTECTED] root]# vmstat 1
procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy wa id
 4  0 481404  25784  39272 345124   21   23    63   165  268   137 63  4  0 33
 5  0 481404  25372  39280 345536    0    0   396   364 1663   524 96  4  0  0
 5  0 481404  24696  39284 346204    0    0   668   544 2359   577 97  3  0  0
 9  0 481404  24172  39292 346712    0    0   396   820 2336   914 97  3  0  0
12  0 481404  23332  39296 346872    0    0   128     0  654   321 92  8  0  0
 7 10 481404  23212  39296 347000    0    0   128     0  626   135 93  7  0  0
 5  1 481404  22928  39304 347200    0    0   172   396  620   307 93  7  0  0
 3  1 481404  17456  39336 348876    0    0  1232  2212 4721  3441 95  5  0  0
 2  0 481404  16980  39336 349084    0    0   208     0 1138   111 96  4  0  0
 3  7 481404  13340  39336 349212    0    0   128     0  527   105 89 11  0  0
 3  0 481404  13068  39340 349368    0    0   128   244  616   151 90 10  0  0
 3  0 481404  11060  39340 349500    0    0   128     0  640   133 89 11  0  0
 2  0 481404  12020  39328 348564    0    4   256   236 1510   266 93  7  0  0
 1  4 481404  11400  39352 348864    0    0   256   660 1408   620 93  6  0  1
 3  0 481404  13064  39360 348996    0    0   128   144 1000   236 91  9  0  0
 2  7 481404  10860  39360 349388    0    0   384     0 1548   437 96  4  0  0
 6  0 481404  12104  39276 348360    0    0    28   184  972   456 90 10  0  0
 5  0 481404  11476  39284 348400    0    0   908  1668 5092  1619 98  2  0  0
 4  6 481404  11156  39284 348680    0    0   264   256 1319   471 95  5  0  0
 5  4 481404  12944  39292 348808    0    0   128   568  523   163 90 10  0  0
 6  3 481404  12500  39300 349208    0    0   384   196 2238   514 96  4  0  0
12  0 481404  20520  39304 349636    0    0   404   216 2645   785 94  6  0  0
 8  8 481404  19076  39316 350424   96    0   876     0 2276   637 94  6  0  0
 8  0 481404  18616  39332 350564  160    0   292   876 1692   312 90 10  0  0
 8  0 481404  18136  39340 350824    0    0   256   332  921   239 89 11  0  0
 8  4 481404  17808  39344 351256    0    0   424     0 1827  1059 95  5  0  0
 6  0 481404  17656  39356 351400    0    0   128   428  830   155 93  7  0  0
 5  0 481404  17524  39356 351528    0    0   128     0  407    70 89 11  0  0
 5  1 481404  17404  39356 351656    0    0   128     0  338    45 88 12  0  0
 7  0 481404  17260  39364 351788    0    0   128   300  517   227 88 12  0  0
 6  0 481404  17116  39364 351788    0    0     0     0  580   264 87 13  0  0
 6  0 481404  17156  39364 351916    0    0   128     0  530   123 87 13  0  0
 3  4 481404  15968  39364 352048    0    0   128     0  677   120 86 14  0  0
 8  1 481404  15348  39372 352180    4    0   132   568  997   164 87 13  0  0
 9  3 481404  14716  39376 352588    0    0   396   200 2723   451 95  5  0  0
 7  0 481404  14732  39380 353028    0    0   388   232 2918  1132 93  7  0  0
 5  3 481404  14472  39380 353292    0    0   256     0 1511   225 96  4  0  0
 6  0 481404  14312  39388 353440    0    0   128   440 1383   284 93  7  0  0
 5  4 481404  13536  39388 353700    0    0   256     0 1445   252 94  6  0  0
 5  0 481404  13340  39396 353856    0    0   128   184  691   105 91  9  0  0
 0  1 481408  11380  39200 348640    0    8   168   464  933   354 86 12  0  3
 0  0 481408  11184  39200 348848    0    0    76     0 1103   910 15 12  0 72
 0  1 481408  11060  39200 348976    0    0   128   844  800    85  1 13  0 86
 2  0 481408  10804  39208 349232    0    0   256   192  615    83 63 11  0 25
procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy wa id
 0  0 481408  11336  39212 348252    0    0     0   300  712   209 28 50  0 23
 1  0 481408  22296  39212 348380    0    0   128     0  617   105 54 28  0 18
 1  0 481408  22216  39268 348380    0    0     0  1156  715   154 45 13  0 42
 0  0 481408  21948  39268 348508    0    0   128     0  544    84 68 15  0 17
 1  0 481408  21960  39268 348636    0    0   128     0  541    63 66 11  0 23
 2  0 481408  21956  39268 348636    0    0     0     0  574    71 65 13  0 22
 0  0 481408  21796  39276 348764    0    0   128   144  789   118 75 11  0 14
 1  0 481408  21632  39276 348892    0    0   128     0  662    83 85 11  0  3
 4  0 481408  21540  39276 349020    0    0   128     0 1145   147 51  8  0 42
 3  5 481408  10872  39276 349164    0    0   136   128 1026   179 93  7  0  0
 2  0 481408  11876  39264 348440    0    0   128   360  913   152 87  8  0  6
 0  0 481408  11732  39264 348568    0    0   128     0 1005   228 93  6  0  1
 2  0 481408  11616  39272 348696    0    0   128   160  452    69 32  9  0 60
 6  0 481408  12672  39276 348836    0    0   140     0  664   149 88 12  0  0
 8  0 481408  11524  39252 348340    0    0   396   324 2546  1052 87 13  0  0
 4  0 481408  11176  39260 348608    0    0   256   484 1359   619 82 11  0  7
 3  0 481408  22072  39268 348772    0    0   128   268 1351   868 84 14  0  2
 4  0 481408  21876  39292 348936    0    0   128   636 1061   958 83  9  0  8
 8  0 481408  21636  39300 349240    0    0   264   544 2416  1090 94  6  0  0
 6  6 481408  21316  39300 349496    4    0   260     0 1101   328 95  5  0  0
 3  0 481408  21124  39308 349644    0    0   128   336  413   170 92  8  0  0
 1  0 481408  20904  39348 349804    0    0   136   512  672   356 63 10  0 27
 0  0 481408  20616  39356 350080    0    0   260   120  505   132 65 10  0 25
 0  0 481408  20488  39356 350236    0    0   140     0  475   180 60 11  0 29
 2  0 481408  20340  39356 350364    0    0   128     0  420    89 67  9  0 25
 2  0 481408  20196  39364 350508    0    0   128   496  623   188 94  6  0  0
 2  0 481408  20076  39364 350636    0    0   128     0  375    86 91  9  0  0
 2  0 481408  20044  39364 350652    0    0     0     0  495   179 71  7  0 22
 0  0 481408  19888  39372 350780    0    0   128   352  361    59 46 11  0 43
 0  0 481408  19752  39372 350916    0    0   128     0  299    65  2 11  0 88
 0  0 481408  19744  39372 350924    0    0     0     0  338    70  0 13  0 87
 0  0 481408  19616  39372 351060    0    0   128     0  337    93  0 12  0 88
 1  0 481408  19484  39380 351188    0    0   128   332  334    72 47 13  0 40
 0  0 481408  19344  39380 351324    0    0   128     0  394   108 24 10  0 66
 1  0 481408  19204  39380 351472    0    0   140     0  322   114  5 12  0 83
 0  0 481408  18904  39380 351756    0    0   256     0  549   221 88  6  0  6
 0  0 481408  18880  39388 351780    0    0     4   368  373   133  0 13  0 87
 2  0 481408  18748  39388 351920    0    0   128     0  330   117 30 11  0 58
 0  0 481408  18536  39388 352060    0    0   128     0  521   432 89  7  0  4
 1  0 481408  18424  39400 352196    0    0   128   612  390   104  3 11  0 86
 4  0 481408  18432  39400 352196    0    0     0     0  335    63 86 14  0  0
 4  0 481408  17700  39400 352328    0    0   132     0  371   128 92  8  0  0
 5  0 481408  15500  39400 352512    0    0   152     0  465   520 85 15  0  0
 3  0 481408  15228  39412 352644    0    0   128   568  409   116 89 11  0  0
procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy wa id
 4  0 481408  10984  39412 352780    0    0   128     0  483   101 92  8  0  0
 3  0 481408  11388  39380 348816    0    0   140     0  504   228 92  8  0  0
 4  0 481408  11104  39396 349076    0    0   260   544  501   152 91  9  0  0
 3  0 481408  10876  39396 349204    0    0   128     0  440   217 93  7  0  0
 5  0 481408  13580  39388 348408    0    0   176     0  381   174 90 10  0  0
 4  0 481408  12564  39400 348544    0    0   128   576  688   200 93  7  0  0
 3  0 481408  11260  39400 348800    0    0   256     0 1236   156 95  5  0  0
 5  0 481408  12308  39408 348800    0    0     0   272  412   124 92  8  0  0
 5  0 481408  12180  39408 348928    0    0   128     0  356    51 93  7  0  0
 6  0 481408  11604  39400 347956    0    0   132     0  361   169 87 13  0  0
 7  5 481408  11452  39400 348132    0    0   152     0  469   186 92  8  0  0
 8  0 481408  11220  39408 348260    0    0   128   456  363   146 90 10  0  0
 8  0 481408  10832  39416 348648    0    0   384   220  771   273 95  5  0  0
 7  0 481408  10772  39416 348676    0    0     8     0  441   199 91  9  0  0
 7  0 481408  11820  39368 347704    0    0   140     0  800   651 90 10  0  0
 4  0 481408  11508  39368 347856    0    0   136     0  321   360 77 23  0  0
 8  0 481408  13468  39380 347984    0    0   128  1184  457   110 84 16  0  0
 4  0 481408  21960  39380 347984    0    0     0     0  292    71 86 14  0  0
 4  0 481408  21784  39380 348120    0    0   128     0  302   191 77 23  0  0
 3  0 481408  21632  39380 348284    0    0   156     0  293   283 81 19  0  0
 2  0 481408  21880  39384 348284    0    0     0   832  350    88 76 24  0  0
 5  0 481408  21740  39384 348416    0    0   128     0  297    68 77 23  0  0
 5  0 481408  21488  39384 348676    0    0   256     0  737   234 95  5  0  0
 5  0 481408  21688  39392 348876    0    0   132   224  710   849 89 11  0  0
 5  0 481408  21456  39392 349140    0    0   256     0  616   172 95  5  0  0
 4  0 481408  21308  39400 349276    0    0   128   796  576   122 93  7  0  0
 4  0 481408  21052  39400 349532    0    0   256     0  735   168 96  4  0  0
 4  0 481408  20916  39408 349660    0    0   128   224  467   143 94  6  0  0
 7  0 481408  20884  39408 349788    0    0   128     0  326    70 90 10  0  0
 5  0 481408  20660  39408 349916    0    0   128     0  461    69 94  6  0  0
 4  0 481408  20516  39416 350044    0    0   128    84  530    74 94  6  0  0
20  2 481408  19772  39416 350308    0    0   260     0  528   134 93  7  0  0
18  6 481408  18020  39420 350592    0    0   268     0  642   252 93  7  0  0
15  4 481408  15084  39428 350724    0    0   128   440  730   333 79 21  0  0
14  4 481408  15084  39428 350724    0    0     0     0  343   163 92  8  0  0
12  5 481408  15072  39428 350848    0    0   128     0  351   111 89 11  0  0
13  4 481408  14756  39444 350976    0    0   128   752  557   175 92  8  0  0
14  4 481408  14628  39444 351104    0    0   128     0  298   149 92  8  0  0
14  4 481408  14500  39444 351232    0    0   128     0  313   146 92  8  0  0
 4 17 481408  14380  39444 351360    0    0   128   384  376   119 92  8  0  0
14  4 481408  14336  39452 351380    0    0     8   116  310   157 89 11  0  0
14  4 481408  14208  39452 351508    0    0   128     0  325   138 92  8  0  0
12  6 481408  13944  39452 351764    0    0   256     0  307   147 91  9  0  0
12  6 481408  13800  39460 351900    0    0   128   300  475   188 94  6  0  0
procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy wa id
14  4 481408  13360  39468 352308    0    0   384   240 1307   540 97  3  0  0
14  4 481408  13360  39468 352308    0    0     0     0  310   146 91  9  0  0
15  4 481408  13232  39468 352436    0    0   128     0  322   147 92  8  0  0
14  4 481408  13100  39476 352568    0    0   128   112  336   163 92  8  0  0
14  4 481408  12972  39476 352696    0    0   128     0  305   142 91  9  0  0
12  6 481408  12960  39476 352700    0    0     0     0  330   159 91  9  0  0
12 12 481408  12720  39476 352956    0    0   256     0  817   278 96  4  0  0
14  4 481408  12000  39484 353228    0    0   256   108  386   145 88 13  0  0
11  0 481408  11892  38788 340396    0   12   132    12  591   475 71 29  0  0
 1 15 481408  11580  38828 340532    0    0   128  2756  578   405 73  9  0 19
11  0 481408  15108  38784 340092    0   32     0    36  298    67 88 12  0  0
 4  0 481408  17812  38568 339464    0    4   232     4  409   374 79 21  0  0
 5  0 481408  17364  38568 339592    0    0   128     0  317   169 90 10  0  0
 2  6 481408  17356  38580 339600    0    0     0  1984  421   363 25 13  0 62
 0  0 481408  21928  38664 339992    0    0   344  1308  686   569 52 17  0 30
 0  0 481408  21800  38664 340120    0    0   128     0  288    64  8 15  0 77
 0  0 481408  21800  38664 340120    0    0     0     0  270    36  1 11  0 88
 0  0 481408  21140  38716 340256    0    0   128   788  345   188 15 47  0 38
 0  0 481408  32080  38720 340384    0    0   128     0  262    60 10 25  0 65
 0  1 481408  30340  38728 341752    0    0  1368     0  442   193 68 11  0 22
 0  1 481408  29048  38728 343044    0    0  1292     0  563   111  0 13  0 87
 0  1 481408  25372  38748 346692    0    0  3660   552  811   391  1 15  0 84
12  0 481408  23292  38748 348532   32    0  1872     0  669   290 34 15  0 51
12  0 481408  23032  38748 348796    0    0   256     0  466   243 94  6  0  0
10  1 481408  23220  38748 348812    0    0    12     0  334   159 91  9  0  0
 9  0 481408  22612  38756 349256    0    0   436   352  844   256 95  5  0  0
 7  0 481408  21768  38756 349388   12    0   144     0  404   115 90 10  0  0
 4  0 481408  19572  38760 349520    0    0   128   244  418   124 92  8  0  0
 4  0 481408  13424  38760 349656    0    0   128     0  324    92 84 16  0  0
 3  0 481408  11152  38760 350104    0    0   432     0  428   174 86 14  0  0
 1  0 481408  11496  38628 350156    0    0  2052     0  590   296 11 12  0 76
 8  0 481408  10868  38584 350800   24    0  1616   540  646   238 40 13  0 47
 6  0 481408  11780  38584 350932    0    0   128     0  428   171 91  9  0  0
 5  0 481408  11756  38584 350940    0    0     4     0  422   149 92  8  0  0
 1  3 481408  11780  38552 349360    0    0   496  2416  567   175 47 42  0 11
 0  6 481408  13980  38552 349492    0    0   132     0  403    90 65 20  0 15
 0  6 481408  13976  38552 349496    0    0     0     0  374    86  1 11  0 88
 1  7 481408  13988  38552 349500    0    0     0   228  319    58 70 11  0 19
 0  3 481408  21048  38560 349964    0    0   460   968  395   144 30 14  0 56
 0  2 481408  21028  38560 349996    0    0    32     0  360    46  0 11  0 89
 0  2 481408  20888  38568 350124    0    0   128   232  379    37  0 12  0 88
 3  0 481408  21364  38568 350720   36    0   632     0  444   126 34 14  0 53
 4  0 481408  21368  38568 350720    0    0     0     0  294   153 91  9  0  0
 4  0 481408  21524  38576 350904    0    0   152   116  386   201 87  9  0  4
procs                      memory      swap          io     system         cpu
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy wa id
 2  0 481408  21128  38576 351160    0    0   256     0  342   165 89 10  0  1
 3  0 481408  21128  38576 351168    0    0     0     0  340   152 88 12  0  0
 1  0 481408  20356  38584 351340    0    0   132   496  643   358 88 12  0  0
 2  0 481408  20900  38584 351468    0    0   128     0  359    81 61 15  0 25
 0  0 481408  20768  38584 351596    0    0   128     0  330    54 33  9  0 58
open: No such file or directory
error: failed to parse /proc/stats -------snip---------------
sind deutklich mehr als 30 zeilen ;)

Und nun schau da mal in die si/so Spalten und du wirst sehen, dass du swapst. Das ist lahm. Das verursacht wahrscheinlich die seltsamen "Pausen". Das liegt nicht am Apache2 - nicht direkt jedenfalls. Sondern vielmehr an deiner Konfiguration. Dein MySQL frisst einen Großteil des Speichers (Vielleicht zuviel getuned.. Lies mal in der MySQL Doku, es gibt Formeln zur Berechnung des Speicherverbrauchs/Prozess auf der Grundlage der Buffer/Caches etc.). Überleg dir ob du da zuviele Connections erlaubst oder zuviel Speicher verschwendest. Wenn das nicht der Fall ist, fahr die Zahl der Apache Instanzen runter.. Im Endeffekt musst du für _deine_ Ansprüche das Balancing zwischen Web- und Datenbank-Anfragen selber hinbekommen. So gut, dass die Auslastung des Servers groß ist, er aber nicht über diese Grenze steigt. Swappen macht - wie du gerade merkst - keinen Spass und deine Performance kaputt.

Ben

--------------------------------------------------------------------------
Apache HTTP Server Mailing List "users-de" unsubscribe-Anfragen an [EMAIL PROTECTED]
          sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------

Antwort per Email an