Southperry.net
Maple eating up memory - Printable Version

+- Southperry.net (https://www.southperry.net)
+-- Forum: Maplers Helping Maplers (https://www.southperry.net/forumdisplay.php?fid=9)
+--- Forum: Technical Help (https://www.southperry.net/forumdisplay.php?fid=84)
+--- Thread: Maple eating up memory (/showthread.php?tid=40420)



Maple eating up memory - Joe.2 - 2011-04-10

Ok, so for a while now, I've had that problem a lot of people have with some sort of memory leak, mostly triggered in fm entrance, although sometimes at bosses, my maple would lag/freeze, and when i checked my task manager, maple was using over 400k. This mostly happened when i had been logged on for a while. However, recently maple will be super laggy, and when i check, it's eating up 300k+ as soon as i start it up. Is there any way to fix this?


Maple eating up memory - Locked - 2011-04-10

..That seems somewhat normal to me o.o


Maple eating up memory - Kalovale - 2011-04-10

Locked Wrote:..That seems somewhat normal to me o.o

This. I tried monitoring the memory and it actually kept going up to around 350k during launch/login. Stayed stable during gameplay.

[Image: maplememory.PNG]


Maple eating up memory - Joe.2 - 2011-04-10

Locked Wrote:..That seems somewhat normal to me o.o

o.o maple used to use around 100k-150k, rarely went over 200k for me before.

edit: as a matter of fact, at the moment maple is running fine, and its barely using 75k ram.


Maple eating up memory - Joe.2 - 2011-04-10

Kalovale Wrote:This. I tried monitoring the memory and it actually kept going up to around 350k during launch/login. Stayed stable during gameplay.

Oh, yeah well what i mean is it stays at 350k even after I've logged in, never goes back down.


Maple eating up memory - Kalovale - 2011-04-10

Joe.2 Wrote:Oh, yeah well what i mean is it stays at 350k even after I've logged in, never goes back down.

It never did for me either.


Maple eating up memory - Devil - 2011-04-11

Joe.2 Wrote:Ok, so for a while now, I've had that problem a lot of people have with some sort of memory leak, mostly triggered in fm entrance, although sometimes at bosses, my maple would lag/freeze, and when i checked my task manager, maple was using over 400k. This mostly happened when i had been logged on for a while. However, recently maple will be super laggy, and when i check, it's eating up 300k+ as soon as i start it up. Is there any way to fix this?
This is the memory leak that made me (and a lot of other people I know) quit maple.

It gets worse when you have more people attacking on your screen, using a lot of skills (read: squad bossing @ any boss, training in Lionheart, actually anything you do these days... lol).

Maple's memory allocation will keep growing, untill it can't allocate memory anymore (happens when maple is around 800mb) and it's unable to render textures. Resulting in invisible Mech Tank sprites, invisible Zakum bodies, etc.

In the end maple will crash (freeze).

If that happens, you can try the key combination (Win XP):
-> CTRL + ALT + DEL (=Task Manager)
-> Type: map (to move to the maplestory.exe process)
-> ALT + E (to kill the maplestory.exe process)
-> ENTER (to confirm killing the maplestory.exe process)

This will get you back to the desktop without having to restart your PC

You can sort of avoid it by resetting maple's graphics quality every 5 minutes (lowest quality <-> low quality <-> lowest quality), but this is such a pain in the ass... -.-

So yeah, I've quitted maple after 7 years, just to the simple fact that Nexon is unable to fix memory leaks, that happen -everywhere- now... Kind of sad for a 2D low res game... Sad

Oh btw, I use windows XP 32 bit, it seems to be happening less if you use a 64-bit OS (XP/Vista/Win7 64-bit). What kind of OS do you have? And how much RAM does your PC have?

So yeah, if you want to keep playing, just reset your graphics quality every 5~10 minutes, depending on how many players there are on your screen. Or wait till Nexon fixes maple's core engine, although I hardly doubt this will ever be done... :/


Maple eating up memory - ctblack - 2011-04-11

I wouldn't call it a memory leak (yet), as memory leak is when a programmer forgets about writing code to free up requested memory from windows and every time that part of the code is executed, it allocate more and more memory. (Basically stacking the previous requested memory from previous calls).
This is more of a memory hog behavior than memory leak. As MS grows, it gets more and more content, and the way ms works is having the client store all the images/animation info. When ms first started it will attempts to load in as much of itself as possible (this varies depend on how much ram and what other programs are running). MS will usually load all the info for the map you first log into and anything else near/around that map. Once you moving to a new unexpected area, then windows will load them from the hard drive. Its very much like how CPU cache works.
The trick to speed it up would be some of the steps as follows:

1. minimize the amount of background programs
2. defrag your drive where ms installation sits on.
3. increase the virtual memory setting to 2x your physical RAM (more if you have < 1GB of RAM).
4. trick window to making it "preload" all the ms info, by going into the map (like the boss map) and do all you buffs before starting your attack/run. Makesure to wait till the computer has finish its disk access.


Maple eating up memory - Devil - 2011-04-11

ctblack Wrote:I wouldn't call it a memory leak (yet), as memory leak is when a programmer forgets about writing code to free up requested memory from windows and every time that part of the code is executed, it allocate more and more memory. (Basically stacking the previous requested memory from previous calls).
This is more of a memory hog behavior than memory leak. As MS grows, it gets more and more content, and the way ms works is having the client store all the images/animation info. When ms first started it will attempts to load in as much of itself as possible (this varies depend on how much ram and what other programs are running). MS will usually load all the info for the map you first log into and anything else near/around that map. Once you moving to a new unexpected area, then windows will load them from the hard drive. Its very much like how CPU cache works.
Situation at Lionheart / Zakum / etc
- Log into maple
- Travel 3 maps to Lionheart map
- Start training with party members
- Maple start acting weird after 20 minutes (transparent textures)
- Maple crashes at 30 minutes

So it's clearly a memory leak, since:
- You only visit 3 maps
- Stay in that map
- You don't cc
- You (and the 5 other party members) only do their basic attack skills

Still memory get's pushed full of data untill Maple crashes.

What I think what happens is that Maple does this:
- Render animation.slash.1 to memory
- Draw animation.slash.1 from memory
- [DO NOT] delete animation.slash.1 from memory
- Render animation.slash.2 to memory
- Draw animation.slash.2 from memory
- [DO NOT] delete animation.slash.2 from memory
- etc

This would explain why:
- The more you keep attacking, the faster maple's memory size increases.
- The more people that keep attacking, the faster maple's memory size increases.

Oh btw, I have 2GB ram, and a 8GB swapfile on a dedicated partition. It's not my PC, it's purely maple. I reinstalled maple 3 times and it didn't help.


Maple eating up memory - ctblack - 2011-04-11

I would think the code would generalize the attack routines so it would use the same code doesn't matter which map you are in and not specific to only certain maps. As I have XP too with the same amount of RAM and I am able to zak and train in LHC without any problems. I am not so sure its a memory leak as you had described.


Maple eating up memory - MuscleWizard - 2011-04-11

Nowadays 300-400mb of ram usage isn't that impressive for a game.
You should just upgrade your ram.
Remember though, if you're running on a 32bit operating system, the max your system can handle is 4 gigabytes of ram at a time. It doesn't matter if you have 8 gigs of ram in the slots, your operating system will only be able to use 4 at a time.


Maple eating up memory - ShanghaiDizzy - 2011-04-14

It is a memory leak as far as I can tell. My laptop can barely run at LHC and I've monitored the memory usage. Unless the others who were lucky enough to have it at 400 megs of memory being used up, mine goes all the way up to 600 to 700! Even after I take my HS mule out of LHC back to nath without shutting down maple completely, the memory stays. That's definitely a memory leak. My poor laptop can't handle that. :/


Maple eating up memory - maplefreak26 - 2011-04-14

My maple stays at around 250 to 400.

64bit Windows 7 OS.

Nexon really needs to fix it up.