0

My servers hung, and after a restart it showed me that my hard drive was full (Windows Server 2008). I looked into the problem and it was a 189 GB Tomcat log file!

To find out the cause for the crash, seeing the last 100 lines of the file would be enough.

Is there a quick way to do this?

2
  • 2
    Which version of Windows? Do the solution suggested in Windows XP equivalent of “tail -f”? help?
    – Dennis
    Feb 7, 2013 at 17:35
  • if it is that big I imagine it is being written to quite frequently. Just delete it then read what it writes new.
    – EBGreen
    Feb 7, 2013 at 17:44

2 Answers 2

2

Tail for Win32 is a GUI tool that can be used to monitor changes to a log file in real time.

screenshot

1
0

You need to set up the log to rotate. As of right now, your log is just constantly appending to the end, which is causing it to grow constantly. There is a solution on the Stack Overflow website which you might want to try.

3
  • I do have log file rotation per day, but for somehow, only that day the file goes huge (usually 300k)
    – Yichaoz
    Feb 7, 2013 at 17:49
  • did you examine the log file to see what was causing it to fill up?
    – Keltari
    Feb 7, 2013 at 17:55
  • that's what I want to do :)
    – Yichaoz
    Feb 7, 2013 at 17:57

Not the answer you're looking for? Browse other questions tagged .