We are running a browser base UI test with the following config:
ui: {
executor: 'shared-iterations',
vus: 3,
iterations: 3,
options: {
browser: {
type: 'chromium',
},
},
}
It is loading a lot of records on the page, and checking it locally on a Mac, chrome shows that only 181 MB is used by the tab. The K6 POD instance is failing and is showing OOM killed even though it has a pretty hefty resource allocation
resources:
limits:
cpu: '8'
memory: 8Gi
requests:
cpu: '4'
memory: 4Gi
The error I am seeing is:
time="2025-06-18T15:36:16Z" level=warning msg="Unexpected DevTools server error: Target has crashed" category="ExecutionContext:eval" elapsed="644 ms" source=browser
time="2025-06-18T15:36:16Z" level=warning msg="failed to hide page: evaluating JS: Target has crashed" category="Page:Close" elapsed="0 ms" source=browser
time="2025-06-18T15:36:16Z" level=error msg="Uncaught (in promise) internal error while removing binding from page: Target has crashed" executor=ramping-vus scenario=post_scenario
time="2025-06-18T15:36:45Z" level=warning msg="Unexpected DevTools server error: context deadline exceeded" category="ExecutionContext:eval" elapsed="0 ms" source=browser
time="2025-06-18T15:36:45Z" level=warning msg="failed to hide page: evaluating JS: context deadline exceeded" category="Page:Close" elapsed="0 ms" source=browser
time="2025-06-18T15:36:45Z" level=error msg="Error occurred:\nName: undefined\nMessage: undefined\nStack: undefined\nDetails: {}" source=console
Could someone tell me what we can optimize to fix this? We would like to run this on a single pod, i.e. parallelism set to 1.