Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with RAM issues

Featured Replies

Hey, 

was having a problem when running a lot of clients on a VPS and in time some just shutdown for no apparent reason. Checked JVM logs and got this

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 12288 bytes for committing reserved memory.
# Possible reasons:

Checked RAM usage on some clients and it actually was super high (about 2Gb). Apparently there's a memory leak in the scripts' code, though really didn't find much - all pointers nulled when finished using them. I didn't have this high RAM usage when I used to start OSBot with -mem 1024 flag. Btw using webwalking, maybe any tricks to use it properly apart walking.webWalk(AREA); or with webWalkEvent? RAM usage typically spikes when webwalking and doesn't really clear after that.

 

So my question would be:

1) What does setting the -mem 1024 flag actually do?  Does it limit the amount of RAM allowed by the client and runs JVM garbage collector more often (when exceeds he given limit) or just crashes when exceeds the limit?

2) If even worth, should I do System.gc() to ask the JVM kindly to clear stuff up? If so then what's the best place to put it? Probably not on every loop iteration

  • Author
2 hours ago, dmmslaver said:

ran out of space due to 32bit?

Nah, ran out of space cause ran out of space. 

Btw running with -mem 1024 flag really improved stuff. So I wonder what's the logic behind this

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.