Im running a tekkit legends server on mac and in all my tekkit and other wise servers I've used the following command file to run the server:
#!/bin/bash
cd "$(dirname "$0")"
exec java -Xms3G -Xmx4G -jar TekkitLegends.jar
At the moment this command it not working, the server will crash immediately
The server is able to run if I simply open the TekkitLegends.jar file but it runs very slowly because it doesnt have enough RAM. Is there an alternative command I should use or another way to allocate memory to the server? I would appreciate help so much, and thank you in advance