Sign in to follow this  
islands420

Your server got lag spikes??? try this!

Recommended Posts

iv been tweeking java with java mission control to suit my system this is the start up script I have been running try it out and let me know how it works for you! feedback is key
 
STEP 1 BACKUP YOUR WORLDS im not responsible for any world errors back it up its easy!

java -Xmx3G -XX:+UseG1GC -XX:PermSize=128M -XX:MaxPermSize=256M -XX:MaxGCPauseMillis=50 -XX:+UseLargePages -XX:LargePageSizeInBytes=4m -XX:+DisableExplicitGC -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:ParallelGCThreads=1 -XX:ConcGCThreads=1 -XX:+UseAdaptiveGCBoundary -XX:+AggressiveOpts -XX:+TieredCompilation -XX:+UseCodeCacheFlushing -XX:-UseGCOverheadLimit -XX:+UseNUMA -jar BTeam.jar
pause
 

Note* Case Sensitive
 
it has solved most of my lag spikes issues
 
and yes G1GC is better than CMS ....... respose times are less when old gen GC dumps and runs stop the world

-XX:+UnlockCommericalFeatures -XX:+FlightRecorder are used for Java Mission Control and Are Not Needed
 
 
note**for systems that USE large pages, if yours does NOT remove -XX:+UseLargePages -XX:LargepageSizeInBytes=4m

Edited by islands420

Share this post


Link to post
Share on other sites

It'd be really helpful if you went through what these do, why you picked them, and why you picked some of them together.

 

