How to increase RAM on a Minecraft FTB server? - 1

I have had servers up in the past but I'm doing a new one for FTB (using direwolf modpack). In game it works fine and runs with no problems. When I try and start the server, the memory usage is capped at like 247mb or something weird. I have gone into the batch files and upped them to 1gig and even up to 4gig trying to see if it would do anything but it always stays at a 247mb cap.

I have checked around and there are no files which should be causing the cap.
Due to it not having enough memory, I can't even start the server first time to generate the world.

How do I give it more memory so I can just get the world up and running?

Fix it