-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Continuously run powershell to get disk free space #4328
Conversation
Free disk space monitoring on Windows, again 😢 |
77ca333
to
9374edc
Compare
Marking as a draft again, I just thought of something. |
c49fc80
to
1880a0a
Compare
Here's how I built the windows packages from Linux:
I had to use Then, extract the zip file and start up RabbitMQ. In powershell, I did this: Config file:
Commands:
In the interactive Erlang terminal, you can run the following to see that the free disk space has been retrieved:
You can bring up a program like Task Manager or Process Explorer to see the running powershell instance: Go ahead and kill it and you will see it be restarted. |
Much faster than starting it every time. Fixes #4140 Take noeol into account
1880a0a
to
f56c844
Compare
I tested this branch on a Windows 10 and it worked as advertised. Killing the PowerShell process also worked and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done! This is really cool
Continuously run powershell to get disk free space (backport #4328)
Thanks @dumbbell for the review! |
@dumbbell @michaelklishin my next step was to look into
AHA! Much better than Powershell. It uses a port program called https://github.com/erlang/otp/blob/master/lib/os_mon/c_src/win32sysinfo.c Expect an updated set of changes for free disk on Win32. |
@lukebakken @michaelklishin is this PR (and #5241) planned to be merged into |
Much faster than starting it every time.
Fixes #4140.
Update: this has been superseded by #5241.