Page 1 of 2
Memory Usage

Posted:
Thu Jan 14, 2016 11:45 pm
by Heffernan
Hello,
since my Java lags i though id ask everyone else ho much there Java eats and was wondering if 900kb is high?

Re: Memory Usage

Posted:
Fri Jan 15, 2016 12:18 am
by Taipion
Heffernan wrote:Hello,
since my Java lags i though id ask everyone else ho much there Java eats and was wondering if 900kb is high?

If that is salem, it is 900MB maybe but not 900k! :p
Re: Memory Usage

Posted:
Fri Jan 15, 2016 1:04 am
by Argentis
I'm at 500Mo with Latikai's.
Re: Memory Usage

Posted:
Fri Jan 15, 2016 1:35 am
by grapefruitv
500MB on freshly started latikai, 800-900 after playing at my base for some time, 1000-1200 after visiting providence.
Re: Memory Usage

Posted:
Fri Jan 15, 2016 1:37 am
by Heffernan
grapefruitv wrote:500MB on freshly started latikai, 800-900 after playing at my base for some time, 1000-1200 after visiting providence.
sounds like me, and i got 8gb of memory, so suppose its normal for everyone but seem not normal for a java applet?
Re: Memory Usage

Posted:
Fri Jan 15, 2016 3:05 am
by Argentis
Heffernan wrote:grapefruitv wrote:500MB on freshly started latikai, 800-900 after playing at my base for some time, 1000-1200 after visiting providence.
sounds like me, and i got 8gb of memory, so suppose its normal for everyone but seem not normal for a java applet?
Since when are java app not memory intensive? It seems about right for me, no need to worry.
Re: Memory Usage

Posted:
Fri Jan 15, 2016 8:11 am
by LOMS
If you're lagging - give your Java some more space.
"C:\Program Files\java\jre7\bin\java.exe"
-Xmx1024m -jar lsalem.jar -U
http://game.salemthegame.com/res/ game.salemthegame.com
Re: Memory Usage

Posted:
Fri Jan 15, 2016 10:08 am
by Kandarim
actually, if you're lagging (with multiple clients), it might be worthwhile to give it LESS space.
Java's memory allocation tends to be very lazy: things are typically only deallocated if memory shortage becomes an issue, so if you have a couple of clients running they'll tend to go towards their maximum memory allocation.
FWIW, my clients are limited to 768M.
Re: Memory Usage

Posted:
Thu Jan 28, 2016 12:38 pm
by Pordy
Kandarim wrote:actually, if you're lagging (with multiple clients), it might be worthwhile to give it LESS space.
Java's memory allocation tends to be very lazy: things are typically only deallocated if memory shortage becomes an issue, so if you have a couple of clients running they'll tend to go towards their maximum memory allocation.
FWIW, my clients are limited to 768M.
Kandarim where you set up your maximal memory usage?
My way is good?
Re: Memory Usage

Posted:
Thu Jan 28, 2016 12:42 pm
by Kandarim
it won't work, because the client is called with explicit heap and stack sizes. Default is 768M for both, I think. You can change it in the jnlp (but it might give an error because that one is signed) or in the .bat command (see my thread).
Default client should be able to change it in the jnlp too.