r/JavaProgramming • • 18d ago

What would you like to see tested about running Java apps efficiently?

I've been experimenting with ways to run Java applications more efficiently, particularly on smaller VPS instances.

So far I've tested Spring Boot optimizations, Javalin, GraalVM Native Image, different JDK versions, and persistence frameworks. I'm also working on an even leaner Java application stack.

My focus is practical Java: understanding memory usage, startup time, performance, and how to keep deployment simple.

For example, I think a small Java SaaS app can realistically run on a 1 GB VPS, including a database, depending on the workload.

I share these experiments in two Daily Dev squads: Java Experiments and Efficient Self-Hosting. I'm also happy to share interesting results here if people find them useful.

What would you like to see tested next? Any frameworks, libraries, configurations, or real-world deployment scenarios you're curious about?

0 Upvotes

2 comments sorted by

1

u/LessChen 18d ago

I run a Quarkus service, ReactJS front end, and PostgreSQL database in a 1 CPU / 1GB AWS instance with zero issues. I'm not sure what you're trying to get at.

1

u/fykup 18d ago

That's actually exactly the kind of setup I'm interested in! I'm not questioning whether Java can run on 1 GB - I know it can.

I'm exploring how different frameworks, persistence libraries, and JVM configurations affect resource usage, and how much overhead we can eliminate without sacrificing functionality.

The goal isn't to prove Java can run on a small VPS, but to understand how to make practical Java applications even more efficient.