Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
BSD

Unforgivable RAM Usage

9 posts in this topic

I dont know if Im the only one. But RAM never EVER gets freed up until server reboot.

I've yanked all mods and just left TFC in. It'll blow through 6gigs with less than 10 people just logging on and off through out the hour.

I cannot find any errors other than "Reached end of stream " and "Can't keep up! Did the system time change, or is the server overloaded?"

This is driving me quite bonkers. Its as if when chunks are loaded, they stay loaded permanently.

0

Share this post


Link to post
Share on other sites

"Unforgivable" is a little melodramatic, but I do agree that there seems to be some kind of memory leak. We've taken to resetting the server once an hour in order to counter it.

0

Share this post


Link to post
Share on other sites

I do half day reboots but I have never ran into any out of memory issues. Usually there is a continuous 5-6 people on with 10-13 peak.. Addons I have, Archimedes Ship, Extra firma, Smart moving and some homebrew mods like a server announcer. Mind you I have 8gb allocated to the VM with another 8 to spare if needed.

 

Edit:

 

I just checked my auto rebooter, nothing in the logs that wasn't a scheduled maintenance.

 

 

Edit:

 

Oh quick question: Are you getting out of memory exceptions or that it just uses all the memory? Because if it the latter, that's just how the jvm works, it will use every bit of memory assigned to it to reduce the amount of GC required.

0

Share this post


Link to post
Share on other sites

I dont get out of memory exceptions. Just eats all the memory. Youd think the memory would free when players log out. I have my server scheduled for reboot every 4 hours. Though sometimes it will go through all the ram in 20 minutes with everyone logging on and off. I also have 5-6 continuous players with 10-15 peak. 

0

Share this post


Link to post
Share on other sites

This has nothing to do with TFC. This is a process-level fluke. Once a process is given a block of memory by the OS, that block belongs to the process until it quits, unless the process specifically requests a temporary block of memory. Apparently, JVM doesn't request temporary blocks. Nothing can be done.

 

The "Can't keep up! Did the system time change, or is the server overloaded?" errors disappear if you increase memory (especially PermGen memory — TFC has a crapton of new classes), unless the error is a memory leak, but this doesn't seem likely, given that tomato can comfortably operate in 8-16 gigs, less than three times your own amount.

0

Share this post


Link to post
Share on other sites

Not sure what I did. but I went on a rampage with the forge and tfc configs... steady 2.3GIG usage with 10 people on. Hasnt Risen or Lowered.

0

Share this post


Link to post
Share on other sites

See how much memory my server is using? That is with 4 players atm, the JVM will use all the memory that is allocated to it. Most of that memory is just memory waiting to be collected, but because the the jvm is within the bounds I defined , it doesn't need to garbage collect and so it doesn't. Even if it does garbage collect the JVM won't release the memory to the OS. This is to prevent memory fragmentation in long running applications like a minecraft server.  

 

Don't mind the yellow part in the memory bar, that's just linux file caching.

 

Posted Image

 

0

Share this post


Link to post
Share on other sites

I had some insane lag issues in the past that i've solvved by changing my Java from 32bit to 64bit, It made an insane difference!!!

0

Share this post


Link to post
Share on other sites