Author Topic: Memory Usage Accumulation -SOLVED-  (Read 1637 times)

0 Members and 1 Guest are viewing this topic.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Memory Usage Accumulation -SOLVED-
« on: April 27, 2009, 04:43:51 pm »
Now that my server running my ZRPG script is on EnEsCe I have noticed that it's memory usage continually grows, it starts around 15 or so MB and gains a megabyte about every minute or so. I have no idea what is causing this. Does anyone know?
« Last Edit: April 28, 2009, 03:49:05 pm by Hacktank »


Offline shantec

  • Soldier
  • **
  • Posts: 140
  • Get ANGREH!!
Re: Memory Usage Accumulation
« Reply #1 on: April 28, 2009, 09:10:22 am »
Variables maybe?
Also Known As REIMA


Lol Happles (happy apples)

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Memory Usage Accumulation
« Reply #2 on: April 28, 2009, 09:41:23 am »
Dynamic arrays are usually the cause. Or anything involving SetArrayLength etc

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Memory Usage Accumulation
« Reply #3 on: April 28, 2009, 01:01:28 pm »
Dynamic arrays are usually the cause. Or anything involving SetArrayLength etc
That would have to be it, I added a bordertext function that uses SetArrayLength. I know of a cheap but functional workaround. Thank you!

EDIT: I got rid of the only SetArrayLengths I added since I noticed this problem and its still doing it, also there is a setarraylentgh in PlaceBot, Xsplit, and my INI functions. Is there any way to fix this problem?
« Last Edit: April 28, 2009, 01:30:18 pm by Hacktank »


Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Memory Usage Accumulation
« Reply #4 on: April 28, 2009, 03:48:55 pm »
There was a ReadIni being called every 10 seconds that was somehow causing this problem. Problem Solved.


Offline rayanaga

  • Soldier
  • **
  • Posts: 143
  • ~Fur flying~
    • Kryonex
Re: Memory Usage Accumulation -SOLVED-
« Reply #5 on: April 28, 2009, 11:09:09 pm »
Yeah ReadINI has a pretty horrible memory leak. I only call it on ActivateServer.
[kY] Kryonex - Your local zombie fanatics.
http://www.kryonex.com/

Offline LORD KILLA

  • Camper
  • ***
  • Posts: 254
  • Happie
Re: Memory Usage Accumulation -SOLVED-
« Reply #6 on: May 23, 2009, 07:02:13 am »
EnEsCe,
It woud be great if you fix ReadINI();
(and maybe add WriteINI();)