Lewis Posted March 5, 2018 Share Posted March 5, 2018 Hey, as of recent my script has started to have ram usage slowly keep raising. I used to run it and it would hit 400mb ram/client max over the span of 24 hours. Now using the same script (unedited) it increases at a crazy rate within 3 hours it now uses 600mb ram/client and no doubt will reach 800mb within a few hours Is there a way to combat this? either via code or something else? script usage before: script usage after: Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 5, 2018 Author Share Posted March 5, 2018 1 minute ago, Chris said: each client uses 512mb minimum no it doesnt 1 Quote Link to comment Share on other sites More sharing options...
Chris Posted March 5, 2018 Share Posted March 5, 2018 @nicksep @nicksep1 @Lewis Quote Link to comment Share on other sites More sharing options...
inababila Posted March 5, 2018 Share Posted March 5, 2018 Could be code or laptop performance. Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 5, 2018 Author Share Posted March 5, 2018 14 minutes ago, Chris said: @nicksep @nicksep1 @Lewis once again, its not on there... this is exact same script 0 change using more now than before 1 Quote Link to comment Share on other sites More sharing options...
ez11 Posted March 5, 2018 Share Posted March 5, 2018 23 minutes ago, Chris said: @nicksep @nicksep1 @Lewis what Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 5, 2018 Author Share Posted March 5, 2018 Just now, ez11 said: what hes trolling Quote Link to comment Share on other sites More sharing options...
ez11 Posted March 5, 2018 Share Posted March 5, 2018 2 minutes ago, Lewis said: hes trolling i was really getting confused by him saying each clients is min 500mb when i currently have 8 clients open at 140mb each Quote Link to comment Share on other sites More sharing options...
will_of_fire Posted March 5, 2018 Share Posted March 5, 2018 yeah mines been really high too Quote Link to comment Share on other sites More sharing options...
Antonio Kala Posted March 5, 2018 Share Posted March 5, 2018 5 minutes ago, will_of_fire said: yeah mines been really high too Mine are running the same as before. That's not high, that's normal usage. @will_of_fire what script were you running? Quote Link to comment Share on other sites More sharing options...
Alek Posted March 5, 2018 Share Posted March 5, 2018 It's the new OSBot update, I'm adding an extra 400MB in frog memes to be loaded into memory. Seriously though, why are you using Task Manager for this? You're not going to get accurate information. 3 2 Quote Link to comment Share on other sites More sharing options...
Lewis Posted March 5, 2018 Author Share Posted March 5, 2018 35 minutes ago, Alek said: It's the new OSBot update, I'm adding an extra 400MB in frog memes to be loaded into memory. Seriously though, why are you using Task Manager for this? You're not going to get accurate information. task manager is what ive always used, and even so i cant see why same script now uses more ram compared to 3 days ago Quote Link to comment Share on other sites More sharing options...
battleguard Posted March 6, 2018 Share Posted March 6, 2018 (edited) You should look into using a memory profiler and taking snapshots of your memory at the start of your run and after a while when it reaches the higher memory levels. Then look at the objects its holding onto and tracking down where those references are created. I have only done this mainly in c# though for work but I am sure its just as easy to do in java. Edit from what I can tell it looks like osbot adds this argument when running a script "-XX:+DisableAttachMechanism". Which looks to disable heap dumps if anyone knows if this is correct and you cannot looks at your scripts heap please let me know. Edited March 6, 2018 by battleguard Quote Link to comment Share on other sites More sharing options...
will_of_fire Posted March 6, 2018 Share Posted March 6, 2018 5 hours ago, Antonio Kala said: Mine are running the same as before. That's not high, that's normal usage. @will_of_fire what script were you running? just frost barrows which is a little intensive and some crabs Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 6, 2018 Share Posted March 6, 2018 Try running java dump stack Quote Link to comment Share on other sites More sharing options...