Mac Different ways to launch FTB server

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

schwaa

New Member
Jul 29, 2019
5
0
0
I am new at this and would love some help. I am running ftb server on a mac mini (direwolf).

When I launch the server by simply clicking on the file ftbserver.jar, everything works well. I get an occasional warning cant keep up message but no lagging with play.

When I launch the server with a shell command, I get lag and multiple continuous warning can't keep up messages. My shell script is simply
java -Xms5020M -Xmx5020M -jar ftbserver.jar

I have tried increasing and decreasing the memory setting but there is still lag either way.

How is ftb launching differently when you just click the ftbserver.jar file? I am not even sure how much memory is allocated to the server this way.

Any help appreciated. Thanks.
 

TheChristensen

New Member
Jul 29, 2019
30
0
0
First, how much ram does your mac mini have, and second, do you have a console log that you can provide from the server?
 

schwaa

New Member
Jul 29, 2019
5
0
0
Thanks for the response. The Mini has 8gb. The server runs fine when I run it by clicking ftbserver.jar. I have no idea what the java settings are when run this way.

When I start it with any script giving Java memory parameters, I get the errors and the server lags. I have tried the following all with similar results.
java -Xms5020M -Xmx5020M -jar ftbserver.jar
java -Xms128M -Xmx5020M -jar ftbserver.jar
java -Xms512M -Xmx1028M -jar ftbserver.jar

The log file is linked. java -Xms5020M -Xmx5020M -jar ftbserver.jar

http://pastebin.com/yfuHRRdd
 

TheChristensen

New Member
Jul 29, 2019
30
0
0
I don't know whether or not you use the ftbserver.sh, but try editing that with TextEdit and putting the following code in:
Code:
java -jar -Xms1G -Xms3G ftbserver.jar
//Note: If you don't want the window, and just the console open, add " nogui" to the end of the above code
//If this doesn't work, your java version is for x86, you need to upgrade to 64 bit
 

schwaa

New Member
Jul 29, 2019
5
0
0
I have learned a little bit but still do not know the answer. The default launcher for the ftbserver.jar is jarlauncher (mac). When I launch my server this way, there is no lag. I do not know any of the parameters used with jarlauncher. When I try to launch from a shell scripts similar to the one you listed above, there is significant lag. I am uncertain what the difference between these two launch methods is. I would like to manually set RAM utilization but no setting that I have tried is better than the jarlauncher method.
 
Status
Not open for further replies.