PlaneShift

Support => Complaint Department => Topic started by: Trikitiger on July 27, 2010, 02:48:32 am

Title: Memory Leak
Post by: Trikitiger on July 27, 2010, 02:48:32 am
BTW, this is on the bug tracker now.

After reading the memory leak upon spell usage, I remembered that I was also receiving a memory leak, but my character doesn't use spells!
Spellcasting leaks RAM (http://www.hydlaaplaza.com/flyspray/index.php?sort=asc&order=field4&order2=&sort2=asc&project=2&do=details&task_id=4322)
So I decided to document this problem using my ever-so-helpful task manager. I noticed that half the time, when the PSClient crashes, my Memory usage for the client is at 1 million KB. There is definitely something in the code that's been continually saving data to amass to this large quantity. Unfortunately I wasn't able to get the client to crash this time (the memory dumped from the 700,000 KB to the 400,000 KB), but I was able to document it.

(http://img148.imageshack.us/img148/7092/psmemleak1.png)
Notice that I have Photoshop Open as well. And that the CPU Usage is at the full 99% (Mine rarely hits 100% unless it's a major thing)
(http://img138.imageshack.us/img138/8214/psmemleak2.png)
The CPU usage is down, but my Memory usage went up! Photoshop's did as well, but only because I had 2 layers in one file instead of one.
(http://img830.imageshack.us/img830/6524/psmemleak3.png)
Holy cow! 700,000! Photoshop went up as well, but only because I now had 3 layers instead of 2 in one file. When my PSClient 'randomly' crashes, I notice that the Memory usage of the client exceeds 1 million! That's HUGE.

And as you will also notice, none of the other programs displayed are gaining -THAT- much Memory.
Title: Re: Memory Leak
Post by: Geoni on July 27, 2010, 04:14:34 am
Weird...mine is above 1 million k.
Title: Re: Memory Leak
Post by: Overtherainbow on July 28, 2010, 06:41:04 am
(http://www.kissyourshadow.com/images/blog0808/080814_plug.jpg)

Here, I fixed it.
Title: Re: Memory Leak
Post by: Geoni on July 28, 2010, 08:14:06 am
ty
Title: Re: Memory Leak
Post by: Trikitiger on July 28, 2010, 03:03:30 pm
(http://www.kissyourshadow.com/images/blog0808/080814_plug.jpg)

Here, I fixed it.

Nah, this'll fix it:

(http://www.timbossie.com/wp-content/uploads/2010/01/duct-tape-rolls.jpg)
Title: Re: Memory Leak
Post by: Earowo on July 30, 2010, 09:35:45 am
mines usually around 500k
plus PSlaunch stays open after you start playing but thats only around 32-40k
Title: Re: Memory Leak
Post by: RlyDontKnow on July 30, 2010, 10:27:13 am
for those who don't read the bt: the issue was nailed down to being an issue in the soundmanager, if you're very concerned about your memory usage, disabled sound for now.
Title: Re: Memory Leak
Post by: Earowo on July 30, 2010, 10:29:34 am
for me mines around 500k when sound is off, i never checked what it was with sound on