首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

服务器性能监控神器nmon使用介绍

Nmon (Nigel’s Monitor)是由IBM 提供、免费监控 AIX 系统与 Linux 系统资源的工具。该工具可将服务器系统资源耗用情况收集起来并输出一个特定的文件,并可利用 excel 分析工具(nmon analyser)进行数据的统计分析。 搜索下载nmon,上传到服务器解压。我用一个比较老的版本给大家演示一下。解压完有nmon16e_x86_rhel65,和nmon analyser v34a.xls。 nmon16e_x86_rhel65前面是可执行文件,会生成监控文件,监控文件里面就是采集的服务器硬件指标,后缀是.nmon。 nmon analyser v34a.xls用来将这个监控文件转化为容易读的Excel表格,带有图表。 这个工具启动后自动后台运行,可以长时间采集硬件指标,适用于采集一段时间,例如采集几天,然后汇总对比分析性能的场景。 通过分析硬件资源的占用变化原因,是会有很多新的发现,使我们对系统的掌握更加透彻。 启动nmon的命令如下 ./nmon16e_x86_rhel65 -f -s 10 -c 999999999 -m ./ 若首次执行失败提示Permission Denied,执行 chmod +x nmon16e_x86_rhel65 即可。 参数解释: -s 10 每 10 秒采集一次数据。 -c 999999999 采集 999999999 次硬件数据,表示我要长时间采集 -f 生成的数据文件名中包含文件创建的时间。 -m 生成的数据文件的存放目录为当前目录。

01

python 媒体文件播放 脚本

""" ################################################################################## Try to play an arbitrary media file. Allows for specific players instead of always using general web browser scheme. May not work on your system as is; audio files use filters and command lines on Unix, and filename associations on Windows via the start command (i.e., whatever you have on your machine to run .au files--an audio player, or perhaps a web browser). Configure and extend as needed. playknownfile assumes you know what sort of media you wish to open, and playfile tries to determine media type automatically using Python mimetypes module; both try to launch a web browser with Python webbrowser module as a last resort when mimetype or platform unknown. ################################################################################## """

02
领券