This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

load factor /load balancing of server

 
j krishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any java program to find out the load factor
load factor depends on memory , cpu usage etc etc.
or how will u calculate load factor of a server is there any general formula

 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I'm aware of. Of course, there are the Runtime methods freeMemory() and totalMemory(), but those only give a portion of the picture you're looking for. Since this sort of info is very platform-specific, you probably need to query the OS using Runtime exec() and an appropriate command to the OS. Good luck...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic