RefinedCode
Well-known member
- Joined
- Feb 1, 2011
- Messages
- 930
- Thread Author
- #1
I know nothing of what the operators do on the server, so you might already know the cause of the memory leak. But I have a good tool that you could use on the server. Its the only tool i use when finding memory leaks. It is called visualVm and it comes with Java 6. Im not even sure if you have a GUI on the server but if you do this is what you can do to use it:
Add:
to your server launch .bat or whatever you do to start the server.
Then goto the java bin directory. its java/bin/visualvm.exe on my computer.
Start visualvm.exe. And you should see a branch on the left sidebar with the server. If you click on it it will lot like this:
Click on the "Heap Dump" button in the "Monitor" tab when the server gets really bad lag.
Then you will have another tab for the heap dump like this :
Then you can see where abnormal memory usage is taken and if it belongs to a plugin you can do something about it. Works on any OS. You would just need a GUI which i have no idea if you do. Just thought i'd share this i found it to be a great tool. Maybe it will be fixed by the bukkit team I dont really follow bukkit anymore this is just a general java tip.
Oh also you could use this to compare when the server is not lagging to when it is to see the differences in memory usage for some classes since it can be hard to spot.
Add:
Code:
-Dcom.sun.management.jmxremote
Then goto the java bin directory. its java/bin/visualvm.exe on my computer.
Start visualvm.exe. And you should see a branch on the left sidebar with the server. If you click on it it will lot like this:
Click on the "Heap Dump" button in the "Monitor" tab when the server gets really bad lag.
Then you will have another tab for the heap dump like this :
Then you can see where abnormal memory usage is taken and if it belongs to a plugin you can do something about it. Works on any OS. You would just need a GUI which i have no idea if you do. Just thought i'd share this i found it to be a great tool. Maybe it will be fixed by the bukkit team I dont really follow bukkit anymore this is just a general java tip.
Oh also you could use this to compare when the server is not lagging to when it is to see the differences in memory usage for some classes since it can be hard to spot.