In each Java application, there is a set amount of heap (also know as memory) the application can use. This is very important because memory is used by how many objects are allocated in the application. The more objects stored in the memory, the more memory you will need to give the application.
Most people think, the more memory you shove into a application the better it runs and what not. This is only somewhat true, because of the way most of all Runescape Private Servers are built. If the server is a memory hog and isn't programmed correctly, like most servers are, it will have a memory leak causing it to eat lots of heap, thus making it crash eventually, that's why people think that giving more heap to the application fixes problems. Honestly, it fixes nothing, it just covers up the problem.
When making a server, you want to make sure there are no memory leaks that will eat all the heap. To do this you want to run benchmarks and profiler tests to see what's using the most amount of heap and then go see what's wrong, if there is anything wrong.
Now a normal server, if writen correctly should only have the use around 2048mb of memory. This is plenty of memory to store data, and what not. If you want to take full advantage of your heap, you should store lists of things, such as NPC, Object, Player data inside the heap, for fast access and less CPU power. Doing so will result in more heap used, because you're storing lots of data in the memory, this isn't a bad thing, because if it's all writen properly it will allow you to retrieve data faster.
Thanks for reading, hope you learned something.
Here is a great post by Graham, explaining what a Memory Leak is:
this is how i learned about it
higher = more cpu usage && more stability
thats what i learned b4 this
after this, im just clueless cuz i didn't rely understand much of this
What is a memory leak?
What kind of tests can we do to find memory leaks?
|« An explanation on Deobfuscate | 377 Packet Structure Documentation »|
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)