Java中显示远程系统进程列表的库或jar
我正在搜索库或 jar 文件来制作系统监控程序。我发现Java提供了jConsole,但我需要一些其他jar文件名。 实际上我正在制作一个网络服务,其中我有远程计算机的IP地址和端口号,并且基于此我需要该计算机的系统进程列表,并且我将从谷歌应用程序引擎调用该网络服务,该服务将显示整个进程列表。所以我需要 jar 文件的名称,我可以将其放置在服务器上,并为我提供进程列表。
I am searching a library or jar file for making a system monitoring program. I found that Java provides jConsole, but I need some other jar file name.
actually i am making a web service in which i have ip address and port no of remote computer and based on that i need a system process list of that computer, and that web service i will call from the google apps engine that will display the whole process list. so i need name of jar file that can i place on server and that give me the process list.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
鉴于您没有提供太多信息,有点难以理解您在寻找什么。听起来您可能对 JMX 感兴趣。
It's a bit hard to understand what you are looking for, given that you din't provide much information. It sounds like you might be interested in JMX.
我以前构建过这样的系统,JMX(java管理扩展)非常有用。
示例和教程:
您可以在要监控的计算机上安装小型代理。这些将收集信息并将其推送到主监控服务器,或者监控服务器将在需要时从这些受监控的客户端提取数据。
您还需要一个数据库来存储您正在监视的计算机节点上的哪些属性。您可以使用 xstream 序列化属性,这会从 java 对象创建 xml,反之亦然。您可以将这些存储在数据库中。
可以通过在受监控的机器上创建 bean 来监控属性。
您可能还想尝试 Nagios - 商业解决方案。
没有任何 jar 文件可以免费获得并将其添加到您的项目中(至少我现在不知道)。
I've built such a system before and JMX (java management extensions) was very useful.
examples and tutorials:
You can install small agents on the machines you wish to monitor. These will gather information and either push it to a main monitoring server or the monitoring server will pull data whenever it wants from those monitored clients.
You will also need to have a database to store which attributes on which machines nodes you are monitoring. You can serialize the attributes with xstream, which creates an xml out of java objects and vice versa. You can store these in the database.
The attributes can be monitored by creating beans on the monitored machines.
You might also want to give Nagios a try - a commercial solution.
There is no jar file that you can get for free and just add it to your project (at least none that I know of right now).