Generate HAR files and analyze web requests for Atlassian support

パフォーマンスのトラブルシューティング ツールに関するベスト プラクティス

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

要約

HAR is an abbreviation for HTTP Archive, a file format that tracks a web browser's interactions with a site.

HAR files can be a requirement for troubleshooting issues, specifically for problems listed below:

  • Performance Issues: slow page load, timeouts when performing a specific task
  • ページのレンダリング: ページの形式が正しくない、情報が欠落している

Providing this information to the support team will help speed up troubleshooting.

はじめる前に

Please be sure to take note of the supported browser types for the relevant app:

比較のため、複数の HAR ファイルを生成することを強く推奨します。以下は、効果的な情報収集のためのガイドラインです。

  1. Generate a HAR file for an unaffected page (without performance or page rendering issues)
    1. Examples: Dashboard, Issue View, Issue Search, and Project page in Jira
  2. Generate a HAR file for an affected page
    1. Generate multiple times to get a better average and capture consistent timing

How to generate HAR files

 HAR ファイルの生成方法は、ご利用のブラウザによって次のように異なります。 


Chrome

Chrome

HAR ファイルの生成には、開発者ツールをネイティブで提供している Chrome を使用することをお勧めします。Chrome の開発者ツールの詳細については、このリンクをご参照ください。

ツールセット

Chrome には、一連の開発者ツールが含まれます。詳細については上記リンクをご参照ください。

JavaScript エラー

Chrome コンソールを確認し、JavaScript エラーを探します。 

ネットワークの問題

サポートの問題を診断するには、ネットワーク タブを使用できます。

  1. Open up Chrome and enable the Developer Tools
  2. Select the network tab
  3. ログの保存を有効化します。
  4. Load the page with the problem
  5. Wait until it has finished loading
  6. Review it for any errors, referencing HTTP/1.1 Status Codes for information on what those errors mean

アトラシアン サポートでは、ブラウザでのデバッグ ログの取得を依頼することがあります。この情報を依頼されていない場合、内容をスキップして「サポートに情報を提供する」をご参照ください。

追加のブラウザ ログを有効化する方法:

  1. --enable-logging --v=1"」パラメーターを付与してブラウザを起動します (主要なプラットフォームでの手順についてはこの記事をご参照ください)。
  2. A file called "chrome_debug.log" will be generated in the Chrome user default location

サポートに情報を提供する

  1. 次のいずれかの方法で開発者ツールを起動します。
    • キーボード ショートカット (OS X では ⌘⌥I、Linux では Ctrl + Shift、Windows では F12) を使用する
    • From Chrome Menu at the top-right of your browser window, select Tools > Developer Tools
  2. 開発ツールネットワークタブに移動します。
  3. Check the Disable Cache option to prevent caching of resources for this specific page
  4. Press the F1 key, then check the option Allow to generate HAR with sensitive data
    • (info) Without this option set, Chrome will not include the content of HTTP responses in the file or cookies
  5. Refresh the page to start capturing the browser and server traffic

     分析対象の問題に先立って行われたリクエストを確認できるよう、ページ全体の読み込みをキャプチャするようにします。

  6. Complete the steps that trigger or demonstrate your issue
    (info) The Developer Tools won't open by default if the error happens on a pop-up - We need to go into the Developer Tools configurations Preference tab and enable "Auto-open DevTools for popups" in the Global section
  7. The option in step 4 has now enabled a dropdown menu for the save icon (Note the little arrow at the bottom right of it)
  8. Select the save icon to select Export HAR (with sensitive data)... and save the file
    browser developer tools allow you to save a HAR file 
  9. Before sending the HAR file to Atlassian, ensure that any sensitive information is removed/censored using a text editor (that is, remove passwords, secrets, etc.)

Firefox

Firefox

ツールセット

Firefox には、トラブルシューティングに使用できる開発者ツールのセットが埋め込まれています。

JavaScript エラー

コンソールで JavaScript エラーを確認します。

ネットワークの問題

Firefox 開発者ツールの [ネットワーク] タブにアクセスし、ネットワークのエラーを確認します。HTTP コードに関する詳細は、「HTTP/1.1 ステータス コード」をご覧ください。

サポートに情報を提供する

  1. [ツール] > [Web Developer] > [ネットワーク]に移動します。
  2. Select the cog icon, then Persist logs
  3. Refresh the page to start capturing the browser and server traffic
    • Note: Please capture a full page load so we can see the requests made before the problem we're analyzing
  4. Complete the steps that trigger or demonstrate your issue
  5. Select Export followed by Save As... to save the HAR file
    firefox development tools example
  6. Before sending the HAR file to Atlassian, ensure that any sensitive information is removed/censored using a text editor (that is, remove passwords, secrets, etc.)

コンソールのエクスポートも役立つ場合があります。

Internet Explorer

Internet Explorer / Edge

ツールセット

Internet Explorer は開発者ツールバーをサポートしています。さらに、Fiddlerはブラウザの問題のデバッグによく使用されるサードパーティ製アプリケーションです。

JavaScript エラー

