Xtrem RAM consumption by Authd and Jetty

Results 1 to 7 of 7
  1. #1
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Xtrem RAM consumption by Authd and Jetty

    Hello,

    I noticed something strange on my server. Jetty and Authd use a lot of RAM.... Dunno why?

    Could be java version? Something wrong with jetty or authd itself?

    Look at this:


    Any help would be appreciated


    EDIT: I fixed it today. I searched for another java application on my computer to see if I could do something for that java issue about tha xtrem consumption of the ram.

    Aion server FTW!

    I found that it's needed to set the amount of ram that you want to allow for your java process.

    So in this case you need to start jetty and authd by the following command: java -Xmx256m -theOthersParametersOfTheApplication

    -Xmx256m define the amount of ram. Warning, in real it's 512MB (dunno why) so if you set to -Xmx1024m it will allocate 2048MB of the ram for the application!!!

    Oh also by default the files are located at:
    /PWServer/jetty-7.2.0/jetty
    /PWServer/authd/authd
    Last edited by Romulan; 02-08-11 at 09:11 AM.


  2. #2
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    Java's garbage collector is weird, if the application needs more RAM it either just allocates more or if it hit that limit then it cleans things up, but if it can allocate more RAM it won't garbage collect. Java also doesn't release RAM until application termination after it has been allocated. Java is great and all but I never understood why Sun decided to do that...
    Last edited by das7002; 01-08-11 at 10:37 PM.

  3. #3
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    There is no way to limit the used ram used by java and/or the processes?

  4. #4
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    Fixed. See the first post.

  5. #5
    Member Jonatas is offline
    MemberRank
    Feb 2011 Join Date
    55Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    I use a cache cleaner, if I clear the cache reaches the whole memory consumption, clean and back to normal, every x hours.

  6. #6
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    Having a restart loop and killing the authd every 10 min also solves a lot of problems :D
    Btw 128m is more than enough, as it very rarely goes beyond 32m

  7. #7
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Xtrem RAM consumption by Authd and Jetty

    Using 128m for authd and 32m for jetty Thanks for the infos anubis!



Advertisement