Ok so now I got curious and looked around. Found this link. https://www.youtube.com/watch?v=H5WqKOOjrsM Just tested it and it works so just in case anyone didn't know.
if you don't want to watch a 4 minute video: launch minecraft: edit profile Check jvm arguments the first number is how many gigs, change it from 1 to whatever you want