Question: how allocate more ram to minecraft?
Answer: Open your Minecraft client (Java version).
Select the Installations tab towards the top of the launcher.
Hover over your desired profile/Minecraft version, then select the button with the three dots on the right.
Select Edit from the drop-down menu.