Temporary GUIDE TO AVOIDING THE 'LAG' (memory leak)

9 replies [Last post]
Lubbes's picture
Lubbes

Hi guys.

The 'lag' at the minute seems to be caused by some sort of memory leak. while OOO fixes this (and other issues), the temporary work around i find that seems to work (in windows) is the following:

1) at the start of every level, press CTRL+ALT+DEL.
2) bring up the task manager.
3) find java.exe listed under the processes tab.
3) click end process - this quits the game, but the server saves where you are in the level, you dont lose mist/heat etc.
4) restart spiral knights - it will load in the same place you left off and you can carry on playing, without the lag.

This process basically just refreshes java, getting rid of all the crud that it has accumilated. The server just thinks you disconnected and waits for the reconnect.
I recommend to do it at the start of every level, because you are at no risk of getting killed there. You can do it at any time, just try and make sure you do it at a time where you will not get killed by monsters that could spawn.

If you have a more powerful computer, you can do it less often, However, id like to note, i have 4gb ram, the game starts to become unstable when java.exe reaches about 700Mb, and becomes completely unplayable at 850Mb. So, to keep it 'fresh' restart earlier rather than later.

Hope this helps, if you have any other ideas, keep em posted.

Theopholis's picture
Theopholis
Thank you.

You are being helpful.

Spiralviperr's picture
Spiralviperr
Makes me happy I got that 4GB

Makes me happy I got that 4GB of RAM

Yvanblo's picture
Yvanblo
Yep, it works too!

I was basically doing this last night, but seeing as I have a powerful computer, I didn't have to do it at every level. And a couple times I let it crash on it's own due to being in a fight (on my computer it took a while to get too laggy, and then it was SUDDENLY very laggy and would lock and crash). Each time I came back I was miraculously still alive!

A note to anyone on slow computers, or without more than 1GB of RAM: It will take a long time to get to windows, and it will take a long time to kill java if the lag has already started. I'm assuming that most can play a little bit without bad lag, and then it ramps up as the memory fills.

Thanks Lubbes! I hope this helps a lot of knights!

EDIT: Worth mentioning that my java.exe was only using 900MB... I have 4GB RAM.

Lubbes's picture
Lubbes
no problem :) I was just

no problem :)

I was just surprised that no one posted it earlier considering the amount of rage threads appearing. Im sure this will no doubt disappear under those rage threads, and people wont see it.

I edited in the java filesize. yeah, more ram only helps to an extent, but id say the general power of your computer as a whole helps just to be able to process the extra bugged data.

Nordlead's picture
Nordlead
I have 8GB of physical RAM

I have 8GB of physical RAM and the game still freezes when RAM hits ~700MB. I think it becomes a Java issue at that point so having 8GB ram provides no benefits over 4GB of RAM. I actually had 2 instances of Java taking 700MB this morning because the screen dissapeared but the process kept running so I opened another instance of SK. Killed both on my next refresh.

We were also refreshing at the start of every level, but another area that is safe is party pads. Just don't stand on it while you are refreshing :-D

Capashtripleseven's picture
Capashtripleseven
Thanks.

Nice workaround man, cheers.

I noticed the memory leaking too, since in task manager java was using more or less 700mb of RAM,
but the overall memory allocation was of 3.5GB!! XD ...and I have only 2GB of RAM on my machine!

Anyway, the devs are already working on it and should be solved soon... I have faith in them!! :D

Cxtralu's picture
Cxtralu
Works most of the time

I've done the steps Lubbes suggests a few times before and they usually work.

It didn't work for me once, last night after the update. I was at the last level of KoA with a friend. I was having a lot of lag, but then the game stopped responding when Vanaduke was in stage 5. I killed the process, but it didn't take me back to the party when I logged back in the game. Luckily Vanaduke needed one more hit and my friend was able to complete the mission. Unfortunately I didn't get the rewards of the level.

Autofire's picture
Autofire
I was doing this before you

I was doing this before you showed up. >:D

Ok, it is still helpful. This does need to be fixed, cause it is annoying during vanaduke. Also, I just became a vanagaurd yesterday.

Axorpl's picture
Axorpl
You don't have to kill the

You don't have to kill the process, launch another sk client, log in, then close the other one. It worked for me.