Greetings,
A couple of weeks ago I switched from Aerolib to Reflection for fun/learning experience and have been playing with it since that time.
However after running my script for a couple of hrs (mostly at 9h+ /w breaks) i get this error . Java process maxing out of memory on my server (+- 250 mb).
After watching the script for a while i've noticed that my memory grows whenever he loads in a part of the map/game when you're running around (so when the screen goes black and says please wait or something like that).
Note: sometimes after walking and having to load in map, the memory slowly drops again over a period of time but sometimes it doesn't so it keeps on adding up.
Research also suggested this post by Kyle/Elfy saying that all memory management is done by the include except for widgets. The only time I use this is for the Reflect.Bank.isOpen/Close. Anyone knows if you have to do some manual memory management here?
Can anyone confirm that they've had the same problem / don't have the problem with a script running a decent amount of time and walking ingame?
OR
Does anybody know how i can give one of these params to the SmartSpawnClient proc so I can increase my heap size since I only want it to run 1/2hrs more
Code:
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
java -Xms16m -Xmx64m ClassName
Into
Code:
Self.Target := SmartSpawnClient(JavaString, StringReplace(PluginPath, '\',
'/', [rfReplaceAll]), Format('http://oldschool%s.runescape.com/', [World]),
'j1', Width, Height, '', UserAgent, '', '');
Gratz in advance
Clownhair