NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

調査背景
IT2環境にて、jmeterを利用して一定負荷による長時間連続運転試験を行った。(HU-gRPC、HU-http)
その結果、HU-gRPCでは問題は見られなかったが、HU-httpのECSメモリ使用量のメトリクスにて、メモリ使用率の微細な増加傾向(懸念)が見られた。
ただし、API自体の処理内容が軽微な処理であり、メモリ使用量にも余裕のある状態であったため、FullGCは発生していない。
アプリとして対処すべき問題か否かを切り分けるため、ローカルeclipse環境にてjar実行時のヒープサイズ等の条件を調整し、メモリ増加傾向となった際の状態を再現し、詳細調査を行った。


調査結果概要
・標準的な実行条件で連続運転中は、FulllGC(Old領域のGC)が一度も発生しなかった。

・FulllGC(Old領域のGC)を手動で一度発生させると、Old領域のメモリが開放され、メモリ使用率が下がった。

・FulllGC(Old領域のGC)を外部から定期的に発生させるようにすると、毎回Old領域のメモリが開放され、メモリ使用率が増加し続けることは回避できた。

・New領域のマイナーGCで掃除されず、Old領域まで残るオブジェクトの特定:
 ・heapdumpの比較結果からでは、toyotaアプリ資源で明示的に残っているものは特定できず。

 ・springboot、common-lib、pid-centerがメモリリークの元凶になりえていないかの切り分け
  →HU-HTTPのソースを削れるだけ削って、再計測(SpringBootアプリ起動時初期処理/common-libの参照定義/pid-centerのサービス処理を削除したjarにて測定)
   →jar変更前と同様のメモリ増加傾向が見られた為、組込処理起因でのメモリリークはないものと判断できる。



実行条件(調整値)

起動オプションによるメモリサイズ調整 FullGC(Old領域のGC) heapdump確認 HU-HTTP jar内容
#1 発生せず 変更なし
#2 手動実行(1回) 変更なし
#3 自動実行(1回) 変更なし
#4 自動実行(定期) 変更なし
#5 変更なし
#6 HU-HTTP フル機能delete(SpringBootアプリ起動時初期処理/common-libの参照定義/pid-centerのサービス処理を削除したjarにて測定)
#7 HU-HTTP common-libのbyuild.gradle あり
#8 common-libのbyuild.gradle/InitReadFileConfig あり
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.