Server bat file suggestions?

  • 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

Kajin Style

New Member
Jul 29, 2019
54
0
0
Anyone has any suggestions on what I could put in my bat file to help improve my own server? I know it depends on what my server stats are which I'll list below. However I'd also like to know if there's a place you can go to see these java commands? Or whatever they are called. So I can just go down the list and see what I might want to add/remove myself.

My server is on my own machine which has:

Windows 7
16GB of ram
quad core processor
1GB video card

At the moment my bat file has this:

Code:
javaw -server -Xmx1G -Xms768m -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=3 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=256m -XX:+UseCompressedOops -cp ftbserver.jar -jar ftbserver.jar

I haven't got a clue what any of it does but some way of finding out would be great and any suggestions on what to add/remove would be good too!
 

maxpowa

New Member
Jul 29, 2019
74
0
0
This page should tell you what all the options you are using mean. Non-standard options (which are surprisingly standard for minecraft start files) are middle to the bottom of the page.

EDIT: Updated link, original page was a bit outdated...
 

Kajin Style

New Member
Jul 29, 2019
54
0
0
At the moment I'm getting this error and can't fix it: JVM cannot use large page memory because it does not have enough privilege to lock pages in memory.

Also some of those options use terms I never heard. Looks like I'll be googling a lot today, heh. Is there a java for dummies anywhere? lol
 

maxpowa

New Member
Jul 29, 2019
74
0
0
I heard an issue about that, in order to use it on a windows OS, you have to have a special permission. From an administrator account, I believe you can go into user accounts and edit your special permissions, there should be one relating to large page memory.
 

Kajin Style

New Member
Jul 29, 2019
54
0
0
I am the administrator on this computer. I took a look at the user account section and didn't see anything related large page memory or just memory alone. A quick google search didn't help much either. :/
 

maxpowa

New Member
Jul 29, 2019
74
0
0
Yea, I think Win 2003 server was the last windows server to support large page memory. If you want to use large page memory, you'll probably have to switch to a linux distro.
 

Kajin Style

New Member
Jul 29, 2019
54
0
0
Sorry about the multiple posts. This is what I have currently in my .bat file

Code:
java -server -XX:+UseLargePages -Xmx2G -Xms1G -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts  -XX:ReservedCodeCacheSize=512m -XX:+UseCompressedOops -cp ftbserver.jar -jar ftbserver.jar

I have no idea if any of it helps or not but I guess I'll find out after a few days of playing. If you need more specific specs from my machine let me know I'll get them.