Reduce Memory Consumption Of My Plugin

Discussion in 'Plugin Development' started by KyTDK, Sep 6, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    KyTDK

    I noticed when I deactivate my plugin, it clears about 2 gigs of ram. I have about 6 classes that all look for different events. My plugin does a lot, but I'm not sure if something is wrong. It is a spleef plugin, it makes it so only one person needs to go to bed, it gets rid of the joined world message, it says hello when you join and something else. If there any common practices that you use to make the plugin not use so much memory?
     
  2. Offline

    CraftCreeper6

    @KyTDK
    How do you reset the spleef arena? Is it stored in a block array or some other way?
     
  3. Offline

    Kars

    You need to de-reference every Java-object so it can be garbage collected.

    It would help if we could see your code.
     
Thread Status:
Not open for further replies.

Share This Page