I have a java desktop application that supports viewing very large amounts of data at a time. In order to support this, I start the application with high -Xms -Xmx settings. For example,
-Xms512m -Xmx1024m
The problem I run into is that depending on the client machine and current usage, the Java virtual machine can't always start up with such high settings. The solution is to lower the size.
Has anyone else encountered this problem? How did you solve it? Is there a way to predetermine good -Xms and -Xmx sizes? Or is there a way to specify size within the application and not at start up?