Page 1 of 2

Dedicating more RAM to the Salem client

PostPosted: Sun Nov 11, 2012 1:07 pm
by Felkin
Hi, guys,

My problem is rather simple - I believe that my pc ain't giving salem enough RAM thus causing constant crashes.
I believe this to be the case because the absolute same thing happened with Minecraft. It would seem it reached a RAM limit and just crashed, I gave it more - it stopped.

I'm using a pc I bought just weeks ago so there is stuff to iron out :D

What I used to fix MC -
javaw -Xmx4096m -Xms2048m -jar "C:\Users\unimportant\Downloads\Minecraft.exe"
return 0


in a .bat file.

I tried doing -
javaw -Xmx4096m -Xms2048m -jnlp "C:\Users\unimportant\Downloads\salem2.jnlp"
return 0


On the Salem client, it didnt like the jnlp file type :D

So anyone could tell me how should I dedicate more ram to Salem?

Also as a side note - im using Ender's client. That's why its salem2 :P

Thanks for any help in advance ^^

Re: Dedicating more RAM to the Salem client

PostPosted: Sun Nov 11, 2012 2:35 pm
by MagicManICT
I'm not sure why you're system is using more RAM for Salem than others. There might be an internal issue (bad driver, etc) causing this. I don't think I've ever had more than about 450MB RAM allocated to Salem by my system while it's running.

As far as changing the RAM values, you can't do it like you do with Minecraft or other Java programs since it's ran with Java Web Start. You need to edit the "initial heap" and "max heap" values that are in the salem.jnlp file. Make sure that they're in line with what your OS supports and that you're running a proper version of Java.

Attempting to start a .jnlp with java.exe or javaw.exe will just result in an error. You have to use Java Web Start (javaws.exe) to launch a .jnlp and the typical -xms/-xmx command line parameters won't work.

Re: Dedicating more RAM to the Salem client

PostPosted: Sun Nov 11, 2012 4:16 pm
by Felkin
Ok so I updated my drivers, also java, didn't help.
What I notice is that it crashes when reaching around 750-850mb of RAM usage. ALSO after it crashes the javaw.exe still works and still consumes that 750-850mb RAM. If I dont force turn it off, it doesnt even let me relog - says im still online and my friend reported that I do indeed stay online untill I force shut it.

Any thoughts? Also about changing up the dedicated RAM - could you give me an exact command line to run? I'm still very green with java programming :/

UPDATE : Oh, my issue is the same as the only in the FAQ thread, ill try changing to j6 then.

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 12:14 am
by staxjax
control panel>java>view>runtime parameters

Of course, this will change settings for any program that utilizes the selected java platform.

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 2:07 am
by MagicManICT
I'm sorry, I didn't proof my last post well enough and left out part of the instructions. I'm updating it now. (Specifically the lines you need to edit are in the salem.jnlp file.)

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 10:56 am
by Felkin
Thanks guys! It seems that uninstalling java 7 and sticking with java 6 fixed it, so it's some kind of uncompatablility issue? Even though I fixed it by looking at the FAQ, still thanks for the guide to changing up the RAM allocation, will come in handy if future problems arise with java programs :P

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 3:23 pm
by MagicManICT
That's still a bit weird as I'm running the default client on Java 7 with no memory issues. (Still need to run Ender's under 6, though.)

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 3:27 pm
by Tonkyhonk
MagicManICT wrote:(Still need to run Ender's under 6, though.)

you mean, ender's latest fix isnt working?

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 3:30 pm
by MagicManICT
You know, I haven't tried it yet and completely forgot he posted that. I got drug back into WoW with my old raiding guild and have been busy trying to pound through the new expansion. :oops:

Re: Dedicating more RAM to the Salem client

PostPosted: Mon Nov 12, 2012 3:35 pm
by Tonkyhonk
oh no biggies, i just assumed that you would have already tried it :) (neither have i, actually.)

in that case, OP, try checking Ender's thread with the test version too.
viewtopic.php?f=11&t=50&start=200#p21257