0

我们实现了一个仅在 Windows 上可用的服务器应用程序。现在我们也喜欢将它移植到 Linux、HP-UX 和 AIX。此应用程序通过性能计数器将内部统计信息提供到 Windows 性能监视器中。

更准确地说:应用程序是一个数据库,我们喜欢向管理员提供连接用户数或执行请求数等信息。所以这些是我们应用程序专有的“新”信息。但我们希望它们在操作系统提供 CPU 等信息的相同环境中可用。目标是使它们易于管理员阅读。

Linux、HP-UX 和 AIX 下合适且常用的性能监视器是什么?

4

3 回答 3

1

Management is where most OSes depart from one another. For this reason there are not many tools that are common between all the OSes.

Additionally, Unix tools follow the single process single responsibility idiom where one tool gets cpu info, another gets memory etc.

The only tool i have seen in the Unix world that gets all this info in one place is top. Almost all sys admins are familiar with this tool and works on all the flavors of OSes you are interested in. It also has the additional advantage of being open source. You could simply extend this tool to expose the counters you are interested in and ship it along with your application.

Another way to do this might be to expose your counters through SNMP and leave it to some third party SNMP tool like HP open view that can collect and present a consistent view along with other management info. This might be a more enterprisy solution, which might appeal to the marketing folks.

I would also say its a good idea to write a standalone console tool that admins can use from their custom home grown scripts (there are many firsm out there with super human admins / over paid it staff that does this).

All together would be a healthy solution for your requirement i think.

于 2008-09-22T15:27:45.643 回答
1

我会说:这取决于您要监控的性能。使用 CPU 时间?空闲内存?磁盘IO?冰箱里的啤酒数量...

但不管怎样,您都可以查看 /proc 下的任何文件。我不确定 HP,但至少 Linux 和 AIX 应该有那棵树(如果它在内核编译时没有被停用)。

于 2008-09-22T06:53:08.690 回答
1

用于此类数据的最标准的 unix 工具是 *stat(iostat、vmstat、netstat)工具和 sar。在 Linux 上,您可以在 /proc 中找到所有这些信息,但大多数 Unix 没有 /proc 很好地填充您要查找的内容。上述工具非常标准化,可用于收集您需要的数据。

于 2009-05-03T13:09:40.620 回答