Jump to content

Reducing osbots mem usage


madago227

Recommended Posts

You are most likely running out of memory. You can troubleshoot this by opening a command prompt and starting OSBot with the following command

java -jar client.jar -login osbotusername:osbotpassword -mem d

It will print an error and the default memory allocation in my case 3616MB

Memory allocation not a valid number, using default
Setting memory at 3616MB 

If your default memory allocation is not 4 digit then this is your problem and you can fix it by starting OSBot from command line with the flag -mem 1024 

 

That prevents becoming unresponsive, in order to actually reduce the memory usage your only solution would be using scripts that don't require webwalking at all

Edited by Token
Link to comment
Share on other sites

He could also try using low resource mode. I might expand on low resource mode soon.

 

I am unable to use low resource mode as it disables my input without pausing and disables paint which are both needed as my script is simply a helper with no actions ingame.

You are most likely running out of memory. You can troubleshoot this by opening a command prompt and starting OSBot with the following command

java -jar client.jar -login osbotusername:osbotpassword -mem d

It will print an error and the default memory allocation in my case 3616MB

Memory allocation not a valid number, using default
Setting memory at 3616MB 

If your default memory allocation is not 4 digit then this is your problem and you can fix it by starting OSBot from command line with the flag -mem 1024 

 

That prevents becoming unresponsive, in order to actually reduce the memory usage your only solution would be using scripts that don't require webwalking at all

If I set it to -mem 1024 with only 8gb ram on some pcs running 12 clients will this work still? there is currently no web walking or bot actions ingame it is simply a script that displays a paint.

Link to comment
Share on other sites

I am unable to use low resource mode as it disables my input without pausing and disables paint which are both needed as my script is simply a helper with no actions ingame.

If I set it to -mem 1024 with only 8gb ram on some pcs running 12 clients will this work still? there is currently no web walking or bot actions ingame it is simply a script that displays a paint.

What was the previous memory allocation?

Link to comment
Share on other sites

@Alek Hey Alek, I tried using low resource + low CPU mode using CLI. And then I tried normal client load up and went to settings option to select low CPU mode from there. From the 2 options, I didn't see any significant different. Actually there was no difference at all. So my question is why would we low resouce + low CPU it from CLI when we can do it from the settings and achieve the same result.

 

I guess what I'm trying to say is I hoped I could lower my CPU further more using CLI then regular low CPU mode. Both low CPU modes reduce the CPU usage dramatically tho when neither are used, so that part still definitely works.

Link to comment
Share on other sites

@Alek Hey Alek, I tried using low resource + low CPU mode using CLI. And then I tried normal client load up and went to settings option to select low CPU mode from there. From the 2 options, I didn't see any significant different. Actually there was no difference at all. So my question is why would we low resouce + low CPU it from CLI when we can do it from the settings and achieve the same result.

 

I guess what I'm trying to say is I hoped I could lower my CPU further more using CLI then regular low CPU mode. Both low CPU modes reduce the CPU usage dramatically tho when neither are used, so that part still definitely works.

The -allow lowcpu flag is provided at CLI level because it's probably the most common setting we use while botting and the whole point of using CLI is starting a lot faster (support for goldfarming). It has the same effect as the lowcpu checkbox in your settings but access to it is provided from outside the client. 

 

-allow lowresource will disable things like debuggers, script and client paint, the window theme which you cannot modify after the client has been started so this is only possible from CLI. 

 

@@Globbee

If a script is not working in lowresource mode, that has nothing to do with the client or lowresource mode as the only way it can affect scripts is by disabling the paint thread so the onPaint() method is no longer called. If scripters write their script code or their script depends in any way on the paint thread that is just blatantly wrong and you should inform them.

Link to comment
Share on other sites

i didn't use the flag for mem previously so default? Would I be ok to do -mem 1024 with only 8gb ram and 12 clients?

They may be running slowly but without any background processes maybe. The use of -mem 1024 only applies if your default memory allocation is too low so that's why I asked you what was the default one. This won't change anything if that's not the case.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...