質問編集履歴

5

追記

2018/02/09 02:08

投稿

kinoshitaaa
kinoshitaaa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -517,3 +517,21 @@
517
517
  2518 root 20 0 117m 7184 6084 S 0.0 0.2 0:00.00 sshd
518
518
 
519
519
  ```
520
+
521
+
522
+
523
+ ## その他
524
+
525
+
526
+
527
+ 昨日から今日にかけて経過観察していると、
528
+
529
+ 常時のメモリ使用量がまたふえて現在は83%を推移しております。
530
+
531
+
532
+
533
+ sarコマンドを使ってみておりますが、昨日が72%だったことをふまえると、底上げしつつあるため、
534
+
535
+ 記事の配信数に影響するのではと思いました。
536
+
537
+ 記事は1日2記事ほど執筆しております。

4

追記

2018/02/09 02:07

投稿

kinoshitaaa
kinoshitaaa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -477,3 +477,43 @@
477
477
 
478
478
 
479
479
  ```
480
+
481
+
482
+
483
+ ## top -a でメモリ使用量を調べた際の結果
484
+
485
+
486
+
487
+ 一番重いTopページにアクセスした際の結果です。
488
+
489
+
490
+
491
+ ```
492
+
493
+ 2858 apache 20 0 569m 94m 16m S 0.0 2.4 0:01.77 httpd
494
+
495
+ 2775 apache 20 0 568m 92m 16m S 0.0 2.3 0:04.49 httpd
496
+
497
+ 2698 apache 20 0 567m 92m 16m S 0.0 2.3 0:03.06 httpd
498
+
499
+ 2772 apache 20 0 566m 91m 16m S 0.0 2.3 0:02.78 httpd
500
+
501
+ 2761 apache 20 0 741m 73m 16m S 0.0 1.9 0:01.24 httpd
502
+
503
+ 2868 apache 20 0 549m 73m 16m S 0.0 1.9 0:01.22 httpd
504
+
505
+ 2903 apache 20 0 549m 73m 16m S 0.0 1.9 0:01.25 httpd
506
+
507
+ 2896 apache 20 0 452m 56m 12m S 0.0 1.4 0:00.45 httpd
508
+
509
+ 2811 mysql 20 0 539m 46m 9632 S 0.0 1.2 0:24.12 mysqld
510
+
511
+ 2884 root 20 0 406m 22m 15m S 0.0 0.6 0:08.41 httpd
512
+
513
+ 2804 apache 20 0 414m 15m 8716 S 0.0 0.4 0:00.02 httpd
514
+
515
+ 2893 apache 20 0 414m 15m 8584 S 0.0 0.4 0:00.01 httpd
516
+
517
+ 2518 root 20 0 117m 7184 6084 S 0.0 0.2 0:00.00 sshd
518
+
519
+ ```

3

追記

2018/02/09 02:04

投稿

kinoshitaaa
kinoshitaaa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -68,6 +68,16 @@
68
68
 
69
69
 
70
70
 
71
+ ```
72
+
73
+ php -v
74
+
75
+ PHP 5.6.30 (cli) (built: Mar 8 2017 00:17:28)
76
+
77
+ ```
78
+
79
+
80
+
71
81
  WebサーバーはApatcheを使っております。
72
82
 
73
83
 

2

追記

2018/02/08 14:55

投稿

kinoshitaaa
kinoshitaaa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -59,3 +59,411 @@
59
59
  ちなみに4GBあるメモリのうち、常に72%程のメモリの使用量が発生しているため、アクセスが集中したときに、
60
60
 
61
61
  メモリエラーでサーバーダウンしてしまいます。
