microsoft / microsoft/playwright-java
[Bug]: [java] Memory leak in long working tests
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 298
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 14
説明
Version
1.52.0
Steps to reproduce
You need docker to run this project
https://github.com/piotrczarnak/bug-1816_spring
Steps to reproduce:
- Download repo
2 .Go to project with terminal and use docker build -t [imagename] . - docker run --init --ipc=host -t [tagoimagefrom2ndpoint] mvn compile exec:java -D exec.mainClass="org.example.App"
- Wait ~4h and you will see memory consumption growing.
To check memory consumption per process use stem -t (already installed)
Expected behavior
Memory consumption stays on the same level.
Actual behavior
I have constantly running tests in docker container. Each hour I see memory consumption is growing even though I close each test page, browser and playwright itself. Test stared with 456 MB and after 8h it reached 4GB
Additional context
Tests are run in docker container which is created by myself. Tests are run each 1000 ms.
I noticed that there are many not closed processes. After using stem -t
Environment
OS: jvm-ubuntu:21
Language: Java
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リンクされている再現用リポジトリとその Docker セットアップから始め、stem -t でメモリとプロセスを監視しながら org.example.App 用の Maven コマンドを実行します。長時間にわたる増加を再現し、終了されないプロセスまたはメモリ増加の原因を特定できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, java
- 領域
- devops, testing-qa
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100