Memo

メモ > サーバ > 構築: チューニング > Webアプリケーション チューニング

■Webアプリケーション チューニング
Webアプリケーションへの同時アクセス対策メモ http://refirio.org/view/367 Apache Benchを使った負荷テストのやり方 | Web活メモ帳 https://blog.verygoodtown.com/2012/05/apache-bench-ab/ ab コマンドすると、SSL read failed (5) - closing connection | クズリーマンのカス備忘録 https://it-afi.com/apache/ab-%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%99%E3%82%8B%E3%81%A8%E3%80%8... abツールを使うことで、大量アクセスが発生したときの状況をある程度再現できる SSL環境に対しては ab ではなく abs とすることで実行できる 具体的には、以下のようになる
$ ab -n 300 -c 300 https://example.com/test.php $ abs -n 300 -c 300 https://example.com/test.php
ApacheBenchmark(ab)実行中に問題発生:SSL read failed - closing connection https://teratail.com/questions/2180 「SSL read failed (5) - closing connection」これ自体はabsツールの不具合?詳細はまた調べたい PHPでは microtime() で実行時間を調べることができ、memory_get_usage() や memory_get_peak_usage() で、使用メモリ量を調べることができる http://refirio.org/memos/php/benchmark/ http://refirio.org/memos/php/benchmark/benchmark.php http://refirio.org/memos/php/benchmark/memory.php MySQLのExplainを確認する http://woshidan.hatenablog.com/entry/2015/06/20/165817 MySQLのexplainとかについてしらべたときのメモ http://qiita.com/lastcat_/items/de7b530a94fbcf9ba646 MySQLのEXPLAINを徹底解説!! http://nippondanji.blogspot.jp/2009/03/mysqlexplain.html なぜ、SQLは重たくなるのか?──『SQLパフォーマンス詳解』の翻訳者が教える原因と対策 https://employment.en-japan.com/engineerhub/entry/2017/06/26/110000 MySQLのクエリの良し悪しはrows_examinedで判断する - かみぽわーる http://blog.kamipo.net/entry/2018/03/22/084126 Linuxコマンドでボトルネックを調べる // Speaker Deck https://speakerdeck.com/pyama86/linuxkomandodebotorunetukuwodiao-beru

Advertisement