r00t.gr

Programming and more

Entries for March, 2011

OpenVZ VPS and Java Memory Error and how to fix it.

There is a “bug” or more correctly an error when someone is trying to run a simple Java Program inside a OpenVZ (HyperVM, Virtuozzo) VPS. If you are in a harry and just want the answer, scroll down to the post and see it. It the story goes like this:   The problem: At first […]

Download and install Sun Java to CentOS system

I use java a lot, and i love the fact that the same program that you write and compile to windows, runs in Linux and virtually any other OS. But i have notice that by simply running   yum install java yum install java You get some other java impementation and not the Sun Java […]

Find out how much free memory (ram) do you have in linux

There are a couple ways to learn how much free RAM there is on your linux machine. The most accurate way though is:   free -m free -m And the output is: total used free shared buffers cached Mem: 7956 7704 252 0 196 6331 -/+ buffers/cache: 1176 6780 Swap: 12290 0 12289 What that […]