When a wesbpher application server is running. it basically is running one JVM. Now if I deploy two EAR projects on the WAS, do these two EARS share the same JVM. Yes they do I guess.
But then my question becomes do these two EARs also share the same heap space? My guess is no, but how is that possible? One jVM will provide only one heap,right?
For the purpose of simplification, let us say there is just one WAS....no nodes and clusters.
Yes, the two EARs running in the same Application Server share the same heap space. As you say, because they share the same JVM.