• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get RAM size with Java  RSS feed

 
Gannarapu Rajesh
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can we get the RAM size of the System?

Thanks in advance,

Rajesh Gannarapu
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no pure-Java way to get the total RAM installed in the system. You need to use platform-specific code, perhaps utilising JNI. If you Google for it, you'll probably find ready-made third-party libraries for this.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!