teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

5

追記

2018/02/09 02:08

投稿

kinoshitaaa
kinoshitaaa

スコア11

title CHANGED
File without changes
body CHANGED
@@ -257,4 +257,13 @@
257
257
  2804 apache 20 0 414m 15m 8716 S 0.0 0.4 0:00.02 httpd
258
258
  2893 apache 20 0 414m 15m 8584 S 0.0 0.4 0:00.01 httpd
259
259
  2518 root 20 0 117m 7184 6084 S 0.0 0.2 0:00.00 sshd
260
- ```
260
+ ```
261
+
262
+ ## その他
263
+
264
+ 昨日から今日にかけて経過観察していると、
265
+ 常時のメモリ使用量がまたふえて現在は83%を推移しております。
266
+
267
+ sarコマンドを使ってみておりますが、昨日が72%だったことをふまえると、底上げしつつあるため、
268
+ 記事の配信数に影響するのではと思いました。
269
+ 記事は1日2記事ほど執筆しております。

4

追記

2018/02/09 02:07

投稿

kinoshitaaa
kinoshitaaa

スコア11

title CHANGED
File without changes
body CHANGED
@@ -237,4 +237,24 @@
237
237
 
238
238
  LoadModule rewrite_module modules/mod_rewrite.so
239
239
 