62
+
63
+
64
+
65
+
66
+
67
+ ## 追記
68
+
69
+
70
+
71
+ WebサーバーはApatcheを使っております。
72
+
73
+
74
+
75
+ また、httpd.confのファイルになります。
76
+
77
+
78
+
79
+
80
+
81
+ ```
82
+
83
+ ServerRoot "/etc/httpd"
84
+
85
+
86
+
87
+ Listen 80
88
+
89
+
90
+
91
+ Include conf.modules.d/*.conf
92
+
93
+
94
+
95
+ User apache
96
+
97
+ Group apache
98
+
99
+
100
+
101
+ ServerAdmin root@localhost
102
+
103
+
104
+
105
+ <Directory />
106
+
107
+ AllowOverride none
108
+
109
+ Require all denied
110
+
111
+ </Directory>
112
+
113
+
114
+
115
+ DocumentRoot "/var/www/html"
116
+
117
+
118
+
119
+ <Directory "/var/www">
120
+
121
+ AllowOverride None
122
+
123
+ # Allow open access:
124
+
125
+ Require all granted
126
+
127
+ </Directory>
128
+
129
+
130
+
131
+ <Directory "/var/www/html">
132
+
133
+
134
+
135
+ Options Indexes FollowSymLinks
136
+
137
+
138
+
139
+ #
140
+
141
+ # AllowOverride controls what directives may be placed in .htaccess files.
142
+
143
+ # It can be "All", "None", or any combination of the keywords:
144
+
145
+ # Options FileInfo AuthConfig Limit
146
+
147
+ #
148
+
149
+ AllowOverride All
150
+
151
+
152
+
153
+ #
154
+
155
+ # Controls who can get stuff from this server.
156
+
157
+ #
158
+
159
+ Require all granted
160
+
161
+ </Directory>
162
+
163
+
164
+
165
+ #
166
+
167
+ # DirectoryIndex: sets the file that Apache will serve if a directory
168
+
169
+ # is requested.
170
+
171
+ #
172
+
173
+ <IfModule dir_module>
174
+
175
+ DirectoryIndex index.html
176
+
177
+ </IfModule>
178
+
179
+
180
+
181
+ #
182
+
183
+ # The following lines prevent .htaccess and .htpasswd files from being
184
+
185
+ # viewed by Web clients.
186
+
187
+ #
188
+
189
+ <Files ".ht*">
190
+
191
+ Require all denied
192
+
193
+ </Files>
194
+
195
+
196
+
197
+ #
198
+
199
+ # ErrorLog: The location of the error log file.
200
+
201
+ # If you do not specify an ErrorLog directive within a <VirtualHost>
202
+
203
+ # container, error messages relating to that virtual host will be
204
+
205
+ # logged here. If you *do* define an error logfile for a <VirtualHost>
206
+
207
+ # container, that host's errors will be logged there and not here.
208
+
209
+ #
210
+
211
+ ErrorLog "logs/error_log"
212
+
213
+
214
+
215
+ #
216
+
217
+ # LogLevel: Control the number of messages logged to the error_log.
218
+
219
+ # Possible values include: debug, info, notice, warn, error, crit,
220
+
221
+ # alert, emerg.
222
+
223
+ #
224
+
225
+ LogLevel warn
226
+
227
+
228
+
229
+ <IfModule log_config_module>
230
+
231
+
232
+
233
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
234
+
235
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
236
+
237
+
238
+
239
+ <IfModule logio_module>
240
+
241
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
242
+
243
+ </IfModule>
244
+
245
+
246
+
247
+ CustomLog "logs/access_log" combined
248
+
249
+ </IfModule>
250
+
251
+
252
+
253
+ <IfModule alias_module>
254
+
255
+
256
+
257
+ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
258
+
259
+
260
+
261
+ </IfModule>
262
+
263
+
264
+
265
+ <Directory "/var/www/cgi-bin">
266
+
267
+ AllowOverride None
268
+
269
+ Options None
270
+
271
+ Require all granted
272
+
273
+ </Directory>
274
+
275
+
276
+
277
+ <IfModule mime_module>
278
+
279
+ #
280
+
281
+ # TypesConfig points to the file containing the list of mappings from
282
+
283
+ # filename extension to MIME-type.
284
+
285
+ #
286
+
287
+ TypesConfig /etc/mime.types
288
+
289
+
290
+
291
+ #
292
+
293
+ # AddType allows you to add to or override the MIME configuration
294
+
295
+ # file specified in TypesConfig for specific file types.
296
+
297
+ #
298
+
299
+ #AddType application/x-gzip .tgz
300
+
301
+ #
302
+
303
+ # AddEncoding allows you to have certain browsers uncompress
304
+
305
+ # information on the fly. Note: Not all browsers support this.
306
+
307
+ #
308
+
309
+ #AddEncoding x-compress .Z
310
+
311
+ #AddEncoding x-gzip .gz .tgz
312
+
313
+ #
314
+
315
+ # If the AddEncoding directives above are commented-out, then you
316
+
317
+ # probably should define those extensions to indicate media types:
318
+
319
+ #
320
+
321
+ AddType application/x-compress .Z
322
+
323
+ AddType application/x-gzip .gz .tgz
324
+
325
+
326
+
327
+ #
328
+
329
+ # AddHandler allows you to map certain file extensions to "handlers":
330
+
331
+ # actions unrelated to filetype. These can be either built into the server
332
+
333
+ # or added with the Action directive (see below)
334
+
335
+ #
336
+
337
+ # To use CGI scripts outside of ScriptAliased directories:
338
+
339
+ # (You will also need to add "ExecCGI" to the "Options" directive.)
340
+
341
+ #
342
+
343
+ #AddHandler cgi-script .cgi
344
+
345
+
346
+
347
+ # For type maps (negotiated resources):
348
+
349
+ #AddHandler type-map var
350
+
351
+
352
+
353
+ #
354
+
355
+ # Filters allow you to process content before it is sent to the client.
356
+
357
+ #
358
+
359
+ # To parse .shtml files for server-side includes (SSI):
360
+
361
+ # (You will also need to add "Includes" to the "Options" directive.)
362
+
363
+ #
364
+
365
+ AddType text/html .shtml
366
+
367
+ AddOutputFilter INCLUDES .shtml
368
+
369
+ </IfModule>
370
+
371
+
372
+
373
+ #
374
+
375
+ # Specify a default charset for all content served; this enables
376
+
377
+ # interpretation of all content as UTF-8 by default. To use the
378
+
379
+ # default browser choice (ISO-8859-1), or to allow the META tags
380
+
381
+ # in HTML content to override this choice, comment out this
382
+
383
+ # directive:
384
+
385
+ #
386
+
387
+ AddDefaultCharset UTF-8
388
+
389
+
390
+
391
+ <IfModule mime_magic_module>
392
+
393
+ #
394
+
395
+ # The mod_mime_magic module allows the server to use various hints from the
396
+
397
+ # contents of the file itself to determine its type. The MIMEMagicFile
398
+
399
+ # directive tells the module where the hint definitions are located.
400
+
401
+ #
402
+
403
+ MIMEMagicFile conf/magic
404
+
405
+ </IfModule>
406
+
407
+
408
+
409
+ #
410
+
411
+ # Customizable error responses come in three flavors:
412
+
413
+ # 1) plain text 2) local redirects 3) external redirects
414
+
415
+ #
416
+
417
+ # Some examples:
418
+
419
+ #ErrorDocument 500 "The server made a boo boo."
420
+
421
+ #ErrorDocument 404 /missing.html
422
+
423
+ #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
424
+
425
+ #ErrorDocument 402 http://www.example.com/subscription_info.html
426
+
427
+ #
428
+
429
+
430
+
431
+ #
432
+
433
+ # EnableMMAP and EnableSendfile: On systems that support it,
434
+
435
+ # memory-mapping or the sendfile syscall may be used to deliver
436
+
437
+ # files. This usually improves server performance, but must
438
+
439
+ # be turned off when serving from networked-mounted
440
+
441
+ # filesystems or if support for these functions is otherwise
442
+
443
+ # broken on your system.
444
+
445
+ # Defaults if commented: EnableMMAP On, EnableSendfile Off
446
+
447
+ #
448
+
449
+ #EnableMMAP off
450
+
451
+ EnableSendfile on
452
+
453
+
454
+
455
+ # Supplemental configuration
456
+
457
+ #
458
+
459
+ # Load config files in the "/etc/httpd/conf.d" directory, if any.
460
+
461
+ IncludeOptional conf.d/*.conf
462
+
463
+
464
+
465
+ LoadModule rewrite_module modules/mod_rewrite.so
466
+
467
+
468
+
469
+ ```

1

追記

2018/02/08 14:53

投稿

kinoshitaaa
kinoshitaaa

スコア11

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,13 @@
49
49
 
50
50
 
51
51
  宜しくお願い致します。
52
+
53
+
54
+
55
+ --
56
+
57
+
58
+
59
+ ちなみに4GBあるメモリのうち、常に72%程のメモリの使用量が発生しているため、アクセスが集中したときに、
60
+
61
+ メモリエラーでサーバーダウンしてしまいます。