pv - monitor the progress of data through a pipe

Posted on Thu 08 September 2011 in Linux • Tagged with Arch Linux, Linux, tools, notepad • 1 min read

I've found a very nice tool pv ...

$ dd if=/dev/sda1 | pv | dd of=backup.img
359MB 0:00:05 [75.3MB/s] [    <=>                       ]

jstat - jvm memory stats

Posted on Wed 27 October 2010 in Linux • Tagged with java, tools, linux, notepad • 1 min read

/usr/java/jdk1.5.0_22/bin/jstat -gcutil 18703 1s 10

gcutil = Summary of Garbage Collection Statistics (mandatory)
18703 = process id (mandatory)
1s = refresh interval (optional)
10 = counter (optional)

$ /usr/java/jdk1.5.0_22/bin/jstat -gcutil 25532 1s 10
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT …

Continue reading