240
+ ```
241
+
242
+ ## top -a でメモリ使用量を調べた際の結果
243
+
244
+ 一番重いTopページにアクセスした際の結果です。
245
+
246
+ ```
247
+ 2858 apache 20 0 569m 94m 16m S 0.0 2.4 0:01.77 httpd
248
+ 2775 apache 20 0 568m 92m 16m S 0.0 2.3 0:04.49 httpd
249
+ 2698 apache 20 0 567m 92m 16m S 0.0 2.3 0:03.06 httpd
250
+ 2772 apache 20 0 566m 91m 16m S 0.0 2.3 0:02.78 httpd
251
+ 2761 apache 20 0 741m 73m 16m S 0.0 1.9 0:01.24 httpd
252
+ 2868 apache 20 0 549m 73m 16m S 0.0 1.9 0:01.22 httpd
253
+ 2903 apache 20 0 549m 73m 16m S 0.0 1.9 0:01.25 httpd
254
+ 2896 apache 20 0 452m 56m 12m S 0.0 1.4 0:00.45 httpd
255
+ 2811 mysql 20 0 539m 46m 9632 S 0.0 1.2 0:24.12 mysqld
256
+ 2884 root 20 0 406m 22m 15m S 0.0 0.6 0:08.41 httpd
257
+ 2804 apache 20 0 414m 15m 8716 S 0.0 0.4 0:00.02 httpd
258
+ 2893 apache 20 0 414m 15m 8584 S 0.0 0.4 0:00.01 httpd
259
+ 2518 root 20 0 117m 7184 6084 S 0.0 0.2 0:00.00 sshd
240
260
  ```

3

追記

2018/02/09 02:04

投稿

kinoshitaaa
kinoshitaaa

スコア11

title CHANGED
File without changes
body CHANGED
@@ -33,6 +33,11 @@
33
33
 
34
34
  ## 追記
35
35
 
36
+ ```
37
+ php -v
38
+ PHP 5.6.30 (cli) (built: Mar 8 2017 00:17:28)
39
+ ```
40
+
36
41
  WebサーバーはApatcheを使っております。
37
42
 
38
43
  また、httpd.confのファイルになります。

2

追記

2018/02/08 14:55

投稿

kinoshitaaa
kinoshitaaa

スコア11

title CHANGED
File without changes
body CHANGED
@@ -28,4 +28,208 @@
28
28
  --
29
29
 
30
30
  ちなみに4GBあるメモリのうち、常に72%程のメモリの使用量が発生しているため、アクセスが集中したときに、
31
- メモリエラーでサーバーダウンしてしまいます。
31
+ メモリエラーでサーバーダウンしてしまいます。
32
+
33
+
34
+ ## 追記
35
+
36
+ WebサーバーはApatcheを使っております。
37
+
38
+ また、httpd.confのファイルになります。
39
+
40
+
41
+ ```
42
+ ServerRoot "/etc/httpd"
43
+
44
+ Listen 80
45
+
46
+ Include conf.modules.d/*.conf
47
+
48
+ User apache
49
+ Group apache
50
+
51
+ ServerAdmin root@localhost
52
+
53
+ <Directory />
54
+ AllowOverride none
55
+ Require all denied
56
+ </Directory>
57
+
58
+ DocumentRoot "/var/www/html"
59
+
60
+ <Directory "/var/www">
61
+ AllowOverride None
62
+ # Allow open access:
63
+ Require all granted
64
+ </Directory>
65
+
66
+ <Directory "/var/www/html">
67
+
68
+ Options Indexes FollowSymLinks
69
+
70
+ #
71
+ # AllowOverride controls what directives may be placed in .htaccess files.
72
+ # It can be "All", "None", or any combination of the keywords:
73
+ # Options FileInfo AuthConfig Limit
74
+ #
75
+ AllowOverride All
76
+
77
+ #
78
+ # Controls who can get stuff from this server.
79
+ #
80
+ Require all granted
81
+ </Directory>
82
+
83
+ #
84
+ # DirectoryIndex: sets the file that Apache will serve if a directory
85
+ # is requested.
86
+ #
87
+ <IfModule dir_module>
88
+ DirectoryIndex index.html
89
+ </IfModule>
90
+
91
+ #
92
+ # The following lines prevent .htaccess and .htpasswd files from being
93
+ # viewed by Web clients.
94
+ #
95
+ <Files ".ht*">
96
+ Require all denied
97
+ </Files>
98
+
99
+ #
100
+ # ErrorLog: The location of the error log file.
101
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
102
+ # container, error messages relating to that virtual host will be
103
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
104
+ # container, that host's errors will be logged there and not here.
105
+ #
106
+ ErrorLog "logs/error_log"
107
+
108
+ #
109
+ # LogLevel: Control the number of messages logged to the error_log.
110
+ # Possible values include: debug, info, notice, warn, error, crit,
111
+ # alert, emerg.
112
+ #
113
+ LogLevel warn
114
+
115
+ <IfModule log_config_module>
116
+
117
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
118
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
119
+
120
+ <IfModule logio_module>
121
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
122
+ </IfModule>
123
+
124
+ CustomLog "logs/access_log" combined
125
+ </IfModule>
126
+
127
+ <IfModule alias_module>
128
+
129
+ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
130
+
131
+ </IfModule>
132
+
133
+ <Directory "/var/www/cgi-bin">
134
+ AllowOverride None
135
+ Options None
136
+ Require all granted
137
+ </Directory>
138
+
139
+ <IfModule mime_module>
140
+ #
141
+ # TypesConfig points to the file containing the list of mappings from
142
+ # filename extension to MIME-type.
143
+ #
144
+ TypesConfig /etc/mime.types
145
+
146
+ #
147
+ # AddType allows you to add to or override the MIME configuration
148
+ # file specified in TypesConfig for specific file types.
149
+ #
150
+ #AddType application/x-gzip .tgz
151
+ #
152
+ # AddEncoding allows you to have certain browsers uncompress
153
+ # information on the fly. Note: Not all browsers support this.
154
+ #
155
+ #AddEncoding x-compress .Z
156
+ #AddEncoding x-gzip .gz .tgz
157
+ #
158
+ # If the AddEncoding directives above are commented-out, then you
159
+ # probably should define those extensions to indicate media types:
160
+ #
161
+ AddType application/x-compress .Z
162
+ AddType application/x-gzip .gz .tgz
163
+
164
+ #
165
+ # AddHandler allows you to map certain file extensions to "handlers":
166
+ # actions unrelated to filetype. These can be either built into the server
167
+ # or added with the Action directive (see below)
168
+ #
169
+ # To use CGI scripts outside of ScriptAliased directories:
170
+ # (You will also need to add "ExecCGI" to the "Options" directive.)
171
+ #
172
+ #AddHandler cgi-script .cgi
173
+
174
+ # For type maps (negotiated resources):
175
+ #AddHandler type-map var
176
+
177
+ #
178
+ # Filters allow you to process content before it is sent to the client.
179
+ #
180
+ # To parse .shtml files for server-side includes (SSI):
181
+ # (You will also need to add "Includes" to the "Options" directive.)
182
+ #
183
+ AddType text/html .shtml
184
+ AddOutputFilter INCLUDES .shtml
185
+ </IfModule>
186
+
187
+ #
188
+ # Specify a default charset for all content served; this enables
189
+ # interpretation of all content as UTF-8 by default. To use the
190
+ # default browser choice (ISO-8859-1), or to allow the META tags
191
+ # in HTML content to override this choice, comment out this
192
+ # directive:
193
+ #
194
+ AddDefaultCharset UTF-8
195
+
196
+ <IfModule mime_magic_module>
197
+ #
198
+ # The mod_mime_magic module allows the server to use various hints from the
199
+ # contents of the file itself to determine its type. The MIMEMagicFile
200
+ # directive tells the module where the hint definitions are located.
201
+ #
202
+ MIMEMagicFile conf/magic
203
+ </IfModule>
204
+
205
+ #
206
+ # Customizable error responses come in three flavors:
207
+ # 1) plain text 2) local redirects 3) external redirects
208
+ #
209
+ # Some examples:
210
+ #ErrorDocument 500 "The server made a boo boo."
211
+ #ErrorDocument 404 /missing.html
212
+ #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
213
+ #ErrorDocument 402 http://www.example.com/subscription_info.html
214
+ #
215
+
216
+ #
217
+ # EnableMMAP and EnableSendfile: On systems that support it,
218
+ # memory-mapping or the sendfile syscall may be used to deliver
219
+ # files. This usually improves server performance, but must
220
+ # be turned off when serving from networked-mounted
221
+ # filesystems or if support for these functions is otherwise
222
+ # broken on your system.
223
+ # Defaults if commented: EnableMMAP On, EnableSendfile Off
224
+ #
225
+ #EnableMMAP off
226
+ EnableSendfile on
227
+
228
+ # Supplemental configuration
229
+ #
230
+ # Load config files in the "/etc/httpd/conf.d" directory, if any.
231
+ IncludeOptional conf.d/*.conf
232
+
233
+ LoadModule rewrite_module modules/mod_rewrite.so
234
+
235
+ ```

1

追記

2018/02/08 14:53

投稿

kinoshitaaa
kinoshitaaa

スコア11

title CHANGED
File without changes
body CHANGED
@@ -23,4 +23,9 @@
23
23
  https://bazubu.com/how-to-choose-wp-server-22864.html
24
24
 
25
25
 
26
- 宜しくお願い致します。
26
+ 宜しくお願い致します。
27
+
28
+ --
29
+
30
+ ちなみに4GBあるメモリのうち、常に72%程のメモリの使用量が発生しているため、アクセスが集中したときに、
31
+ メモリエラーでサーバーダウンしてしまいます。