Jump to content

Running 2 Bots= Laggy


Recommended Posts

Posted

Simply increase the memory of the JVM:

 

java -jar OSBot.jar -mem 1000

 

OSBot starts with 500mb of heap space by default, this is fine for 1 script most of the time. To run 2 tabs you need to basically double the heap space, hence '-mem 1000'. The CPU usage is coming from the GC cycle running constantly.

Posted

Simply increase the memory of the JVM:

java -jar OSBot.jar -mem 1000

OSBot starts with 500mb of heap space by default, this is fine for 1 script most of the time. To run 2 tabs you need to basically double the heap space, hence '-mem 1000'. The CPU usage is coming from the GC cycle running constantly.

https://gyazo.com/b0489da01831f303999338f9de922ebc

 

Is this what i'm supposed to type to add memory?

Posted (edited)

Tbh i still have no clue about this :l

Where do i run the command?

 

I might run in the same problem once I got my new computer installed, so what I would understand from these guidelines:

 

1. Open Run (Windows+R)

 

2. type in "cmd"

 

3. type in 

java -jar OSBot.jar -mem 1000

Might want to edit some lines according to the other post 

 

http://i.imgur.com/YcYszFA.png

Edited by Artifacts
Posted (edited)

Like another poster said there is not enough default memory to run two tabs in the client. You have to tell the client to use more.

 

In the same directory as your osbot jar make a bat file

@echo off
title WTF 2 TABZ
java -jar "osbot 2.4.107.jar" -mem 2048
pause

If it says that java cannot be found or is not a command, you'll have to change it to the full path to java

"C:\Program Files\Java\jre1.8.0_111\bin\java.exe" -jar ...
Edited by Hayase
Posted

 

Like another poster said there is not enough default memory to run two tabs in the client. You have to tell the client to use more.

 

In the same directory as your osbot jar make a bat file

@echo off
title WTF 2 TABZ
java -jar "osbot 2.4.107.jar" -mem 2048
pause

If it says that java cannot be found or is not a command, you'll have to change it to the full path to java

"C:\Program Files\Java\jre1.8.0_111\bin\java.exe" -jar ...

 

 

This is the answer you're looking for.

@@icecake

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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