I have -Xmx4G -Xmn1024M as my JVM arguments but when a launch the game it says its using 100% of my allocated memory which it says is only 460mb, I have 8GB of RAM on my PC and I have java 8 64 bit, I don't have razer synapse installed and I have absolutely no idea whats wrong, please help me
Have a look at that, also you shouldn't need to set Xmn to 1024.
Xmx and Xms are the only params you should worry about, set -Xmx4G -Xms4G.
-Xmn : the size of the heap for the young generation
Young generation represents all the objects which have a short life of time. Young generation objects are in a specific location into the heap, where the garbage collector will pass often. All new objects are created into the young generation region (called "eden"). When an object survive is still "alive" after more than 2-3 gc cleaning, then it will be swap has an "old generation" : they are "survivor".
Have a look at that, also you shouldn't need to set Xmn to 1024.
Xmx and Xms are the only params you should worry about, set -Xmx4G -Xms4G.
-Xmn : the size of the heap for the young generation
Young generation represents all the objects which have a short life of time. Young generation objects are in a specific location into the heap, where the garbage collector will pass often. All new objects are created into the young generation region (called "eden"). When an object survive is still "alive" after more than 2-3 gc cleaning, then it will be swap has an "old generation" : they are "survivor".