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

質問編集履歴

2

試したこと追記

2021/11/03 08:13

投稿

KNakamura
KNakamura

スコア1

title CHANGED
File without changes
body CHANGED
@@ -39,4 +39,50 @@
39
39
  - Apache単体で表示テスト
40
40
  ![イメージ説明](bad9cf1c15106b3f40e1736b6dbbd502.png)
41
41
  ApacheからTomcatへの転送を行わずApacheのテストページを表示してみる
42
- →変わらず表示が遅いことがあるため、Apacheにアクセスするまでに問題があると想定しております。
42
+ →変わらず表示が遅いことがあるため、Apacheにアクセスするまでに問題があると想定しております。
43
+
44
+ ####(2021/11/3追記)
45
+ - GoogleChromeの検証画面確認
46
+ 以下の通りで、初期接続時に1.3分かかっていることが分かりました。
47
+ ![イメージ説明](ef19bca0723a875f3d3e257612e78650.png)
48
+
49
+ - Apacheのログ確認
50
+ /etc/httpd/logs/内のerror_logを確認したところ、気になる箇所として以下のようなログがありました。
51
+ ```
52
+ [Wed Oct 27 13:00:14.032817 2021] [proxy_http:error] [pid 23434] (20014)Internal error (specific information not available): [client 10.0.0.17:2796] AH01102: error reading status line from remote server localhost:8009
53
+ [Wed Oct 27 13:00:14.032845 2021] [proxy:error] [pid 23434] [client 10.0.0.17:2796] AH00898: Error reading from remote server returned by /
54
+ ```
55
+
56
+ [Qiitaの記事](https://qiita.com/kazukikudo/items/96f77f1648b8ce47dc06#proxyerror-reading-status-line-from-remote-server-%E5%95%8F%E9%A1%8C)によると、
57
+ 「リバースプロキシ(Apache)とバックエンドの間でコネクションを再利用した際にリバースプロキシからリクエストを送信するタイミングとバックエンド側がコネクションをクローズしたタイミングが一致した時に発生」
58
+ するもののようです。
59
+
60
+ /etc/httpd/conf.d/proxy-ajp.conf内に以下の記述を追加すると上記エラーは解消されましたが、
61
+ ```
62
+ SetEnv proxy-initial-not-pooled 1
63
+ ```
64
+
65
+ 接続速度の問題は解決していません。
66
+
67
+ error_logの全文は以下のとおりです。
68
+ ```
69
+ [Sun Oct 31 03:44:01.344488 2021] [lbmethod_heartbeat:notice] [pid 14065] AH02282: No slotmem from mod_heartmonitor
70
+ [Sun Oct 31 03:44:01.344539 2021] [http2:warn] [pid 14065] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
71
+ [Sun Oct 31 03:44:01.344941 2021] [mpm_prefork:notice] [pid 14065] AH00163: Apache/2.4.48 () OpenSSL/1.0.2k-fips configured -- resuming normal operations
72
+ [Sun Oct 31 03:44:01.344949 2021] [core:notice] [pid 14065] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
73
+ [Wed Nov 03 16:26:59.151418 2021] [proxy:error] [pid 20083] (111)Connection refused: AH00957: AJP: attempt to connect to 127.0.0.1:8009 (localhost) failed
74
+ [Wed Nov 03 16:26:59.152888 2021] [proxy_ajp:error] [pid 20083] [client 10.0.1.252:21230] AH00896: failed to make connection to backend: localhost
75
+ [Wed Nov 03 16:27:05.494995 2021] [mpm_prefork:notice] [pid 14065] AH00170: caught SIGWINCH, shutting down gracefully
76
+ [Wed Nov 03 16:27:06.720868 2021] [suexec:notice] [pid 4638] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
77
+ [Wed Nov 03 16:27:06.743505 2021] [so:warn] [pid 4638] AH01574: module proxy_module is already loaded, skipping
78
+ [Wed Nov 03 16:27:06.798965 2021] [lbmethod_heartbeat:notice] [pid 4638] AH02282: No slotmem from mod_heartmonitor
79
+ [Wed Nov 03 16:27:06.799031 2021] [http2:warn] [pid 4638] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive.
80
+ [Wed Nov 03 16:27:06.804169 2021] [mpm_prefork:notice] [pid 4638] AH00163: Apache/2.4.51 () OpenSSL/1.0.2k-fips configured -- resuming normal operations
81
+ [Wed Nov 03 16:27:06.804196 2021] [core:notice] [pid 4638] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
82
+ ```
83
+
84
+ - アプリケーションのログ確認
85
+ SpringBoot内のapplication.ymlにログファイル出力の設定を行い確認しましたが、接続が遅いときでも特にログ上で異常はありませんでした。
86
+
87
+ - tracetouteコマンドによる確認
88
+ これから行ってまいります。

1

ネットワーク構成図の修正、Route53設定の追記

2021/11/03 08:13

投稿

KNakamura
KNakamura

スコア1

title CHANGED
File without changes
body CHANGED
@@ -18,9 +18,16 @@
18
18
  当状況の原因特定の方法とその解決策について、何かご教示いただけますと幸甚です。
19
19
 
20
20
  #ネットワーク構成図
21
- ![イメージ説明](500219813b4ebddf9a06e467c1ec6711.jpeg)
21
+ ![イメージ説明](2970856aae82df1d91b7e6d49c8d6c44.jpeg)
22
22
  ( 初学者のため誤っている箇所がありましたら申し訳ございません )
23
23
 
24
+ (追記 Route53にElasticIPを設定しているような図となっていたので図を修正しました。申し訳ありませんでした。
25
+ Route53は以下の通り設定しております。
26
+ レコードA:ALBを設定
27
+ レコードNS, SOA, CNAME:お名前.comの設定
28
+ レコードTXT:GoogleAPIの検証用の設定)
29
+ ![イメージ説明](e106a6514a22d09e677ade7919ab1beb.png)
30
+
24
31
  #試したこと
25
32
  - CloudWathにてALBのResponse Time確認(以下の通りで問題ありませんでした)
26
33
  ![イメージ説明](b531d1f19a64e2919d2f2cff8f2fb852.png)