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:
http://img38.imageshack.us/img38/978...mjettyauth.png
Any help would be appreciated :D:
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! :lol:
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
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...
Re: Xtrem RAM consumption by Authd and Jetty
There is no way to limit the used ram used by java and/or the processes?
Re: Xtrem RAM consumption by Authd and Jetty
Fixed. See the first post.
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.
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
Re: Xtrem RAM consumption by Authd and Jetty
Using 128m for authd and 32m for jetty :): Thanks for the infos anubis!