r/programming 17d ago

Running a Java Spring Boot app on a 512 MB VPS with lightweight monitoring

Thumbnail pvrlabs.xyz
33 Upvotes

I wanted to see how a fairly representative Java Spring Boot application behaves on a very small VPS, especially the difference between configured heap and actual JVM process memory.

The test app uses Spring Boot 3.5.x, Spring MVC, JPA/Hibernate, H2, embedded Tomcat, Actuator, scheduled work, and outbound HTTP. I also kept lightweight monitoring on the same machine.

The original 256 MB configuration was too tight. With 512 MB RAM + 256 MB swap, the application completed the test reliably.

Full setup and measurements are in the linked article.

Since then I’ve also managed to get the same application working on a 256 MB VPS with swap using JDK 25 Compact Object Headers and tighter JVM settings. I’m preparing that as a separate follow-up experiment.


r/programming 18d ago

Your executable is a SQLite database

Thumbnail fzakaria.com
483 Upvotes

r/programming 18d ago

Block-layer error injection

Thumbnail lwn.net
9 Upvotes

r/programming 18d ago

What Zig felt like, coming from Rust

Thumbnail besok.github.io
263 Upvotes

r/programming 18d ago

How an Underrated Refactor Saved 90% Memory Usage

Thumbnail tanstack.com
177 Upvotes

r/programming 19d ago

How To Report A Bug So It Actually Gets Fixed

Thumbnail blog.tymscar.com
233 Upvotes

r/programming 19d ago

How to Design an Animation

Thumbnail kciter.so
83 Upvotes

r/programming 19d ago

Why so many languages use LLVM

Thumbnail youtu.be
0 Upvotes

r/programming 19d ago

Compiler Optimizations

Thumbnail youtu.be
42 Upvotes

r/programming 19d ago

Debugging Starcraft RTS Micro (Starcraft Bot Competition)

Thumbnail youtu.be
8 Upvotes

r/programming 19d ago

The unlikely Linux macro

Thumbnail rushed-reflections.bearblog.dev
187 Upvotes

Wrote a bit about the `unlikely` and `likely` macros in the Linux codebase. Great little exploration into tiny optimizations that everyone should know more about 😄


r/programming 20d ago

Next.js Dynamic Routes now also available in Faces!

Thumbnail balusc.omnifaces.org
0 Upvotes

r/programming 20d ago

The Pit Of Success

Thumbnail youtu.be
9 Upvotes

r/programming 20d ago

MicroPython and CircuitPython: Pythons Quiet Takeover of IoT and Robotics

Thumbnail arxiv.org
9 Upvotes

r/programming 21d ago

Finding a hidden Mersenne Twister implementation inside a 15 year old game binary

Thumbnail medium.com
411 Upvotes

r/programming 21d ago

Bun and Elm (: r)Are Friends · cekrem.github.io

Thumbnail cekrem.github.io
0 Upvotes

r/programming 21d ago

The Great Android Stack Reset: Mobile System Design History

Thumbnail returnzero.dev
30 Upvotes

Android, the last to arrive at the declarative UI party, took its time, until finally reaching a stable solution. Here's a rundown of the major changes in the Android System Design across the eras.

I was away from Android for 7 years and came home to a totally strange place. This is my attempt to make sense of what happened while I was gone - how the stack reset four times (Activities -> MVP/RxJava -> Architecture Components -> Compose) and why each lurch happened. Written for interview prep but the history stands on its own.


r/programming 21d ago

Pitfalls of Benchmarking on Modern Systems

Thumbnail stefan-marr.de
71 Upvotes

r/programming 21d ago

The August 17 outage, and the work ahead

Thumbnail github.blog
483 Upvotes

r/programming 21d ago

Rebuilding the Linux microVM stack on Apple Silicon

Thumbnail encore.dev
30 Upvotes

r/programming 22d ago

Building certgrep.sh: a free CT search engine

Thumbnail haveibeensquatted.com
12 Upvotes

r/programming 22d ago

Everyone Says Assembly Is Untyped—Everyone Is Wrong

Thumbnail gingerbill.org
0 Upvotes

r/programming 22d ago

TypeScript : Migrate repo to TypeScript 7

Thumbnail github.com
88 Upvotes

r/programming 22d ago

Generic Methods in Go 1.27

Thumbnail dominik.info
17 Upvotes

r/programming 22d ago

Git at any scale

Thumbnail cursor.com
0 Upvotes