OpenVZ Forum


Home » General » Support » Java
Java [message #47385] Wed, 08 August 2012 22:04 Go to next message
dalawh is currently offline  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
xaxaxa is currently offline  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.
Previous Topic: Using NAT for container with private IPs
Next Topic: OpenVPN inside Container
Goto Forum:
  


Current Time: Thu Sep 12 14:17:10 GMT 2024

Total time taken to generate the page: 0.08894 seconds