我使用 JavaMelody 工具来监控我的应用程序,但可用的时间线设置不合适。这意味着我只想获得快速时间线的监控分数,比如 30 分钟,但 JavaMelody 的最低时间范围是 1 天。可能这个功能可以通过编写自定义插件来解决,但我熟悉那个工具 API。
JavaMelody 生成 RRD 格式的输出文件。我想将这些文件转换为更常见的格式,如 CSV,并使用 Excel 生成图表。我尝试在 Linux 下使用 'rrdtool dump' 命令,但没有任何效果。我有如下错误:is not an RRD file
.
您知道从 RRD 转换为 CSV 的任何解决方案吗?
更新
adam@adam-desktop:/tmp/javamelody/car-rental_adam-desktop$ rrdtool dump usedMemory.rrd > filename.xml
ERROR: 'usedMemory.rrd' is not an RRD file
adam@adam-desktop:/tmp/javamelody/car-rental_adam-desktop$ rrdtool dump usedMemory.rrd > filename.csv
ERROR: 'usedMemory.rrd' is not an RRD file
我的 *.rrd 文件是由JavaMelody
工具生成的,因此我认为已正确保存。
更新 2
00000000 00 4a 00 52 00 6f 00 62 00 69 00 6e 00 2c 00 20 |.J.R.o.b.i.n.,. |
00000010 00 76 00 65 00 72 00 73 00 69 00 6f 00 6e 00 20 |.v.e.r.s.i.o.n. |
00000020 00 30 00 2e 00 31 00 20 00 00 00 00 00 00 00 3c |.0...1. .......<|
00000030 00 00 00 01 00 00 00 08 00 00 00 00 4f b9 47 0f |............O.G.|
00000040 00 75 00 73 00 65 00 64 00 4d 00 65 00 6d 00 6f |.u.s.e.d.M.e.m.o|
00000050 00 72 00 79 00 20 00 20 00 20 00 20 00 20 00 20 |.r.y. . . . . . |
00000060 00 20 00 20 00 20 00 20 00 47 00 41 00 55 00 47 |. . . . .G.A.U.G|
00000070 00 45 00 20 00 20 00 20 00 20 00 20 00 20 00 20 |.E. . . . . . . |
00000080 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 |. . . . . . . . |
00000090 00 00 00 00 00 00 00 78 00 00 00 00 00 00 00 00 |.......x........|
000000a0 7f f8 00 00 00 00 00 00 41 93 36 05 40 00 00 00 |........A.6.@...|
000000b0 41 e5 03 15 be 00 00 00 00 00 00 00 00 00 00 00 |A...............|
000000c0 00 41 00 56 00 45 00 52 00 41 00 47 00 45 00 20 |.A.V.E.R.A.G.E. |
000000d0 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 |. . . . . . . . |
000000e0 00 20 00 20 00 20 00 20 3f d0 00 00 00 00 00 00 |. . . . ?.......|
000000f0 00 00 00 01 00 00 05 a0 7f f8 00 00 00 00 00 00 |................|
00000100 00 00 00 00 00 00 00 00 00 00 00 21 41 89 70 79 |...........!A.py|
00000110 00 00 00 00 41 92 ae 5a 55 55 55 55 41 8f 9f 49 |....A..ZUUUUA..I|
00000120 95 55 55 55 41 96 43 4d 00 00 00 00 7f f8 00 00 |.UUUA.CM........|
00000130 00 00 00 00 7f f8 00 00 00 00 00 00 7f f8 00 00 |................|