Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPBカップ
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPressサイトのストレステスト方法 (2024)

編集メモ: WPBeginner のパートナーリンクから手数料を得ています。手数料は編集者の意見や評価に影響を与えません。編集プロセスについて詳しく知る。

トラフィックが急増した場合のサイトのパフォーマンスを知りたいですか?

WordPressウェブサイトのストレステストは、さまざまな状況下でウェブサイトがどのように動作するかを示します。こうすることで、高速なパフォーマンスを確保し、問題を解決することができます。

この投稿では、WordPressサイトのストレステストの方法を紹介します。

How to stress test a WordPress website

WordPressストレステストとは?

WordPress ストレステストでは、トラフィックが多い状況でサイトがどのように動作するかを確認できます。トラフィックの急増に備え、サイトがどのように負荷に対応するかを確認できます。

通常、サイトが耐えられるトラフィック量はWordPressホスティングサービスプランによって決まります。しかし、ストレステストは、これらの限界を見つけ、高トラフィックによって発生する可能性のある問題を発見するのに役立ちます。

たとえば、トラフィックが突然急増すると、サイトがクラッシュしてサーバーリソースをすべて使用してしまう可能性があります。同様に、どのWordPressプラグイン、テーマ、コードスニペット、画像が極端な状況で誤動作するかも確認できます。

ストレステストでは、問題を簡単に修正したり、設定ミスを修正したりすることができます。その結果、より良いユーザー体験を提供し、トラフィックの多い状況に備えることができます。

とはいえ、WordPressサイトのストレステストの方法を見てみよう。

WordPressサイトのストレステスト

WordPressサイトのパフォーマンスを測定することに関しては、PageSpeed Insights、Pingdom、GTmetrixのようなスピードテストツールがたくさんあります。

これらのツールは、サイトの読み込み速度を調べるのに役立ちますが、高いトラフィック下でサイトがどのように動作するかはわかりません。

WordPressサイトにストレスを与えるために、このチュートリアルではLoader.ioを使用します。これは、高トラフィック状況をシミュレートし、一連のテストを実行する無料のツールです。

無料のLoader.ioアカウントにサインアップする

まず、Loader.ioのサイトにアクセスし、無料アカウントを作成する必要があります。今すぐサインアップ」ボタンをクリックするだけで、簡単に始められます。

Loader.io website

その後、ツールが提供するさまざまな料金プランが表示されます。

先に進み、「無料」料金プランを選択する。

Select a pricing plan for Loader

次に、新規アカウント登録のための詳細を入力します。

Loader.ioは、会社名、メール・アドレス、パスワードを要求します。これらの情報を追加したら、reCaptchaボックスにチェックを入れ、「サインアップ」ボタンをクリックするだけです。

Enter information to create a free loader account

確認メールも届きます。受信トレイを確認し、メールに記載されているリンクをクリックしてアカウントを確認してください。

Loader.ioへの新規ホスティングサービスの追加

その後、’+ New Host’ボタンをクリックしてターゲットホスティングサービスを設定することができます。

Click the new host button

次に、ドメイン名を入力する必要があります。

完了したら、「次へ」をクリックします:Verify」ボタンをクリックします。

Enter your domain name

次に、ドメインを検証する必要があります。HTTPまたはDNSで検証することができます。

このチュートリアルでは、「Verify over HTTP」オプションを使用し、検証ファイルをダウンロードします。先に進み、’download’リンクをクリックし、コンピューターにファイルを保存してください。

Download target verification token file

ファイルをダウンロードしたら、サイトのルート・フォルダーにアップダーする必要があります。これは通常「public_html」フォルダーと呼ばれます。

ファイルをアップロードするには、FTPクライアントを使用します。詳しくは、FTPを使ってWordPressにファイルをアップロードする方法をご覧ください。

Upload verification file to root folder

ファイルをアップロードしたら、Loader.ioのサイトに戻り、「Verify」ボタンをクリックします。

認証が完了すると、成功のメッセージが表示されます。

View successful verification message

次に、’新規テスト’ボタンをクリックし、あなたのサイトのストレステストを設定する必要があります。

ストレステストの設定

次の画面では、ストレステストの設定を変更できます。テストの名前を追加することから始めることができます。

