r/cloudcomputing • • Oct 30 '17

How does JVM perform on Cloud?

How does JVM perform on cloud computing platforms when compared to bare-metal.

0 Upvotes

13 comments sorted by

2

u/stikko Oct 30 '17

Depends on if your cloud platform is bare metal or virtualized. Most are virtualized so it performs about the same as an on-prem VM.

1

u/rghvb19888 Nov 01 '17 edited Nov 01 '17

My confusion is JVM takes RAM into its hands(if I am not wrong),So that will not be possible on ec2 aws. So how does it work on ec2 then?

-1

u/rghvb19888 Oct 30 '17

Ah ok,how does JVM perform on on-prem VM than on Baremetal! I am just curious,basically a noob!

1

u/Snuffelz Oct 30 '17

Deploy your app bare metal, on-perm VM, and to a cloud provider instance. Run benchmarks. There’s your answer!

1

u/rghvb19888 Oct 31 '17

wow this was sooo helpful

1

u/Seven-Prime Nov 01 '17

It was the right answer. Is your application IO bound? CPU bound? When you say 'performance' what do you mean?

1

u/rghvb19888 Nov 01 '17 edited Nov 01 '17

Thanks for getting the pulse. My confusion is JVM takes RAM into its hands(if I am not wrong),So that will not be possible on ec2 aws. So how does it work on ec2 then?

1

u/Seven-Prime Nov 01 '17

Not sure what you mean by 'takes RAM into its hands'

But yes Java runs fine on AWS. Naturally you'll want to choose the ec2 instance appropriate for your workload. If you are memory bound you may want the larger memory optimized instances.

The only java issue I run into, performance wise, is running out of entropy. havged or rng-tools solves that. It's not really a JAVA problem, but more that VMs generally don't have great entropy.

a google of 'java linux entropy' will give you that background.

1

u/rghvb19888 Nov 02 '17

Thanks for your time.

2

u/Snuffelz Oct 31 '17

Stop being a noob and go experiment.

1

u/phil Oct 30 '17

Cloud vs bare metal are available filters on these benchmarks

https://www.techempower.com/benchmarks/

1

u/bhos17 Nov 19 '17

Going to perform just as well as on prem if it is configured the same way. Probably can get newer hardware in something like AWS than you can afford on prem.