Code Monkey home page Code Monkey logo

cloudstorm's Introduction

Currently learning stuff and building things

GitHub Statistics

github stats github stats

cloudstorm's People

Contributors

daswolke avatar itsyuka avatar papiophidian avatar squidtoon99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cloudstorm's Issues

Is this still alive?

Hello,
Is this still alive? Can't get it through npm, tried with git getting lot of node gyp errors about zlib sync

Memory leak in CloudStorm

There appears to be a memory leak somewhere in CloudStorm, possibly related to the erlpack.node library.

Expected Behavior

CloudStorm uses a reasonable amount of memory upon startup (~1-2 MiB). This memory usage remains constant and does not increase over time, even as events in the server occur.

Actual Behavior

CloudStorm starts out using 1 MiB of memory. After about 1-2 minutes, memory usage begins to increase. At 17 minutes of runtime, memory usage has risen to 27.03 MiB.

RAM Profiling

Profiling to find this memory leak was done in Instruments using a boilerplate script (seen below).

Here are some of the screenshots illustrating CloudStorm's memory usage:
screen shot 2018-02-24 at 8 52 34pm

One screenshot appears to link the issue to erlpack.node:
screen shot 2018-02-24 at 8 54 38pm

Here's the full .trace file, if you'd like. It can be viewed in Instruments and should reveal more details.
CloudStorm Allocations.trace.zip

Code

The code I used to test and isolate this memory leak was fairly straightforward. Here it is:

const CloudStorm = require('Cloudstorm');
let bot = new CloudStorm(process.env.BOT_TOKEN, {
    initialPresence: { status: 'online', game: { name: 'memory leaks. Fun!' } },
    firstShardId: 0,
    lastShardId: 0,
    shardAmount: 1
});

function ready() {
    console.log("CloudStorm ready");
}

function event(event) {
    console.log("=== RECEIVED AN EVENT ===");
    console.log(event.t);
}

bot.on("ready", ready);
bot.on("event", event);
bot.connect();

Question

There is probally an easier way to ask questions but I just threw it in issues but is CloudStorm it's own thing or do RainCache and etc get used with CloudStorm also if I understood your reply to my old thing i'm looking forward to seeing an open source bot used with CloudStorm! :)

Idea

So if this actual ever gets finished would you ever think about making a full modular bot out of your system rather than using something like discord.js, it would be cool to see this made with a real bot as well just some ideas for the bot if you did do this, moderation commands, music, fun, etc, and very beautiful rich embed help, you could even name the bot CloudStorm and the bot would run off CloudStorm! ๐Ÿ‘

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.