# Eliminating Java cold starts with AWS Lambda Managed Instances

DevFeed: [Eliminating Java cold starts with AWS Lambda Managed Instances](<https://devfeed.tech/articles/eliminating-java-cold-starts-with-aws-lambda-managed-instances-4663.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/compute/eliminating-java-cold-starts-with-aws-lambda-managed-instances/>)

Author: Jay Colodner

Published: 2026-07-13T20:23:19Z

Content type: article

Language: en

Sources: [AWS Compute Blog](<https://devfeed.tech/sources/aws-compute-blog.md>)

Topics: [AWS Lambda](<https://devfeed.tech/topics/aws-lambda.md>), [benchmarking](<https://devfeed.tech/topics/benchmarking.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Amazon EC2](<https://devfeed.tech/topics/amazon-ec2.md>), [Spring Boot 4](<https://devfeed.tech/topics/spring-boot-4.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [SDKs](<https://devfeed.tech/topics/sdks.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [java](<https://devfeed.tech/tags/java.md>), [jit](<https://devfeed.tech/tags/jit.md>), [latency](<https://devfeed.tech/tags/latency.md>), [on-call](<https://devfeed.tech/tags/on-call.md>), [performance](<https://devfeed.tech/tags/performance.md>), [spring-boot-4](<https://devfeed.tech/tags/spring-boot-4.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

## AI overview

This article benchmarks four Java deployment modes for AWS Lambda: Standard Lambda, SnapStart, GraalVM Native Image, and Lambda Managed Instances. Using identical Spring Boot applications across CPU-bound, I/O-plus-computation, and I/O-bound workloads, it reports that Managed Instances preserve JVM state and enable JIT optimization, improving median and tail latency while reducing cold-start spikes.

## Source excerpt

A single cold start can push your Java Lambda function's response time from milliseconds to seconds, enough to violate your p99 SLA, timeout a downstream service, and page your on-call. The Java Virtual Machine (JVM) performs best in long-running processes. Its Just-In-Time (JIT) compiler progressively optimizes code over thousands of invocations. Standard serverless execution environments [...]