• Post Reply Bookmark Topic Watch Topic
  • New Topic

Solaris OS Information  RSS feed

 
david leetch
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a Java program is there a way to obtain information about the health of the server and the operating system. I am creating a program to report on the health of a application running on a Unix server. Besides determining the health of the application, which I know how to do, I would also like to know how the server in general is doing, i.e. cpu usage, free memory, swap space, etc.
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use Runtime.getRuntime().exec to execute top
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!