TimeoutException: Script execution exceeded 3000ms limit
Running a load test with 50 concurrent WebSocket connections using JMeter 5.6.2. The goal is to simulate a sudden influx of calls hitting a specific Architect flow that uses a Script node for dynamic greeting generation based on caller ID.
The flow works fine with 10 concurrent users. At 50, the Script node starts timing out consistently. The script is simple JS, just fetching a variable and returning a string. No external API calls inside the script.
“Script nodes have a strict execution time limit to prevent blocking the flow engine. Complex logic should be offloaded to external services.”
I know it’s a limit, but 3 seconds seems short for basic string manipulation under load. Is there a way to increase this limit via API? Or is this a hard cap in the platform? The error occurs on POST /api/v2/architect/flows.
JMeter config:
- Thread Group: 50 users
- Ramp-up: 0s
- Loop: Infinite
- Protocol: WSS (WebSockets)
Any tips on optimizing the script or handling this at scale? The latency spikes are killing our throughput metrics.