microsoft / microsoft/playwright-java

[Bug]: [java] Memory leak in long working tests

オープン
#1,841 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

P3-collecting-feedback
主要言語
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:

  1. Download repo
    2 .Go to project with terminal and use docker build -t [imagename] .
  2. docker run --init --ipc=host -t [tagoimagefrom2ndpoint] mvn compile exec:java -D exec.mainClass="org.example.App"
  3. 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

Image
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

Image
Environment
OS: jvm-ubuntu:21
Language: Java

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされている再現用リポジトリとその Docker セットアップから始め、stem -t でメモリとプロセスを監視しながら org.example.App 用の Maven コマンドを実行します。長時間にわたる増加を再現し、終了されないプロセスまたはメモリ増加の原因を特定できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, java
領域
devops, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。