BuildRiot
Sign in

Article · AI

AgentCore V2 raises session connections to 250: How to measure throughput

AWS raised AgentCore V2’s default per-session connection limit from 16 to 250 and added a platform-overhead metric. This guide explains how to test whether additional connections increase successful completions and identify where queues or resource limits constrain throughput.

A colorful miniature test bench shows blue connections feeding queued paper requests into a lavender processor, with completed checks and twin measurement gauges.
Illustration: BuildRiot (AI-generated)

Key takeaway

More connections can admit more work without increasing successful completions. Measuring platform overhead alongside application queues and completion latency helps developers choose concurrency settings that sustain useful work.

More connections need a throughput test

AWS raised Amazon Bedrock AgentCore Runtime V2’s default 2-vCPU session limit from 16 to 250 concurrent connections in November 2026. The increase applies automatically to V2 runtimes. AWS also introduced OverheadLatency to measure platform-attributable delay through the first response byte, excluding agent processing. These changes give developers more connection capacity and a metric for investigating delays under load. Sources: AWS

Connection capacity and processing capacity remain distinct. AWS lists a maximum session allocation of 2 virtual CPUs and 8 GB of memory, alongside the non-adjustable 250-connection limit. Concurrent requests, WebSockets and server-sent event streams share that allowance. Holding mostly idle streams therefore tests something different from executing CPU-heavy requests. Define success as completed operations within a chosen latency target, and check output validity for real agents. Sources: AWS

Define the clocks before comparing latency

AWS defines OverheadLatency from Runtime receiving a request to the agent returning its first response byte, excluding agent processing. Its release notes say V2 emits the metric in AWS/Bedrock-AgentCore for InvokeAgentRuntime, InvokeAgentRuntimeWithWebSocketStream, InvokeAgentRuntimeCommand and InvokeAgentRuntimeCommandShell requests. AWS defines Latency from request receipt through sending the final response token. Client time to first byte also includes client, network and application time. Subtracting overhead from completion latency therefore does not isolate model execution. Sources: AWS

Instrument the load generator and agent before increasing traffic. Use monotonic clocks for durations within each process, and carry a test request identifier through client, agent and tool logs. Retain AWS request and session identifiers; invocation spans include both identifiers and latency_ms. Do not subtract unsynchronized timestamps across machines or subtract percentiles to attribute delay. The difference between two p99 values is not a component’s 99th-percentile latency. For parallel tools, preserve the critical path because adding overlapping spans can exceed elapsed time. Sources: AWS

  • Client: record scheduled arrival, dispatch, connection acquisition, first byte, first useful content and final byte.
  • Agent: record handler entry, queue wait, model and tool intervals, first emitted byte and completion.
  • Platform: retain overhead, invocation latency, request counts, errors and throttles.
  • Dependencies: capture connection-pool waits, capacity limits, retries and backoff.

Calibrate overhead with controlled delays

Begin at low load with an immediate echo, then introduce deliberate waits and streaming behavior. The table below proposes calibration workloads. The hypothesis is that asynchronous application delay increases client latency while leaving platform overhead broadly unchanged. If overhead rises too, investigate queue boundaries and measurement aggregation before attributing the change to the platform. Measure first useful content separately so an immediate heartbeat cannot disguise a slow answer.

Table

Proposed low-load calibration workloads

WorkloadProposed behaviorDiagnostic purpose
Immediate echoReturn a small fixed payload immediatelyEstablish minimum application work
Delayed first byteAwait 100 ms, 1 second, then 5 seconds before returningCheck whether agent delay is excluded from overhead
Early streaming byteEmit immediately, then await 5 seconds before completionCompare first-byte and completion latency
Deterministic tool callsCall controlled delay endpoints, sequentially and concurrentlySeparate tool waits and application scheduling
Fixed CPU workRun a calibrated computationExpose CPU saturation independently of model variability
Real agentFixed prompt corpus, model settings, tools, and output limitsCheck behavior with production dependencies
These proposed workloads separate application waits and processing before saturation testing.

The throughput benefit remains unmeasured in this proposed experiment. Before treating OverheadLatency as complete platform-delay accounting, verify its processing boundary, handling of requests returning no byte, WebSocket timing and coverage after the first byte. Check metric presence, units, dimensions, sample counts and supported statistics in the test account. Preserve application measurements: AWS says resource-use metrics have one-minute resolution and can arrive up to 60 minutes late. Session usage logs provide one-second granularity. ActiveStreamingConnections covers WebSockets per agent, with a one-minute sum as its meaningful statistic; it cannot count every session connection. Sources: AWS

Separate deployment, new sessions and reused sessions

