Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

OpenVZ and Java

$
0
0

Some questions: I'm looking to run a Spring/J2EE webapp under either Tomcat/Glassfish. It's a fairly heavy app, with lots of libraries in use and structures loaded into memory (session). Anyway, technicalities aside, I had the following questions about the combination of OpenVZ and Java, which, from my initial impressions, I figure is not an ideal combination. That being said,

  1. Is it possible to run Java (Tomcat/Java WebApps/Glassfish) etc. under OpenVZ? What are the issues?
  2. Is it true that Java+OpenVZ require more ram than usual? What is the minimum, 1GB?
  3. Since OpenVZ oversells memory, is it possible that the JVM will not be able to pre-allocate memory like it needs to?
  4. If it does manage to allocate the memory, is it a violation of typical OpenVZ usage terms, since OpenVZ overselling relies on a probabilistic model of many users not using the advertised capacity, but the JVM will allocate and reserve?
  5. Has anyone successfully run Java Apps (non-trivial, memory/cpu intense) under OpenVZ? What was your configuration and experience like?

I can't go Xen/KVM because offers on LEB are typically for 512MB boxes - can these run mem heavy J2EE apps? I don't think so. So I'm left with OpenVZ as a choice (say one of the Iperweb 4GB boxes), but am not sure how nicely Java will play when paired with it.


Viewing all articles
Browse latest Browse all 39981

Trending Articles