-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hledger-ui --watch not working on GNU/Linux #836
Comments
It is working for me with hledger-ui 1.15, hledger-ui 1.15.2 on Ubuntu 16.04, and 244 input files, on a gocryptfs mount where filesystem watching (inotify) does not even work in Intellij. So I'm surprised. HOWEVER, hledger-ui quickly OOMs after steadily increasing its memory usage over a period of a few minutes. I have 8 gigs of RAM, and before it died the process was beyond 4G RSS. When I don't use |
Thanks for the report @lestephane ! I usually see CPU usage creeping up over time, but not this. It would be great to fix this, would you be able to help narrow it down ? Eg compare it on a normal filesystem, with fewer files, etc. (244 files is cool, how do you have that many ?) |
I have many files because for certain accounts I use one journal per day (.timeclock files, pricing for forex pricing pairs). And I use hledger-flow which a) generates quite a few includes b) encourages the 1 1 file / account / month paradigm. So if I have, say, 30 accounts, I'll end up with 30 more files each month. I'll try to isolate the memory behaviour, and file a separate issue if i uncover something. A small manual test confirms that watching does not work for
So I'm still stumped. Are you familiar with the linux OS mechanism used by haskell to spot these file changes, maybe I can trace filesystem events, because |
Thanks for the info. Two quick ideas:
|
--watch does work when I run on my many files.
I’m confused.. it works some times ?
|
yup. I'll try with --debug and report the second i get the chance |
@simonmichael I did a hledger-flow import test just now on a subset of my journals with
If I then revert one of my change it works as well, and the log says:
I'm still on a gocryptfs mount, which is a FUSE filesystem which seems not to (or to only partially support) fsnotify. I'm generally confused about fsnotify vs inotify, and reading this makes my head spin, so I don't think I can add much to this, just that it does work for me. Not much help I know. |
Could this $ cat /etc/sysctl.conf
...
# added by Insync
fs.inotify.max_user_watches=1048576 Could anyone else try it and see if it helps with (Note: I also had to increase |
As reported on reddit, hledger-ui --watch is not updating as it should with latest hledger-ui 1.10 on GNU/Linux (seen on Arch and Ubuntu). It works for me on macos. Status on windows, and of hledger-ui 1.9, is unknown.
The text was updated successfully, but these errors were encountered: