Skip to content

Commit fd61eae

Browse files
committed
fix: set UV_THREADPOOL_SIZE=8 for TXE server to prevent libuv thread exhaustion
1 parent 940351a commit fd61eae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

noir-projects/aztec-nr/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function test {
3131
local txe_base_port=14730
3232
trap 'kill $(jobs -p)' EXIT
3333
check_port $txe_base_port || echo "WARNING: port $txe_base_port is in use, TXE may fail to start"
34-
(cd $root/yarn-project/txe && LOG_LEVEL=error TXE_PORT=$txe_base_port yarn start) &
34+
(cd $root/yarn-project/txe && UV_THREADPOOL_SIZE=8 LOG_LEVEL=error TXE_PORT=$txe_base_port yarn start) &
3535
echo "Waiting for TXE to start..."
3636
local j=0
3737
while ! nc -z 127.0.0.1 $txe_base_port &>/dev/null; do

noir-projects/noir-contracts/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function test {
251251
trap 'kill $(jobs -p) &>/dev/null || true' EXIT
252252
for i in $(seq 0 $((NUM_TXES-1))); do
253253
check_port $((txe_base_port + i)) || echo "WARNING: port $((txe_base_port + i)) is in use, TXE $i may fail to start"
254-
(cd $root/yarn-project/txe && LOG_LEVEL=silent TXE_PORT=$((txe_base_port + i)) yarn start) >/dev/null &
254+
(cd $root/yarn-project/txe && UV_THREADPOOL_SIZE=8 LOG_LEVEL=silent TXE_PORT=$((txe_base_port + i)) yarn start) >/dev/null &
255255
done
256256
echo "Waiting for TXE's to start..."
257257
for i in $(seq 0 $((NUM_TXES-1))); do

0 commit comments

Comments
 (0)