1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Done Server performance incredibly low

Discussion in 'Sky Factory 2' started by GGothicRide, Jun 10, 2016.

  1. vyryn

    vyryn Well-Known Member

    Messages:
    16
    Likes Received:
    6
    Local Time:
    5:28 PM
    I would rather scheduled reboots every hour than ruthless destruction of all the most steadfast pack players' bases.
     
  2. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    11:28 PM
    Its not happening at the same time, sometimes it runs out of mem after 20 minutes and the next time it takes 3 hours.
    A server restarting twice an hour isn't fun (personal experience), it would also move the issue a step down on the pressing matters and we might not look into it any time soon.

    We are looking for a permanent solution and nothing temporary, the solution with the least work for us and to provide the best experience for players would be a server reset. But again, for how long would that last and how happy would current players be?
     
  3. CHRISRHODE2004

    CHRISRHODE2004 Patron Tier 1

    Messages:
    192
    Likes Received:
    6
    Local Time:
    3:28 PM
    Well, looks like the server is down for good now .. been unreachable for about a 1/2 hour now - check server stats. Just FYI.
     
  4. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    11:28 PM
    Its creating a heap dump, might take another hour to finish, then its gonna be 3 hours downloading and probably half a day to open the file only to be able to analyze one. For proper analysis this process needs to be repeated multiple times, at least one more time with a heap dump from before the mem leak having had its play.
    Just to give you guys an understanding of how tedious those are to analyze, even with enterprise software (Performance and Memory Java Profiler - YourKit Java Profiler and this is only the getting started part.
     
  5. Gabet392

    Gabet392 Member

    Messages:
    17
    Likes Received:
    0
    Local Time:
    5:28 PM
    so what your saying is the server is not going to be back up today?
     
  6. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    11:28 PM
    And the heap dump just failed, great now we gotta get the server up for 2 hours (until it reaches a high mem used point again) and do the same all over again.
     
  7. FerdyG

    FerdyG Member

    Messages:
    7
    Likes Received:
    0
    Local Time:
    4:28 PM
    Thanks for all your help Slind.
     
  8. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    11:28 PM
    Wow, we are super lucky this time, I could get small heap dumps reducing the loading time dramatically and the cause was easy to spot as it isn't a general java object:

    It even gets better, its not even a mod causing those issues. Its prism the plugin we use to track all player actions. We have been using the same version for over a year, so its time to find out why it is stocking up and if it is a compatibility issue or even external (e.g. database server).

    Most likely and worst case would be that more events are being called than prism can handle hence the process queue/ram usage increasing.


    comparison:
    [​IMG]
    at server start:
    [​IMG]
    after 30 minutes:
    [​IMG]
    actual object after 30 minutes
    [​IMG]
     
    Last edited: Jun 12, 2016
    WorCannibal and LucidTheStick like this.
  9. mrminesheeps

    mrminesheeps Helper

    Messages:
    973
    Likes Received:
    237
    Local Time:
    2:28 PM
    glad to hear it was an easy find! Now hopes go to the fix just being a compatibility issue, and that you just need an update.
     
  10. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    11:28 PM
    Yeah, prism can't keep up, during the last 3 hours it logged 3.5 million tree grows and there are probably twice that many left in the queue which never made it into the database. Some mod is calling the tree grow event way too often :D. Prism does no longer track this event and the issue should be resolved.

    [​IMG]
     
  11. mrminesheeps

    mrminesheeps Helper

    Messages:
    973
    Likes Received:
    237
    Local Time:
    2:28 PM
    am i the only one who sees " leaf-decay 2666"

    in other words, leaves are satanic. arouse caution around leaves.[DOUBLEPOST=1465845896][/DOUBLEPOST]but on other terms...


    that sounds great! dunno which maniac was tree murdering but i'm glad to hear it aint logging 3.5 million trees anymore :p
     
  12. LucidTheStick

    LucidTheStick Well-Known Member

    Messages:
    3,143
    Likes Received:
    1,327
    Local Time:
    5:28 PM
    Anyone have feedback on performance in game since slind spent the time tracking this down?
     
  13. mrminesheeps

    mrminesheeps Helper

    Messages:
    973
    Likes Received:
    237
    Local Time:
    2:28 PM
    i've been in school, so if nobody posts on it i'll post when i get on later today
     
  14. Dooblemoore

    Dooblemoore Active Member

    Messages:
    14
    Likes Received:
    2
    Local Time:
    5:28 PM
    I can log in right now to see how it's performing.

    EDIT: So far so good. Less lag as far as I'm experiencing.
     
    Last edited: Jun 13, 2016
  15. MakakPL

    MakakPL Well-Known Member

    Messages:
    115
    Likes Received:
    13
    Local Time:
    11:28 PM
    its ok no disconects spirit world works ok ...
     
  16. LucidTheStick

    LucidTheStick Well-Known Member

    Messages:
    3,143
    Likes Received:
    1,327
    Local Time:
    5:28 PM
    Great. Going to mark this as done with the time and effort Mr Slind put in to this and the great results. Feel free to open a new thread if the issue returns!
     
  17. LordFungi

    LordFungi Patron Tier 1

    Messages:
    313
    Likes Received:
    92
    Local Time:
    2:28 PM
    I was on about two hours ago, and we still had performance issues regarding lag spikes and block lag. Keep in mind the thread is about performance as a whole and not just the memory leaks and heaps, so it might not be time to mark it as done.
     
  18. Ralph_Anthony

    Ralph_Anthony Well-Known Member

    Messages:
    238
    Likes Received:
    33
    Local Time:
    5:28 PM
    Tree growth event? sounds like growth pulsers.
     
  19. LucidTheStick

    LucidTheStick Well-Known Member

    Messages:
    3,143
    Likes Received:
    1,327
    Local Time:
    5:28 PM
    Issue was unrelated to the server itself. And as this performance impacting event is done, this thread can be done =P
     

Share This Page