Dedicating more RAM to the Salem client

Forum for bugs and technical problems.

Dedicating more RAM to the Salem client

Postby Felkin » Sun Nov 11, 2012 1:07 pm

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 ^^
Felkin
 
Posts: 29
Joined: Tue Nov 06, 2012 6:56 pm

Re: Dedicating more RAM to the Salem client

Postby MagicManICT » Sun Nov 11, 2012 2:35 pm

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.
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: Dedicating more RAM to the Salem client

Postby Felkin » Sun Nov 11, 2012 4:16 pm

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.
Felkin
 
Posts: 29
Joined: Tue Nov 06, 2012 6:56 pm

Re: Dedicating more RAM to the Salem client

Postby staxjax » Mon Nov 12, 2012 12:14 am

control panel>java>view>runtime parameters

Of course, this will change settings for any program that utilizes the selected java platform.
Of all the things I've lost, I miss my mind the most - Ozzy Osbourne

Confirmed retards: Nimmeth, Claeyt, MycroSparks
User avatar
staxjax
 
Posts: 2845
Joined: Wed Aug 01, 2012 1:29 am

Re: Dedicating more RAM to the Salem client

Postby MagicManICT » Mon Nov 12, 2012 2:07 am

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.)
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: Dedicating more RAM to the Salem client

Postby Felkin » Mon Nov 12, 2012 10:56 am

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
Felkin
 
Posts: 29
Joined: Tue Nov 06, 2012 6:56 pm

Re: Dedicating more RAM to the Salem client

Postby MagicManICT » Mon Nov 12, 2012 3:23 pm

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.)
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: Dedicating more RAM to the Salem client

Postby Tonkyhonk » Mon Nov 12, 2012 3:27 pm

MagicManICT wrote:(Still need to run Ender's under 6, though.)

you mean, ender's latest fix isnt working?
ImageImageImageImageImageImage
User avatar
Tonkyhonk
 
Posts: 761
Joined: Wed Aug 01, 2012 5:06 am

Re: Dedicating more RAM to the Salem client

Postby MagicManICT » Mon Nov 12, 2012 3:30 pm

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:
I am a moderator. I moderate stuff. When I do, I write in this color.
JohnCarver wrote:anybody who argues to remove a mechanic that allows "yet another" way to summon somebody is really a carebear in disguise trying to save his own hide.
MagicManICT
 
Posts: 5088
Joined: Wed Aug 01, 2012 1:46 am

Re: Dedicating more RAM to the Salem client

Postby Tonkyhonk » Mon Nov 12, 2012 3:35 pm

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
ImageImageImageImageImageImage
User avatar
Tonkyhonk
 
Posts: 761
Joined: Wed Aug 01, 2012 5:06 am

Next

Return to Bugs & Technicalities

Who is online

Users browsing this forum: No registered users and 16 guests