How to reduce memory usage for Java application?
glorko
OP
2 years ago
Hi! I have Spring Boot Java application that i have been running with default settings
I found that memory usage is too big - I switched from Tomcat to Undertow and tried to use the run command as next:
java -Xms300m -Xmx1000m -jar -Dserver.port=$PORT $(ls -1 build/libs/*jar | grep -v plain)
It won't helped much I still see this strange memory usage picture: https://station-media-server.railway.app/attachments/f798da0351f248fe82309779d3001f6a-image.pngSeems like I dig the wrong hole. I don't use any custom docker files and to be honest I'm not an expert in Nixpacks.
Is there anyone who optimized Java app memory?
0 Replies