Change stress test settings

その後、テストの種類を選択する必要があります。Loader.ioは3つのテストタイプを提供しています:

  • Clients per test– このテストでは、特定の数のビジターが指定された時間サイトを訪問したときにサイトがどのように機能するかをテストすることができます。クライアントの数と期間を設定できます。
  • Clients per second– このシナリオでは、1秒あたりのクライアントリクエスト数を指定してサイトをテストします。
  • クライアント負荷の維持 – このテストタイプでは、テスト期間中、定数のクライアントが維持されます。特定の時間、定数の負荷がある場合に、サイトにストレスを与えます。

それぞれのテストを複数回実施することをお勧めします。これにより、異なるシナリオの下でサイトが遭遇する可能性のある問題を発見することができます。

下にスクロールすると、クライアントリクエストの設定があります。一般的なテストでは、初期設定を使用することをお勧めします。

Edit client request settings

これで、WordPressサイトをストレステストする準備が整いました。テストの実行」ボタンをクリックしてください。

ストレステストの結果を分析する

Loader.ioはあなたのサイトのストレステストを実行し、結果をまとめます。その結果を分析することで、高トラフィック状況下でのサイトのパフォーマンスを確認することができます。

例えば、平均レスポンシブタイムを見ることから始めることができます。レスポンシブ時間が短ければ短いほど、サイトの読み込み速度が速いことを意味します。

テストでは、250人のクライアントが1分間サイトを訪問した場合、平均レスポンシブタイムは590ミリ秒または0.59秒でした。

Stress test results

これはかなりまともな数値で、高負荷時でもサイトが大幅に遅くなることはなかったことを示している。

しかし、記録された最大レスポンシブ時間は10489ミリ秒(10.489秒)でした。以下のグラフを見ると、クライアントの数と比較してレスポンスタイムがいつ跳ね上がるかがわかります。

例えば、私たちのテストでは、クライアント数が150を超えると急増し、クライアント数が200に達しそうになると最大のレスポンシブタイムが見られた。

View stress test results graph

これらのインサイトを利用することで、ある一定の人数がサイトを訪れたときに、あなたのサイトがどのようなパフォーマンスを示すか、おおよその見当がつくようになる。

このステップを繰り返し、異なるシナリオで複数のテストを実行することができます。例えば、クライアントの数を増やし、期間をテストし、異なるテストタイプを使用してみてください。

レスポンスタイムとパフォーマンス向上のヒント

WordPressの負荷テストが高トラフィック状況下で遅いパフォーマンスを示した場合、サイトを高速化するためにさまざまなことを試すことができます。

ここでは、レスポンシブを改善し、高トラフィック負荷に対応するためのヒントを紹介します:

1.WordPressホスティングプランをアップグレードする – 月間訪問者数に制限のあるホスティングサービスをご利用の場合は、より高いホスティングプランへのアップグレードをご検討ください。こうすることで、より多くのサーバーリソースを得ることができ、サイトが急増したときに余分なトラフィックを処理することができます。さらに詳しく知りたい方は、最速WordPressホスティングサービスの詳細比較もご覧ください。

2.キャッシュプラグインの使用キャッシュプラグインは、サイトのサーバーの負荷を軽減し、パフォーマンスを向上させるのに役立ちます。ウェブページをリクエストする全プロセスを経る代わりに、静的バージョンのサイトをユーザーに提供します。その結果、サイトの読み込みが速くなり、より良いユーザー体験を提供できます。

3.コンテンツデリバリーネットワーク(CDN)のセットアップCDNは、キャッシュされた静的コンテンツをユーザーの場所に基づいて配信するサーバーのネットワークです。サイトサーバーの負荷を下げ、レスポンシブタイムを改善するのに役立ちます。

4.画像と動画の最適化– 最適化されていない画像は、サイトのパフォーマンス問題を引き起こし、サーバーへの負荷を増加させます。まずは、大きな画像ファイルを圧縮してレスポンシブ時間を短縮しましょう。サイトに動画をホスティングしている場合は、YouTubeやVimeoにアップロードしてコンテンツに埋め込むことを検討してください。

