Implemented Client memory leak

Discussion in 'Monster' started by Yorinar, Apr 9, 2014.

  1. Yorinar

    Yorinar Well-Known Member

    Messages:
    101
    Likes Received:
    27
    Local Time:
    3:49 AM
    This has been going on for a week or so. Not really sure, I lose track of time. But when I'm at my base, my client slowly bloats in memory until it vastly exceeds what I have allocated java. Eventually it starts freezing intermittently (which I assume is when the garbage collector kicks in). Stuff that matches memory leaks I've experienced before.

    The problem is, I get this issue mainly when I'm at my base, but only when I'm on the ground level. mortenmkl lives near me and has a pretty complex base, so I considered it might be something there, or it could be mine, which has quite a large AE setup and some machines, with lots of conduits. If I travel down 30 blocks or so to my underground farm, I don't get a memory leak. My client can run for hours without problem, consuming pretty much the same amount of memory the whole time.

    So aside from destroying things piecemeal, does anyone have a good way of diagnosing what's causing it?

    I'm on the latest version of java (1.7.0_51 or whatever). My graphics drivers are up-to-date. I've tried it with and without texture packs (makes no difference). I've tried it with and without OpenGL (again, no difference).

    Any ideas?

    edit: I also tried this on my mac. And I get the same memory leak issue. scratch that, no memory leak on the mac
     
    Last edited: Apr 9, 2014
  2. caithleen

    caithleen Patron Tier 1

    Messages:
    792
    Likes Received:
    196
    Local Time:
    9:49 AM
    My idea would be to simply accept it. Modded MC allways has been leaking like mad. With so many mods, from good to bad programmers in it you just cant avoid it.

    There where times when using mystcaft portals leaked heavily.
    Times when Ender IO did it ... and so on ..
     
  3. Yorinar

    Yorinar Well-Known Member

    Messages:
    101
    Likes Received:
    27
    Local Time:
    3:49 AM
    Unfortunately the client freezes make the game unplayable after 30 minutes or so. Since I may spend anywhere from 3-30 seconds in deep "not responding" land. Especially bad ones cause me to disconnect from the server altogether.
     
  4. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    9:49 AM
    Add this -XX:+UseCMSCompactAtFullCollection -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+AggressiveOpts under:
    [​IMG]
    Don't expect anything big from it, it might improve the performance or might not. I run pretty good with it.
     
  5. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    8:49 AM
    Me and Morten are trying to optimise the base as much as we can, as I was having the exact same issue when I was in the base for more than 30 minutes.

    We think the problem is mainly due to the steam turbine stuff from reactor/rotary craft (I get the same issue if I hang around inside your base for about as long @caithleen while your turbines are running) but with no easy alternative for producing 100k+ rf/t Mort isn't too happy at the prospect of having to take it down, though now it has a full set of condensers going into a fluid-void it seems to be somewhat better.

    Also, I think I'm gonna try setting up a computercraft controlled toggle to only run the turbine when our capacitor bank is running low, which might make a difference but we'll have to wait and see.

    Unfortunately we still don't know for definite that that is the root cause so perhaps an admin inspection is in order to see if anything else might be causing problems?
     
  6. caithleen

    caithleen Patron Tier 1

    Messages:
    792
    Likes Received:
    196
    Local Time:
    9:49 AM
    Use a power monitor for turbine automation, quick and easy ;)
     
  7. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    8:49 AM
    I prefer to do things with CC and openperipherals as I can fine tune it more, as well as being able to output details to my HUD if I can be bothered to set it up!
     
  8. caithleen

    caithleen Patron Tier 1

    Messages:
    792
    Likes Received:
    196
    Local Time:
    9:49 AM
    Well if you can monitor the power bank with it and current rates it should also work.
     
  9. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    9:49 AM
    Would it be possible to shut it down for an hour, to see if that is the issue. As if it is we can replace the reactor with something else.
     
  10. caithleen

    caithleen Patron Tier 1

    Messages:
    792
    Likes Received:
    196
    Local Time:
    9:49 AM
    One thing thats really important when using reactorcraft is to make sure the steam is taken of care properly. I had one block missing in my construction yesterday.... 4,5k steam entities in my base, took the server to 12 tps and my client to 3 fps. After i fixed that, everythings runing smooth.
     
  11. Yorinar

    Yorinar Well-Known Member

    Messages:
    101
    Likes Received:
    27
    Local Time:
    3:49 AM
    Thanks, Slind I'll try those settings. I've already begun moving my operation so I can begin building things piecemeal to see if I can isolate the issue.
     
  12. SirWill

    SirWill Founder

    Messages:
    12,284
    Likes Received:
    3,708
    Local Time:
    9:49 AM
    You should also build stuff which causes client lag at the bedrock and have your other stuff at the surface, so you still load the chunk but you'r client does not see the stuff at the bedrock.
     
    slyder5649 likes this.
  13. chaosblad3

    chaosblad3 Very Well-Known Member Patron Tier 1

    Messages:
    1,701
    Likes Received:
    649
    Local Time:
    8:49 AM
    Yeah, well that is how I usually like to do things, but morten doesn't really bother to ask for my opinion before doing things... I didn't even know he was setting up the turbine, I just logged in the other day to find it already mostly set up!
     
  14. Yorinar

    Yorinar Well-Known Member

    Messages:
    101
    Likes Received:
    27
    Local Time:
    3:49 AM
    The settings you suggested Slind were really helpful in keeping the memory profile nice and lean, but unfortunately it was still gradually leaking. But it gave me a lot more playable time before I needed to restart my client. I'm just going to move my base and build everything intensive at bedrock.
     
  15. Slind

    Slind Founder

    Messages:
    8,332
    Likes Received:
    3,018
    Local Time:
    9:49 AM
    let us know if you need help with a building. we can copy and paste normal blocks but not machines, cables and these stuff.
     

Share This Page