Microsoft の「F12 ツールのコンソールを使ったエラーおよびステータスの表示」ナレッジベースで、JavaScript エラーの判別方法をご確認ください。

ネットワークの問題

Microsoft の「Windows Internet Explorer 開発者ツールのネットワークキャプチャ機能を使用する」ナレッジベースを使用して、ネットワークの問題の診断方法を判別できます。HTTP コードの詳細については、「HTTP/1.1 ステータス コード」をご覧ください。

サポートに情報を提供する

データの確認のため、データのコピーを依頼する場合があります。これを実行するには、以下の手順を実行します。 

Microsoft Edge

Microsoft Edge

ツールセット

Microsoft Edge には開発者ツールが組み込まれています

JavaScript の問題

コンソール タブで JavaScript エラーを確認します。

ネットワークの問題

サポートの問題を診断するには、ネットワーク タブを使用できます。

  1. Open up the inbuilt Developer tools
  2. Select the network tab
  3. Load the page with the problem
  4. Wait until it has finished loading
  5. Review it for any errors, referencing HTTP/1.1 Status Codes for information on what those errors mean

サポートに情報を提供する

  1. F12 キーボード ショートカットキーを使用して開発者ツールにアクセスします。

  2. Refresh the page to start capturing the browser and server traffic 

    • Note: Please capture a full page load so we can see the requests made before the problem we're analyzing

  3. Complete the steps that trigger or demonstrate your issue
  4. Select Export as HAR (Floppy button next to the stop button on the Developer Tools) followed by Save As... to save the HAR file
Safari

Safari

ツールセット

Safari comes with its own Safari Web Development Tools, as described in that link.

JavaScript の問題

Apple が、JavaScript エラーの見つけ方の詳細を示した「エラー コンソールの使用」ガイドを提供しています。

ネットワークの問題

Safari Web Inspector ガイド」を参照し、その内容にしたがってネットワーク エラーを探します。「HTTP/1.1 ステータス コード」のページは、HTTP ステータス コードの意味を判別するのに役立ちます。

サポートに HAR ファイルを提供する

  1. Go to the Network tab of the Web Inspector
  2. Make sure the checkbox for Disable Caches is ticked
  3. Refresh the page to start capturing the browser and server traffic 
    1. Note: Please capture a full page load so we can see the requests made before the problem we're analyzing
  4. Complete the steps that trigger or demonstrate your issue
  5. Select Export (the button is near the Disable Caches checkbox)

タイムライン記録をサポートに提供する

  1. Go to Developer tools and choose "Start Timeline Recording"
  2. Select timeline all instruments to record
  3. Refresh the page to start capturing the browser and server traffic
    1. Note: Please capture a full page load so we can see the requests made before the problem we're analyzing
  4. Complete the steps that trigger or demonstrate your issue
  5. Select Save - The circle with the down arrow

タイムライン記録を視覚化する

Safari で生成されたタイムライン記録を視覚化するには、次を行う必要があります。

  1. Go to Safari > Preferences > Advanced
  2. Mark the "Show Develop menu in the menu bar" checkbox 
  3. That will enable the Develop menu, where you can find "Show Web Inspector"
  4. At the top of the Web Inspector area, select "Timelines" and then "Import" on the right side

Web リクエストの分析

HAR ファイルがキャプチャした Web リクエストの分析手順は、パフォーマンスの問題またはページ レンダリングの問題のトラブルシューティングによって異なります。

生成された HAR ファイルを表示する一般的なツールは、Web アプリケーションとして利用可能な HAR Viewer です。

パフォーマンスの問題のトラブルシューティング

パフォーマンスの問題では、読み込み時間と、ブラウザがユーザーにコンテンツを提供するための遅延の原因となっているリクエストに注意します。トラブルシューティングを効果的に行うには、Web リクエストに使用する定義を理解する必要があります。以下を参照してください。

以下は、 HAR Viewer または Google のツールである HAR Analyzer で読み込まれた HAR ファイルから抽出されたものです。


HAR ファイルの読み込み後に Web リクエストを強調表示すると、次の情報が表示されます。

HAR file contents showing page load statistics

Request start time since the beginning

ハイライトされたリクエストは、最初のリクエストから指定した時間後にコールされます。例: 以下の +6.32s は、現在のリクエストが、最初のリクエスト (ほとんどの場合、最初のリクエストとしての HTML リクエスト) の 6.32 秒後にコールされることを意味します。

request start time from a HAR file

Waiting

サーバーの応答を待機する時間。この値が高い場合、次のような可能性があります。

  • If the time waiting is low locally, then the network between your client and the server is the problem
    • Any number of things could hinder the network traversal
    • There are a lot of points between clients and servers; each one has its own connection limitations and could cause a problem
    • The simplest method to test reducing this is to put your application on another host and see if the time waiting improves
  • That the server is busy or suffering a performance issue

Below, we can see that there is around 2 second wait time from the server. This scenario was due to a complex JQL query:

GET request from a HAR file

In this situation, check for any heavy running tasks (Examples: Creating Backup, Reindex).

