2

I suppose I should to increase a Java heap size for the application. Does Java heap size have a common settings for all Windows 10 applications? Or should I set it for the application I need. How? What if it's a Java application but it runs as an .exe file?

1 Answer 1

0

This really depends on each application, since you can run java from the standard JDK/JRE, or there are different tools which generate .exe.

For the standard environment, something like:

java -Xmx2048m

For help about parameters:

java -X

See also https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

But for other packages (.exe), usually there is a configuration file, in which you can enter vendor specific parameter, or use the standard parameter -Xmx2048m as is.

2
  • Right. There was .ini file with already existing -Xmx command
    – M. Moe
    Jan 31, 2019 at 11:38
  • Then change its value, and you are good to do. Jan 31, 2019 at 12:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .