You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a k6 browser based test with multiple VUs, I noticed a steady increase of used memory. After trying to reduce the tests to a bare minimum, I came to the conclusion that this is caused by dynamic/non-unique URLs which are being called by the browser during the tests.
For me it seems that this is the browser version of what is being described in the k6 docs as url groupinghere and here. - I would suspect the issue being related to the metric browser_http_req_duration.
xk6-browser version
1.2.1
OS
Debian Linux
Chrome version
Chromium 120.0.6099.199
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Demo HTML page (Page with a title and a link): demo-page.zip
Two versions are included:
index.html -> Clicking the link calls a dynamic URL (just adding the timestamp as query)
demo.html -> Clicking the link calls the same URL every time
Brief summary
When running a k6 browser based test with multiple VUs, I noticed a steady increase of used memory. After trying to reduce the tests to a bare minimum, I came to the conclusion that this is caused by dynamic/non-unique URLs which are being called by the browser during the tests.
For me it seems that this is the browser version of what is being described in the k6 docs as url grouping here and here. - I would suspect the issue being related to the metric browser_http_req_duration.
xk6-browser version
1.2.1
OS
Debian Linux
Chrome version
Chromium 120.0.6099.199
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Demo HTML page (Page with a title and a link):
demo-page.zip
Two versions are included:
Test script:
Expected behaviour
Moderate increase of memory
Actual behaviour
Running the Test with dynamic URLs being called results in a steady increase of memory (~ additionally 1 GB / hour):
![memory_usage](https://private-user-images.githubusercontent.com/15640159/298027107-89df7ed8-2445-4435-8867-c3d2d828f2a2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDE4OTUsIm5iZiI6MTcyMTIwMTU5NSwicGF0aCI6Ii8xNTY0MDE1OS8yOTgwMjcxMDctODlkZjdlZDgtMjQ0NS00NDM1LTg4NjctYzNkMmQ4MjhmMmEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA3MzMxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzYjUxNzY5NmYwZDNlZTM4OThlMWFjZWUwOWJjNDAzOWZlOWJjZjQ2MzcwOGQ1YjdmMThiYjczZjE0NzA5ZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nBMviylyU9zF5_vKRDd3o1RxyXvdjprngOpK-AaQcd0)
The same test without the dynamic URL part:
![memory_usage](https://private-user-images.githubusercontent.com/15640159/298027268-06a02eb5-38a8-46fb-af31-deded094c51d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyMDE4OTUsIm5iZiI6MTcyMTIwMTU5NSwicGF0aCI6Ii8xNTY0MDE1OS8yOTgwMjcyNjgtMDZhMDJlYjUtMzhhOC00NmZiLWFmMzEtZGVkZWQwOTRjNTFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA3MzMxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5NGZmNTc1NjEyYThkMTA0Njc5MDUxZjRiNjdkNmMyMWI4ZjkxMmZhNDI1NDdiMDliNTY5YmVhZGFkZmIxNDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LPoLKR9F7QZ8o8pEDyUF4IgrIbBH8X6xz6ooiCsM2ZA)
Details (dynamic URLs):
ps aux
result after: 5min (base), ~40mn, ~60mindynamic-urls.zip
Details (same URL):
ps aux
result after: 5min (base), ~110minsame-url.zip
The text was updated successfully, but these errors were encountered: