question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Limit number of tasks per browser instance

See original GitHub issue

Is there any way to limit the number of tasks used per browser instance? I’m thinking of something along the lines (perhaps) of tasksPerInstance: 1000, and then the cluster will track the number of tasks that have been used in a specific browser instance and then whenever that limit is reached will kill that browser instance and launch another, as a (potential) shield against browser memory growth. Its a technique I’ve seen used in other process pooling models (I think some of the Apache web server modules let you specify a maximum number of requests a worker process will serve before it is terminated and replaced with a fresh process).

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
hatemalimamcommented, Jan 7, 2020

This really would be helpful in managing the memory pile up…

0reactions
tomerb15commented, Nov 19, 2020

Was this ever handled? Is there a work around that will cause the memory to go down?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to limit the number of parallel Tasks globally in ...
MaxValue . So theoretically yes. The fact that there practically is no limit to the amount of tasks(at least with the default TaskScheduler...
Read more >
Configuring the Maximum Number of Tasks per Process ...
The number of tasks threshold (default = 1000) can be configured using the com.tibco.bx.maxTasksPerInstance JVM property. You may want to configure this ...
Read more >
Limits and configuration - Power Automate - Microsoft Learn
Runtime endpoint request limits ; Concurrent inbound calls, ~1,000, You can reduce the number of concurrent requests or reduce the duration as ...
Read more >
Amazon ECS service quotas - AWS Documentation
Services configured to use Amazon ECS service discovery have a limit of 1,000 tasks per service. This is due to the AWS Cloud...
Read more >
Maximum concurrent requests per instance (services)
The specified concurrency value is a maximum and Cloud Run might not send as many requests to a given container instance if the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found