# Two high memory workers swamped and would like to queue jobs waiting

**URL:** https://community.temporal.io/t/two-high-memory-workers-swamped-and-would-like-to-queue-jobs-waiting/6739
**Category:** Community Support
**Tags:** java-sdk, metrics
**Created:** [December 16, 2022, 4:34pm UTC](https://community.temporal.io/t/two-high-memory-workers-swamped-and-would-like-to-queue-jobs-waiting/6739 "2022-12-16T16:34:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Matthew\_Gerring](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/matthew_gerring/32/714_2.png) [@Matthew\_Gerring](https://community.temporal.io/u/Matthew_Gerring)
#### Post date: [December 16, 2022, 4:34pm UTC](https://community.temporal.io/t/two-high-memory-workers-swamped-and-would-like-to-queue-jobs-waiting/6739/1 "2022-12-16T16:34:50Z")

</div>

Hello,

I have two workers which process a queue. They both run high memory activities. Is there a way to say that when they are both loaded, the queue does not start incoming submissions? At the moment the activity is started and runs out of memory.

Matt

---

<div class="post-metadata">

### Author: ![tihomir](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/tihomir/32/6580_2.png) [@tihomir](https://community.temporal.io/u/tihomir)
#### Post date: [December 16, 2022, 5:12pm UTC](https://community.temporal.io/t/two-high-memory-workers-swamped-and-would-like-to-queue-jobs-waiting/6739/2 "2022-12-16T17:12:49Z")

</div>

WorkerOptions-\>setMaxConcurrentActivityExecutionSize (default 200) is per worker limit on number of parallel activities it can execute.
