I have a point of sale application developed in JavaFX. Some clients have pointed that the system starts to hang in a specific time of the day, when it's used more often.
I did some tests limiting the max heap memory of my app to a very small amount (-Xmx30m) and i did notice system hangings, some slow operations that usually would take less than a second, windows that open just with a white background with no content, etc... So i thought that could be the problem on my client too.
So i thought that on these clients where i am getting these errors, maybe the maximum memory used is by default somehow lower than it should be, and by adding the argument to specify maximum memory and starting memory through -Xmx1512m and -Xms1512m maybe that could fix the problem, but is it a good practice to do so? Can i have unwanted side effects?