Site performance, Server errors, outages and tunings - Printable Version +- Like Ra's Naughty Forum (https://www.likera.com/forum/mybb) +-- Forum: Technical section (https://www.likera.com/forum/mybb/Forum-Technical-section) +--- Forum: Site (https://www.likera.com/forum/mybb/Forum-Site) +--- Thread: Site performance, Server errors, outages and tunings (/Thread-Site-performance-Server-errors-outages-and-tunings) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
RE: Site performance, Server errors, outages and tunings - Like Ra - 18 Dec 2011 OK, it's not that easy. o- mod_fcgi is not good for opcode cache o- mdm-itk is aware of user permissions but is not threaded o- suexec is not compatible with opcode cache o- mdm-worker + mod_fcgid show "Forbidden. You don't have permission to access /forum/mybb/index.php on this server." o- mod-fastcgi does work with opcode cache, but is not a part of Ubuntu distribution anymore (will need to compile it). I see no chances to use mpm-worker so far. Back to preforked, cgid and mod_php. Next step is moving to fastcgi (mod_fastcgi or mod_fcgi). RE: Site performance, Server errors, outages and tunings - Like Ra - 18 Dec 2011 Confused suphp with suexec. Suexec is compatible with opcode caching, suphp is not. Also, found mod_fastcgi in the Ubuntu repository. So, this is the only way I see at the moment: mdm_worker, suexec, mod_fastcgi. Separate threaded apache, separate PHP processes with shared APC memory under different UIDs. But the question is - will it work any faster and wouldn't it take even more memory? RE: Site performance, Server errors, outages and tunings - krinlyc - 19 Dec 2011 May be this http://www.ibm.com/developerworks/linux/library/l-tune-lamp-2/index.html helps ... I just did a short google search. krinlyc p.S. this lokks cool too http://phplens.com/phpeverywhere/tuning-apache-php RE: Site performance, Server errors, outages and tunings - Like Ra - 19 Dec 2011 (19 Dec 2011, 18:17 )krinlyc Wrote: this lokks cool tooTool old: Fri, 18/06/2004 - 5:07pm (19 Dec 2011, 18:17 )krinlyc Wrote: May be this Too general and also a bit too old. They recommend eAccelerator and APC is only mentioned that it exists. My current problem is configuration of the modules. I think no other combination is possible at the moment: (18 Dec 2011, 20:57 )Like Ra Wrote: mdm_worker, suexec, mod_fastcgi. Separate threaded apache, separate PHP processes with shared APC memory under different UIDs. RE: Site performance, Server errors, outages and tunings - Like Ra - 04 Jan 2012 o- fixed the duplicate page bar at the top (blog) o- changed the counter (less scripts, smaller code, less redirects) o- updated WordPress RE: Site performance, Server errors, outages and tunings - Like Ra - 07 Jan 2012 Strange error. The web-server does not want to restart automatically when the server is overloaded. Probably, if the load is too high it can not shut down properly. Probably I need to stop it, wait a bit, kill -9 what's left, wait, then start again. RE: Site performance, Server errors, outages and tunings - Like Ra - 07 Jan 2012 This is what happens: service apache2 restart * Restarting web server apache2 ... waiting ..(98)Address aeady in use: make_sock: could not bind to address [::]:80 (98)Address aeady in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Action 'start' failed. The Apache error log may have more information. ...fail! And the logs are: [Sat Jan 07 15:47:34 2012] [warn] child process 25535 still did not exit, sending a SIGTERM . . . [Sat Jan 07 15:47:36 2012] [error] child process 25535 still did not exit, sending a SIGKILL . . . [Sat Jan 07 15:47:37 2012] [error] could not make child process 25535 exit, attempting to continue anyway If kill -9 does not work, then the process was locked by I/O operations. Gonna add a checker/restarter to the monitoring script. RE: Site performance, Server errors, outages and tunings - Like Ra - 07 Jan 2012 Forgot to add: Why does not everything just work? :-\ RE: Site performance, Server errors, outages and tunings - Like Ra - 07 Jan 2012 Changed the monitoring script. Let's see how it will work. RE: Site performance, Server errors, outages and tunings - Like Ra - 14 Jan 2012 Yessss!!!! The script worked!!!! The load jumped to 6.12 from nothing (the server was out of memory), my script restarted apache to reset the load and when apache refused to start, it was restarted on the next iteration: HTTPD = 0 Restarting apache * Restarting web server apache2 ...done. The total down time was about 5 min. |