5 Coding Hacks to Reduce GC Overhead

Some background The GC is built to handle large amounts of allocations of short lived objects (think of something like rendering a web page, where most of the objects allocated become obsolete once the page is served). The GC does this using what’s called a “young generation” – a heap segment where new objects are…

java vs c++

At the beginning of a new project, you may be faced with the question, “Should I use C++ (or some other language) for my next project, or should I use Java?” As an implementation language, Java has some advantages and some disadvantages over other languages. One of the most compelling reasons for using Java as…

Set tomcat memory heap size

when you are using tomcat as you application server for not small application you can easy get (out of memory exception). this is because the default heap size tomcat use is small and suitable only for small web applications. to set the start and maximum heap size run the following command before starting your tomcat:…

vps centos check cpu and memery usage

For memery use: free -m You will see an output like this: total       used       free     shared    buffers     cached Mem:           512        462         49          0         46…