問題が 1 日のうちの特定の時刻に発生している場合、発生時刻を記録して support.atlassian.com からサポート チケットを作成し、根本原因の調査を依頼してください。

Receiving

必要な情報をクライアントに転送するためにサーバーが使用した時間です。一般に、ここでネットワークの問題が検出されます。次の例をご確認ください。

 

wait time from a HAR file

この例の待機時間は 1.6 秒となっており、これがリクエストの完了を遅延させた大きな原因です。

DOM Loaded

DOM Loaded とは、ブラウザがすべての HTML を受信し、DOM ツリーへのパースを完了して、操作が可能になったことを示します。

ページが完全にレンダリングされる前に発生します (画像、CSS、JavaScript やその他のリンクされている外部リソースが完全にダウンロードされる必要がまだある可能性があります)。

 Don't confuse with onload event.

The onload event occurs when an object has been loaded. onload is often used within the <body> element to execute a script once a web page has completely loaded all content (including images, script files, CSS files, etc.).

onload イベントを使用して、訪問者のブラウザのタイプやブラウザのバージョンを確認したり、情報に基づいて Web ページの適切なバージョンを読み込むことができます。

Please refer to: http://www.w3schools.com/jsref/event_onload.asp

Page Loaded

ページを完全に読み込むのにかかった時間の合計 (Google analytics など、外部サーバーでデータを生成するための、Javascript での AJAX コールまたは REST コールを含みます)。

ページの完全な読み込みが完了するまでの間にページが白い場合、コンテンツが存在しないとは限りません。ページは一般に onload イベントの後に、外部コールからの情報を生成して表示されます。(読み込み時のダッシュボード ガジェットなど)

 

example of a confluence gadget loading widget

ページに含まれる外部リソース (ガジェット、外部リンクなど) がある場合、ページの完全な読み込みには時間がかかる可能性があります。所要時間は、サーバーのパフォーマンスよりも、他のサイト / サーバーからのリクエストの処理速度に応じて異なります。

サイズ

処理するリクエストのサイズもパフォーマンスの問題の原因の 1 つです。リクエストのサイズが遅延に与える影響を理解するための例を以下に示します。

2.4MB のデータの取得にかかる時間はどれぐらいでしょうか。次のように計算されます。

3 Mbps = 約 0.375MBps (注: B = バイト、b = ビット)

2.4 MB の取得に必要な時間:

2.4 MB / 0.375 MBps = 6.4 秒

これは利用可能なスループットによって異なります。一般に、スピード テストを実施し、一番近いサーバーからホストしているデータ センターまでのスループットを調べることができます。

上記の各ブラウザ タイプの [ネットワーク] タブから、同様のビューを表示できます。 

上記の定義を明確に理解している場合、分析の手順は非常に簡単です。

  1. レスポンスに遅延があるリクエストを検索します (一般に、合計 Web リクエスト数を表示している中で一番長いバー)
  2. 最長の待機時間を持つリクエストと、実際の待機時間を特定します
  3. 遅延の主な原因を確認します (Blocking、Waiting、Receiving)
  4. ページを複数回リロードして問題が再現するかどうかを確認します

遅延の原因がサーバーであると特定された場合、取得した情報をサポート チームに提供してサポートを依頼します。その他の問題 (ネットワークなど) の場合、ご利用の ISP または社内のホスティング チームに直接サポートを依頼することをおすすめします。ここまでの手順で収集した情報を調査に活用できます。

レンダリングの問題のトラブルシューティング

ページのレンダリングに失敗する場合、開発者ツール の [ネットワーク] タブに原因が記録されていることが多くあります。原因が記録されていない場合、[キャッシュの無効化] の横のチェックボックスを選択してブラウザ キャッシュを無効化することをおすすめします。これにより、ブラウザでキャッシュ データを使用せずにページを最初からレンダリングできます。同様に、HAR ファイルのステータス コードも、問題の原因となるリクエストの特定に役立ちます。

コード 404 Bad Request と共に [コンソール] タブに表示されるエラー メッセージの例:

{"errorMessages":["Error in JQL Query: Expecting either a value, list or function but got 'IN'. You must surround 'IN' in quotation marks to use it as a value. (line 1, character 11)"],"errors":{}}

It is essential to be able to identify the status code from the HAR files generated as well. Below are some common HTTP status codes:

  • 200 - 成功
  • 404 - ページが見つかりません / 要求が正しくありません
  • 401 - 認証されていません
  • 403 - 禁止されています 
  • 304 - 変更されていません (コンテンツはキャッシュされています)
  • 500 - 内部サーバー エラー

エラーの定義については、「HTTP/1.1 ステータス コードの定義」ページで詳細をご確認ください。

After capturing consistent behavior, provide this information to the support team together with the steps taken for the Support team to work on the potential cause behind the observation.

説明

HAR ファイルは、特にパフォーマンスやページ レンダリングなどの問題のトラブルシューティングに必要な場合があります。

製品Jira、Confluence、Bamboo、Bitbucket、Fisheye
プラットフォームServer、Cloud
最終更新日 2025 年 5 月 7 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.