I have seen a Java application that allows its users to manually edit the application memory allocated. Here is its screenshot:
Does someone know how I can do a similar thing to my application?
It's not Minecraft which allocates memory for itself. MagicLauncher is a seperate program that calls java
with the correct parameters to start minecraft.jar.
To allocate memory for Java, you can use for example java -jar -Xmx512 program.jar
to give program.jar 512 megabytes of memory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.