I have followed some of the posts in increase JVM heap size Stack Overflow to increase the JVM heap size. I set environment variables as suggested above link.
I executed below program, to check, what is the max heap size.
public class GetHeapSize {
public static void main(String[]args){
//Get the jvm heap size.
long heapSize = Runtime.getRuntime().totalMemory();
//Print the jvm heap size.
System.out.println("Heap Size = " + heapSize);
}
}
I got output before setting and after setting is same as 16252928
Please can anyone suggest how can I increase heap size?