I don't understand why you'd have the GC threads limited (to boost stability at the cost of speed I guess) and have the aggressive optimization on (which uses typically unfinished optimization to speed things up at the cost of stability).  Using large pages would probably take some load off the CPU at the cost of loading it onto memory and more 'granularity' (not sure if that's the best word there) which likely would result in more memory use overall, so it'd be worth it on say, a laptop with a lot of RAM but a slow CPU (AFAIK it's not on by default except on MacOS and Solaris anyway, and neither of those are known for their speed - it's off by default in most linux distros and Windows).

 

 

TLDR; You have confused me with your particular selection of options, sir!  Please enlighten me as to your intent!

Share this post


Link to post
Share on other sites

Those make more sense to me, if those GC tweaks are faster then it could be a faster and more stable setup (I'm not sure why they'd bother with so many GC tweaks if they weren't faster, so I strongly think that's the case).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Spearhead Gaming
      SPEARHEAD GAMING TEKKIT LEGENDS
      A fun, medieval themed PvE server featuring claims, custom content & plugins, no banned items, world anchors, kits, custom terrain, active staff, epic builds and much much more...
      discord.gg/gjjqVQR ~ www.spearheadgamingnetwork.com
       
       
      LINKS
      Server IP: tekkit.sphgaming.com
      Discord Server: http://discord.gg/gjjqVQR 
      Website: http://www.spearheadgamingnetwork.com
       
      ABOUT US
      We are a sever for the players - everything we do is aimed at a more enjoyable, fun, fair experienced for our player. Our management staff have years of experience under their belts, and our moderation staff are trained and disciplined. Our team is always around to help you out and make your experience here the best that it can be. We are oriented around service and quality.
      We strive to be different - we aim to provide a unique, original experience in Tekkit Legends, and put an immense amount of effort into our server, that many other networks are unwilling to do. Everything must be of as high a standard as possible, and we'll always do our best to achieve quality results. Our sever is constantly being updated to ensure we are up to date with the modern community, and to ensure we are always bringing you fresh, new content.
      We prioritise integrity - You may have seen many servers in your time, that use fake accounts to boost their numbers, use proxies to vote for themselves, lie about their specs and their community, and only care about their donors... Spearhead will never do this to our community, because we aim for absolute integrity and value an honest experience for our players. 
       
      MORE INFORMATION
      Plugins: Many different quality and custom plugins that disable dupes, bugs, cheats and issues, and give the server an active economy, timed ranks, fun things to do, multiple worlds and much more. For security reasons we do not publicise a precise list of plugins.
      Server Rules: The server does not allow hacking, cheating or unfair play of any kind. The chat, while controlled is fairly chill, we just ask you to keep it PG. A list of rules is available on our Website, Discord, Server or just ask any staff member.
      Server Uptime: 24/7!
      Not convinced? Here's a few reasons that our server stands above the rest....
      The server is managed by staff with years of experience on modded servers It's Developed and Built by experts Our mod/admin staff are highly trained and disciplined Custom plugins have been developed to keep the bugs away Advanced security systems are in place to prevent cheating/griefing We allow claims to protect your builds, but have provided an arena in which to fight if you want! Large, detailed, epic exclusive builds are present everywhere you look We feature massive areas of custom, unique terrain We do not cheat our numbers or lie about our sever's stats No banned items World anchors and other highly useful items are available Nice donor perks are available, but the server is not pay to win Timed ranks And many, many, more reasons... Questions? Feel free to join our discord server, to ask any questions or get any help from staff (or just to chat!). http://discord.gg/gjjqVQR
       
      MEDIA
      Server Trailer Video: 
      Images

    • By ZakDank
      PLEASE NOTE:
      This pack is designed for one specific server which is why we provide no server files. Please do not attempt to replicate our server. Thank you.
       

      MODPACK LINK - http://www.technicpack.net/modpack/wild-west-frontier.185231
      API (copy and paste this into technic launcher);
      http://api.technicpack.net/modpack/wild-west-frontier
       
       
      Having Issues? Please look here: http://wildwest.retg.net/common-fixes/

      Our Official Discord
      Climb aboard the modpack that throws you back to the days of the ol' west. We aim to provide an authentic yet fun experience to satisfy the desires of any western loving person.






      Old Screenshots



       
      Here you will find custom content, including new guns and artwork, a item based economy with a separate land deed system for towns. This server is full PvP so gang together to survive bandits or become bandits yourselves.
      ~~~~~~~~~~~~~~~~~~~~~~~~~~

      Our Community
      We take a very relaxed stance with players and generally allow most things as long as they are not derogatory to any player or the server (i.e. Racism, Abuse, Hacks, Exploits) so feel free to make yourself at home without fear. Our community has been around for over 3 years now and we have accomplished a lot in that time and we hope to continue with our accomplishments.
      We really do hope you enjoy your stay with us, no matter what the length.
      For more info about us, please check our site wildwest.retg.net
       
      Standard community rules:
      1. No Hacking.
      2. No exploitation of bugs or glitches.
      3. No racism, religious speech or other idealism.
      4. Dont harass other players and community members.
      5. No spamming, advertising or excessive swearing/CAPS.
      6. Respect the staff - They are here for you.
      7. Do not abuse staff members, we are here to help and we try hard to keep a low ban rate.
      8. Have fun!

      Wild West Frontier specific rules:
      9. Dont use /sethome or /back in others claimed territory or to reengage in PVP.
      10. Please try to make your town a town, we dont like seeing underground bases.
      11. Have your town be "raid"able. Have entrances(doors/gates/ect) to your town/houses.
      Just so people have a "chance" of getting a jump on you, or you forgetting to close it.
      12. Dont make any lagmachines/ pointless contraptions.
      13. Destroying/blocking roads (or near 3 blocks of one) are not allowed, and is harshly punished.
      And remember: An Admins word is final!
       
    • By NebelC0meback
      Hello people of the Technic community, I've had this problem for around 3 weeks now, and after countless hours of research i couldn't get it to work.
      I've got the following problem:
      I've been using Ubuntu (PoPOS) for around 2 months now, and i got really familiar with it. I got minecraft from the repositories no problem whatsoever. But as i wanted to play with mods, My old friend Technic Launcher came to my mind again, so i tried to install it and play some modpacks.
      Problem:
      I've installed the correct java version (OpenJDK 8 ) and put the techniclauncher.jar as an executable. Now when i run the launcher, the installation screen pops up, everything normal. Now when i install it as a portable or just normally, it creates the directory and the installer dissapears. Everything ok until now: When i try to launch Technic again, it just crashes. The java process is running, but starts dissapearing. So i tried again with oracle Java 11. Same problem. It just crashes. When i launch it over Terminal, it gives me this:
       
      [email protected]:/home/muenzlpsaveyourinternet# java -jar '/home/directory/TechnicLauncher.jar' '/home/directory/TechnicLauncher.jar'
      Settings for exe: /home/directory/TechnicLauncher.jar
      Portable settings dir: /home/directory/technic
      Setting up logging
      And nothing else happens, the terminal doesnt continue launching, same with launching without terminal.Nothing opens , just the process i can see in my system manager
      I tried and tried, i uninstalled the runtimes, 8 and 11, tried and tried but nothing worked. I found no answer, now after 2 weeks of trying, I decided to post this here to get some answers from nice people who like to help in the community.
      If you like to help me, just post solutions or suggestions in the section down, please stay simple with ubuntu stuff since i am really new to linux and just getting started. Thanks for any response.
      (replaced my install directory with directory because its pretty much useless for help and might confuse people)
       
    • By Fred__Ex
      I'm new to Technic, and I'm trying to join a server with a modpack that runs on 1.12.2, but when I open the modpack through the Technic launcher it says that I need Forge to open some of the mods.
      I downloaded Forge for 1.12.2, but you have to open it through the Minecraft launcher. Which means I can't use the modpack through Forge or Technic.
      I've tried looking through launcher settings to see if I could tell Technic to open the modpack with the Forge version that I downloaded. Doesn't work. Other people seem to get on the server fine. Is this a problem with me, or the modpack?
      Edit: I've attached a photo showing the messages I get when I try to use both launchers. The photo was too large to attach, so I decided to use the URL, but it's on TinyPic, so if you don't see it, it's probably because they're shutting down.
      http://tinypic.com/r/2vdp9br/9
    • By rzcool
      Okay, so I have reinstalled technic a few days ago because I wanted to play a dragon ball mod I saw. I played dragon block c resurrection (only listing names because I feel like it may be important) and a few others mods and I got attached to a server mod, and it worked for a bit, but now, it is the only mod that works. I tried resurrection again and when I press play it will just hide the launcher for a bit and then re-open it. I have downloaded the 64-bit java recently so that may be the result, but currently no mods work besides the server mod (dragon block zero S if it really is important.) Im new to technic and forums over all, so im not sure how to attack files fully so if you need me to do that, please tell me how!