How to reduce memory usage for Java application?
glorko
PRO
a year 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: Seems 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