I created a class that gives a text file containing system performance as output. I want to run it as an executable Jar. but when I run the Jar I want to increase the heap to 1 GB.
If we run this program I can do this by running like this:
java -Xms1200m -Xmx1300m Sample
But how can I increase heap space using an executable Jar? When I click on the jar it must execute with a heap space of 1 GB.