今日已更新 240 条资讯 | 累计 35426 条内容
关于我们

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

/u/fykup 2026年08月25日 08:49 1 次阅读 来源:Reddit r/programming

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. submitted by /u/fykup [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文