How to set heap memory size for jvm
If your java app is memory intensive, you will need to instruct jvm that it can use upto a given maximum limit and also set the minimum memory limit that jvm must start up with.
To set the maximum memory size, use the option -Xmx and to set the minimum memory limit, use the option -Xms.
You can specify memory in units of m (for megabytes) or g(for gigabytes).
To set the maximum memory size, use the option -Xmx and to set the minimum memory limit, use the option -Xms.
You can specify memory in units of m (for megabytes) or g(for gigabytes).
