Portal Home > Knowledgebase > Articles Database > OpenVZ vs KVM for pretty heavy java server.


OpenVZ vs KVM for pretty heavy java server.




Posted by MarioPL98, 09-17-2016, 02:59 PM
Hi. I found some pretty cheap offers of OpenVZ servers. The same company sells also KVM servers but they are above twice as expensive. What would be better and WHY for java server that uses about 1,5-2,5 GB ram and 2-3 cores of my Phenom II 960t and some Apache server? The offers that I'm looking for are with 3 GB ram. Thanks. PS Are there any other good VPS located in central Europe with 3GB ram and 2 good cores for less than 12 € per month? Last edited by MarioPL98; 09-17-2016 at 03:03 PM.

Posted by vps_newbie, 09-17-2016, 07:23 PM
People often have problems running Java in an OpenVZ VPS, mostly due to memory allocation issues. Do some web research on Java and OpenVZ problems before you decide. You won't run into those problems on a KVM server, because KVM is a full hardware emulation. OpenVZ relies on a common shared linux kernel among all the VPSs on the node. KVM has more flexibility (you can run Windows, for example). That's one reason why KVM VPSs cost more.

Posted by ControlVM, 09-17-2016, 10:52 PM
OpenVZ able to handle more advanced applications such as huge multi-threaded Java applications. Large amount of processes handled by dynamic resource management. Look for any host that known not overselling and allow you to have more burstable memory. 3 ~ 4 cores is recommended if your you know your application is "heavy".

Posted by Fusion Servers, 09-18-2016, 02:02 AM
OVH has 8GB 40GB SSD and 2 cores for 13.49 USD. They run on KVM as well, so it should suit your needs.

Posted by net, 09-19-2016, 05:16 AM
What do you expect from your low budget? Remember that using VPS doesn't mean you can run heavy application already because provider might still kick you out if found using high resources.

Posted by SkylakeDC, 09-19-2016, 02:59 PM
You cannot make any kernel level modifications with the OpenVz. and the biggest disadvantage is VPS provider can do over selling. I think you need more memory for java. KVM is ideal for Java . You need more momory for tomcat .

Posted by Tech-Hosts Team, 09-20-2016, 08:08 AM
I wouldn't advise going down the OpenVZ route for a java application, as others have said the resources aren't guaranteed and you could run into memory issues, especially if the host is overselling the service. I'd recommend going with KVM, what sort of CPU are you after, disk size? You will struggle to get 3GB of ram and 2 CPU for that price in europe.

Posted by MarioPL98, 09-20-2016, 01:35 PM
I just tried some free test of OpenVZ server and I couldn't even install default-jre and lxde (ye, some apps need to use gui) because of fuse error. Now i'm sure that I will never use OpenVZ again. Thanks for all answers.

Posted by SenseiSteve, 09-20-2016, 01:54 PM
Now that OpenVZ is out of the picture, have you revised your budget to be more in line with KVM?

Posted by MarioPL98, 09-20-2016, 02:10 PM
15 USD is actually enough for 4GB KVM in Poland. The guy said that "our openvz vps are very fast and good" then I asked if I can test. He agreed. I logged in and out after like 10 min. All I tested successfully was ping lmao. TBH not that bad with server in France. About 40-50 ms. Also my ISP is a bit ******. I wouldn't even need to get VPS if I had at least 10 Mb/s upload (0.9-1.1 currently).

Posted by Adrian Andreias, 09-20-2016, 03:11 PM
Many have already said it: running Java in OpenVZ will give you headaches with default config. This is caused by the way OpenVZ reports used virtual memory. You can probably tweak configs in OpenVZ as well with the provider's support (some configs need to be done on the node). But it's just straight forward with no surprises to run Java in KVM.

Posted by smallbudgethosting, 09-23-2016, 01:00 AM
look for a cheap dedicated server. kimsufi, budgetvm, there are dozens more that would do better than getting a virtual machine.

Posted by Meekrokun, 09-23-2016, 01:04 AM
OpenVZ has a pretty bad reputation for performance -- most good VPS providers these days rely on KVM (like DigitalOcean) or Xen (like AWS EC2). KVM and Xen both has a strong reputation for performance, you should do well with either one. However, with any VPS, you are sharing a host machine with other users and might be penalized if you overuse resources. If your VPS host either throttles you or cancels your account, be prepared to switch to a dedicated server.

Posted by Roilan, 09-24-2016, 09:04 AM
Just go straight ahead with KVM. It might cost more overall but you'll save yourself headaches later on.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
how do i resell? (Views: 597)
thanks 2GB hosting (Views: 614)
Hostgator or Kualo (Views: 557)