Startup comparisons become misleading when they measure different lifecycle events. AWS says V2 initializes an environment, snapshots it and restores it for subsequent instances. Its echo-agent benchmark reported approximately two seconds at the 75th percentile for V2 cold invocations across images from 200 MB to 2 GB. The client ran in Oregon and called N. Virginia over the public internet. Those client timings include cross-region networking and measure a different boundary from OverheadLatency. Sources: AWS

DevelopersIO’s small-sample Tokyo comparison illustrates the lifecycle trade-off: runtime creation took approximately 188–204 seconds on V2 versus five seconds on V1. A new session on an existing runtime took 1.912 seconds on V2 versus 0.611 seconds on V1. Reused-session requests were roughly 150–210 ms, and module-level timestamps were restored from the snapshot. Build separate groups for warmed sessions, new sessions on existing deployments and first invocations after deployment. Record deployment-to-ready time separately, and generate measurement timestamps at request time. Sources: DevelopersIO

Pre-create sessions for the main connection experiment so session creation does not dominate. AWS documents 25 new sessions per second per account, shared across endpoints. The separate, adjustable data-plane quota allows 1,000 transactions per second per account and is shared across data-plane APIs. Active session workload limits are 5,000 in N. Virginia and Oregon, and 2,500 elsewhere. Record actual account quotas and competing traffic before interpreting a plateau. Sources: AWS

Increase concurrency without hiding demand

Hold the V2 image digest, region, networking, authentication, SDK versions and session resource allocation fixed. Use the proposed concurrency sweep: 1, 8, 16, 32, 64, 128, 200 and 250 connections per session. Add a small probe above the documented 250-connection limit and record actual failure behavior. Test request/response invocations, fixed-duration server-sent event streams and WebSockets separately, then mix idle streams with active requests. Because AWS applies the update automatically, a client cap of 16 on current V2 does not recreate the previous platform. Sources: AWS

Pair fixed-concurrency runs with independently scheduled arrivals. Grafana explains that closed-model tests slow their arrival rate when requests take longer, potentially hiding overload through coordinated omission. Its arrival-rate executors schedule arrivals independently of iteration completion. Preserve scheduled-but-unsent requests and client queue time so generator saturation remains visible. Explicitly size client connection pools and verify that the generator sustains the requested traffic. Sources: Grafana Labs

  1. Warm each condition, then measure for at least five minutes; extend runs until sample counts support the reported percentiles.
  2. Repeat each condition at least three times and randomize the order.
  3. Run without automatic retries first, then test the production retry policy separately.
  4. Count attempts, logical operations, failures and timeouts separately.
  5. Compare the proposed session layouts in the table below, recording resource use and cost.

Table

Proposed session layouts at 240 total connections

LayoutSessionsConnections per sessionTotal connections
Concentrated1240240
Moderate distribution460240
Broad distribution1516240
These test layouts hold total connections constant while changing session count and aggregate available resources.

Find where useful completions stop rising

Read throughput and latency together as concurrency rises. More successful completions with stable overhead and completion tails suggest that connection occupancy constrained useful work. Flat throughput with more open sockets indicates increased occupancy without more completed work. Rising echo overhead with stable application durations points toward the platform path or admission pressure. Stable overhead with growing handler queues points toward application contention. Treat these patterns as investigation leads, not proof of causation.

Stable overhead alongside rising model or tool waits directs attention downstream. If distributing the same total connections across sessions improves throughput, inspect CPU, event-loop execution, locks and local pools. That comparison also changes aggregate available resources, so report resource and cost differences. If only client latency rises, inspect the generator, connection pools, networking and response consumption. Keep first-byte and completion tails together: streaming can begin promptly while useful work finishes increasingly late.

Publish the harness, workload definitions, image digest, dependency versions, region, quotas and retry policy with raw observations. Plot completions within the latency target against actual concurrency, alongside client latency percentiles, overhead distributions and sample counts. Include application queues, dependency waits, CPU, memory, errors and token usage, keeping lifecycle groups separate. Choose the concurrency setting that sustains valid work within the target, then investigate the first resource whose waiting time rises.

Attribution

Sources

  1. 1AWSRelease notes for Amazon Bedrock AgentCore
  2. 2AWSQuotas for Amazon Bedrock AgentCore
  3. 3AWSAgentCore generated runtime observability data
  4. 4AWSThe new AgentCore runtime: Elastic, optimized, and consistently fast starts
  5. 5DevelopersIOI tried out the newly released Amazon Bedrock AgentCore Runtime V2
  6. 6Grafana LabsOpen and closed models

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on AI

All AI stories
AgentCore V2 raises session connections to 250: How to measure throughput · BuildRiot