Java [message #47385] |
Wed, 08 August 2012 22:04 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
dalawh
Messages: 1 Registered: August 2012
|
Junior Member |
|
|
Can I install Java on an OpenVZ VPS?
I heard that Java performs really bad on OpenVZ. Is that true?
What are the noticeable performance disadvantages?
What is the reason for Java does not perform well on OpenVZ?
|
|
|
Re: Java [message #47462 is a reply to message #47385] |
Sun, 12 August 2012 19:19 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
xaxaxa
Messages: 11 Registered: August 2012 Location: Vancouver, BC
|
Junior Member |
|
|
Quote:I heard that Java performs really bad on OpenVZ. Is that true?
If the kernel is old(non-rhel6 based), or if the hosting provider is still using old beancounters for memory management, then yes.
Quote:What are the noticeable performance disadvantages?
It's not a performance issue, but usually if vSwap is not used, java wont start.
Quote:What is the reason for Java does not perform well on OpenVZ?
It's because the old beancounters are based on how much memory programs allocate, even if they never use it. Java tends to allocate a lot of memory on startup, but most of that memory is never used(depending on the application).
If vSwap is used, then java works fine. I'm running a few java apps on my server in an openVZ container, and I've never had issues with it.
|
|
|