-1

Possible Duplicate:
Can you help me with my capacity planning?

If CPU and RAM on a production host allows more than one JVM (server instances) to run in parallel (to build server farm). How do you arrive at optimal number of JVM processess? What type of "scaling" it is?

Nitin Gaur
  • 33
  • 3

1 Answers1

0

Usually with the JVM you stop when you run out of RAM, or when the heap is squeezed enough that your CPU is thrashed from all the futile garbage collection.

This kinda counts as "scaling out", but you should really be careful. One out of control JVM can and will bring down every JVM on the server. Consider virtualization instead.

Shane Madden
  • 112,982
  • 12
  • 174
  • 248
  • How? JVMs have maximum heap sizes, so (a) how do they get 'out of control' and (b) how do they bring each other down? – user207421 Jul 26 '12 at 06:56
  • @EJP As I mentioned, CPU thrashing from garbage collection is the main cause that I observe. It can seriously impact other processes when RAM is tight - not just starving other java processes of resources, but the operating system itself. The leap second bug a few weeks back and its effect on JRE processes on Linux systems provided another great example of JVMs going out of control and making the host OS and everything in it unresponsive. – Shane Madden Jul 26 '12 at 16:11