Jump to content

Need help with RAM issues


Recommended Posts

Posted

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

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