Git Product home page Git Product logo

Comments (3)

Dougley avatar Dougley commented on June 4, 2024

The amount of RAM selfbot uses depends on how many servers you're in, how many users you can 'see' at any given time, and how many channels exist across all your servers (regardless if you can access them or not), and how many messages you receive.
I would suggest providing these metrics with this issue.

from selfbot.

jagrosh avatar jagrosh commented on June 4, 2024

Other things that would also contribute to using more memory:

  • Number of friends/pending friends/blocked users
  • Number of open DMs
  • Number of members/roles/channels/permission overrides/etc for all guilds you are in

Also, keep in mind that the JVM (Java Virtual Machine) assigns itself memory to work with, even if it's not necessarily using all of it. I don't recommend changing any settings (as usually it does best if allowed to expand + contract on its own), but you can use the -Xmx200m flag (for example) to limit it to 200mb. I would say to avoid this though, because the bot might fail to load or stop responding if it cannot load everything it needs.

from selfbot.

samdivaio avatar samdivaio commented on June 4, 2024

I guess its just normal Java thing.
These are the details:

  • 42 servers (563 channels) (42937 users)
  • 60 friends (12 online)
    Bot is using:
    rt=Java.type("java.lang.Runtime").getRuntime();total=rt.totalMemory()/1024/1024;used=total - (rt.freeMemory()/1024/1024);str=used+"mb / "+total+"mb";
    Evaluated Successfully:
    229.20294189453125mb / 247.5mb thanks @shikhir-arora to help me find these details.

from selfbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.