Jump to content

Running 2 Bots= Laggy


icecake

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

https://gyazo.com/b0489da01831f303999338f9de922ebc

 

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

 

No, run the command I gave from command line. OSBot has a boot loader that takes the JVM args, and spawns a new JVM (without those args). You need to use OSBots parameters:

 

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Error: Unable to access jarfile osbot.jar

Link to comment
Share on other sites

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
Link to comment
Share on other sites

 

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

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...