giltene / jHiccup

jHiccup is a non-intrusive instrumentation tool that logs and records platform "hiccups" - including the JVM stalls that often happen when Java applications are executed and/or any OS or hardware platform noise that may cause the running application to not be continuously runnable.
Other
677 stars 92 forks source link

Add option to create log in CSV #4

Closed scotte closed 10 years ago

scotte commented 10 years ago

This would lower the barrier of entry in parsing the data with scripts (i.e. plotting the series in R would be trivial). I'll look at implementing this myself if I can get some time - if so, you can expect a pull request coming your way.

otisg commented 10 years ago

Q: who is responsible for rotating (and compressing and keeping last N and deleting) old log files? If something like logrotate does this, does jHiccup keep logging to the specified file?

giltene commented 10 years ago

A: jHiccup [currently] makes no attempt to rotate files or compress them. This can probably be added as an option, although at ~20K lines per day (with the default 5 seconds reporting interval), it's not a big issue on most current systems.

otisg commented 10 years ago

Thanks @giltene . Right, so what happens if something else truncates or moves the log file? Does jHiccup.... hiccup? Does it keep writing to the moved file? Does it create a new file with the same old name? Does it stop writing to the truncated file? That's kind of what I'm wondering. I think it's important..... because sooner or later one will have to do something with that log file. :)