JVM flags Xms and Xmx
Hello, in the hosting service I use, I noticed that when starting the server, the values of the JVM flags Xms and Xmx are different (-Xms128M -Xmx4096M), while multiple optimization guides always recommend keeping these two values the same. Is there any specific reason for having them set this way? Could this affect the server's performance?
3 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by ayotl#0
it doesnt affect performance in a noticeable way at all afaik
There is a difference, but its basically negligible, since the only performance difference would be when the jvm has to actually allocate and start using new chunks of memory