In my local and remote JBoss I set
-Xms170m
-Xmx170m
Running the same application I have :
Total Memory: 176947200
Free Memory: 136908704
in local and :
Total Memory: 176947200
Free Memory: 49516976
in remote!
The only difference is that local JBoss is 4.2.2 and remote is 5.0..
I assume you are getting these numbers from the operating system. You cannot rely on these numbers for determining Java memory usage. There are been discussions about Java memory usage in the performance forum and in other locations.