5.使っていないプラグインやテーマを削除する – 使っていないWordPressプラグインやテーマがあったり、リソースを大量に消費している場合は、削除を検討しましょう。使用していないスクリプトを読み込んだり、サーバーリソースを大量に使用したりすることで、WordPressサイトの動作が遅くなる可能性があります。

サイトのパフォーマンスを向上させるヒントについては、WordPressのスピードとパフォーマンスを向上させるガイドをご覧ください。

この投稿が、WordPressサイトのストレステストの方法を学ぶのにお役に立てば幸いです。WordPressの最も一般的なエラーとその修正方法WordPress SEOの究極のガイドもご覧ください。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

情報開示 私たちのコンテンツは読者支援型です。これは、あなたが私たちのリンクの一部をクリックした場合、私たちはコミッションを得ることができることを意味します。 WPBeginnerの資金源 をご覧ください。3$編集プロセスをご覧ください。

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

究極のWordPressツールキット

ツールキットへの無料アクセス - すべてのプロフェッショナルが持つべきWordPress関連製品とリソースのコレクション!

Reader Interactions

21件のコメント返信を残す

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Ishmal Majid says

    Using the Caching Plugin and setting up CDN are really amazing ideas to maintain the performance of websites even under high traffic. This article, I would say, is a good one.

  3. Mrteesurez says

    I just discovered this and I say whaaooo !.
    This post is quite helpful. Some hosting companies will just highlighted the descriptions each plan ambiguously.

    Now I can stress test my WordPress website. thanks.

    But my question is, can this test not have real time impact on the server capacity ??

    Is it sending real traffics or just an imagination.

    • WPBeginner Support says

      The test can affect your site which is why you would want to be careful that you do not test a massive number of connections using this during the peak usage time for your site.

      管理者

      • Mrteesurez says

        Thanks for your reply.
        I just want to confirm so that I can limit or lower the number of request I will be using during the test to avoid site crash or hosting issue.

  4. Ralph says

    Woah, turns out my site is not so much ready for big spikes of readers! I’m glad that you posted on only tutorial of test, but also tips how to improve!

  5. A Owadud Bhuiyan says

    This article is very useful.

    But I have a concern about my website security. Have you any blogs which help to protect my site or what should I do if my site is hacked?

    Advanced Thanks.

  6. Moinuddin Waheed says

    Great insights into how we can future proof our traffic load on our website. Most of us who starts a blog or a website, we tend to buy a shared hosting plan and host our website there for multiple reasons. affordability is one of the most pressing reasons for newbies like me.
    How much traffic a shared hosting plan can handle without us doing anything to handle the traffic aspect?

    • WPBeginner Support says

      It would depend on your specific hosting provider, if you check with the support for your hosting provider they should be able to let you know if you wanted a method other than running a stress test.

      管理者

    • Jiří Vaněk says

      Good practice also involves discussing with your web hosting support before the actual test. Starting the testing process might overload the shared server, leading to a shutdown. Be mindful of that. As for pricing, in the Czech Republic, we have virtual servers with 8GB RAM and 4 cores priced around 13 Euros per month for a Linux server. So, that pricing offer is quite good. Additionally, users can choose a data center based on their location to avoid having the server in a distant location.

  7. Karim Twin says

    This is a great guide for WordPress sites that are run by beginning bloggers. It’s true that a traffic surge can shut down your site if it’s not well-optimized for a surprising increase in traffic. I honestly find this blog post useful and helpful.

    Thanks to the editorial team for sharing this free guide.

  8. Jiří Vaněk says

    Thank you for the tip. I run my website on my own cloud server. For one website, I have 4 virtual CPUs and 8GB of RAM. I’ve been wanting to test how much traffic or load the server can handle for a while now. This could be an interesting test for some performance feedback.

  9. Ahmed Omar says

    website stress test, it looks like heart stress test.
    specially during holidays offers, you need to trust your site performance.
    thank you for this useful post

    • WPBeginner Support says

      You’re welcome, its a good idea to do this before having a holiday offer live ideally :)

      管理者

返信を残す

コメントありがとうございます。すべてのコメントは私たちのコメントポリシーに従ってモデレートされ、あなたのメールアドレスが公開されることはありませんのでご留意ください。名前欄にキーワードを使用しないでください。個人的で有意義な会話をしましょう。