Ok, so, I've been having issues with memory leak for as long as I can remember. I've tested every plugin (I think) for the leak. By tested I mean run the plugin in an empty server and monitor it's performance over an extended period of time. Here are my plugins. I'm also running bukkit build #2352 (the beta build). Any help on this matter would be nice. It's gotten to the point where my server is using 15GB of RAM with 30 people on T_T EDIT: Linux x86_64 Java version "1.7.0_06" Java HotSpot 64-Bit Server VM
I may be not correct but Java will not clean memory (aka gc) while usage is lower than declared heap size (in your startup script). It appears as all memory is used - why spend time at cleaning it and slowing general performance while it can leave it and clean up for next time when there will be need for it. If you really don't like that search for custom java builds with modified garbage collector.
TL;DR: When watching memory usage, it only goes up until it reaches a point that the JVM decides to reduce it. This is normal and expected.
You could try to add this to your start command: -Xincgc Which basically stops the garbage collector from taking short breaks.
I see.. but I have 40GB of RAM, and it doesn't slow down until I'm using roughly 25GB, and even then it doesn't stop. If I leave the server running for longer than 48 hours it crashes from running out of RAM. I'll give this a shot, thanks.
If it's getting that bad, you need to grab a JVM snapshot when the system is using a lot of ram to investigate where it's being used. It will freeze your server for a few minutes (if it's really 40 gigs of memory), but you can use that to figure out where the problem is. There are some diagnostic tools you could try, like YourKit or looking at http://docs.oracle.com/javase/7/docs/technotes/guides/management/index.html. It's going to be a lot of legwork to narrow down a memory leak if you don't want to binary search your plugins (which, I'm sure you'd object to).
Update all your plugins. I have this problem, and it seemed to partly fix when i updated essentials, which i can see you have edit: may i ask how many players you get on your server. (like your avg online) and your host.