Memory Usage

Forum for bugs and technical problems.

Memory Usage

Postby Heffernan » Thu Jan 14, 2016 11:45 pm

Hello,

since my Java lags i though id ask everyone else ho much there Java eats and was wondering if 900kb is high?

Image
User avatar
Heffernan
 
Posts: 8564
Joined: Mon Sep 08, 2014 3:07 pm
Location: Marps Closet

Re: Memory Usage

Postby Taipion » Fri Jan 15, 2016 12:18 am

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?

Image


If that is salem, it is 900MB maybe but not 900k! :p
Need something? Here is my Shop (Including some useful info for new/returning players at the bottom of the first post)
Taipion
 
Posts: 2662
Joined: Fri Mar 08, 2013 4:12 pm

Re: Memory Usage

Postby Argentis » Fri Jan 15, 2016 1:04 am

I'm at 500Mo with Latikai's.
User avatar
Argentis
 
Posts: 1667
Joined: Sun Jan 06, 2013 8:59 pm

Re: Memory Usage

Postby grapefruitv » Fri Jan 15, 2016 1:35 am

500MB on freshly started latikai, 800-900 after playing at my base for some time, 1000-1200 after visiting providence.
User avatar
grapefruitv
 
Posts: 709
Joined: Thu Aug 23, 2012 1:53 am

Re: Memory Usage

Postby Heffernan » Fri Jan 15, 2016 1:37 am

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?
User avatar
Heffernan
 
Posts: 8564
Joined: Mon Sep 08, 2014 3:07 pm
Location: Marps Closet

Re: Memory Usage

Postby Argentis » Fri Jan 15, 2016 3:05 am

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.
User avatar
Argentis
 
Posts: 1667
Joined: Sun Jan 06, 2013 8:59 pm

Re: Memory Usage

Postby LOMS » Fri Jan 15, 2016 8:11 am

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
User avatar
LOMS
 
Posts: 568
Joined: Wed Aug 01, 2012 3:09 am
Location: Mordor, Russia

Re: Memory Usage

Postby Kandarim » Fri Jan 15, 2016 10:08 am

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.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Memory Usage

Postby Pordy » Thu Jan 28, 2016 12:38 pm

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?
Image
-----------------
In eating we dont know jokes!
Pordy
 
Posts: 84
Joined: Tue Nov 13, 2012 1:02 pm

Re: Memory Usage

Postby Kandarim » Thu Jan 28, 2016 12:42 pm

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.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Next

Return to Bugs & Technicalities

Who is online

Users browsing this forum: No registered users and 3 guests