[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail is reading already rotated file.
From: |
최종우 |
Subject: |
Re: tail is reading already rotated file. |
Date: |
Tue, 3 Feb 2015 16:26:13 +0900 |
tail doesn't release any watch descriptors watching already rotated files except for file deletion. Does it?
In my case, the number of opened watch descriptors exceeded a value of /proc/sys/fs/inotify/max_user_watches and tail was opening a renamed file.
I've tested the following steps.
1) cat /proc/sys/fs/inotify/max_user_watches
2) log files are generated and tail -F the latest log file.
(The number of log files exceeds max_user_watches and tail doesn't print any output to stdout.)
3) ls -l /proc/pid/fd
(tailing already rotated file. It seems that tail couldn't keep track of the lastest file because of a shortage of watch descriptors.)
And I think that the latest revison of tail has the same issue. May I ask you the reason why you don't release watch descriptors for renamed files?
- Re: tail is reading already rotated file.,
최종우 <=