The problem is using JVM without understanding some basic properties of it. Scaling is a matter of how you programmed it, not the language used.