-
Notifications
You must be signed in to change notification settings - Fork 207
Memory characteristics questions #412
Comments
I have the same problem, a simple stack project with two executable (several hundreds of LOC in total), the memory goes up to 4~5 GiB over time and CPU goes up to 40%~60% regularly, make the OS unusable, had to uninstall. |
I can confirm this as I am having the same issue here. As memory grows, there is heavy CPU usage allocated by |
There is at least one memory leak in GHC itself which causes memory usage to rise over time. It is possible there are more in HIE too. We have not been able to track this down yet, though. |
I am experiencing high memory usage as well on Fedora 27. I am using VS code (because it seemed like the recommended editor for HIE) and I cannot get HIE to use less than 700 MB of RAM, and I've seen it exceed 8 Gigs. |
For those having issues with high memory usage: You can use bash wrapper for HIE to set some memory limits with RTS flags. It just crashed (VSCode plugin restarts it automatically) when the limit is reached. Not a solution, but at least prevents from reaching the stage at which it makes my OS unresponsive. #!/bin/sh
export HIE_SERVER_PATH=`which hie`
if [ "X" = "X$HIE_SERVER_PATH" ]; then
echo "Content-Length: 100\r\n\r"
echo '{"jsonrpc":"2.0","id":1,"error":{"code":-32099,"message":"Cannot find hie.exe in the path"}}'
exit 1
fi
hie +RTS -c -M4G -K4G -A16M -RTS --lsp $@ |
Related issue: #580 |
I have a machine with 8 GB of memory in total and having HIE consume 50% or more makes it unusable. Therefore, I'd argue that before moving onto implementing more new or fixing existing functionality, fixing this memory usage is a high priority. People won't be using HIE at all if it keeps on bringing their machines down. This is what
Let me know if I can provide any debugging information. I'd be happy to help. |
I've got a medium-small (33kloc) codebase that I'm working on and HIE along with its child processes are currently sitting at about 13GB of RAM, which along with firefox is nearly pegging both my main RAM and my swap. I'd also like to pile on this issue, since it's basically making HIE unusable for me without frequent restarts I'm happy to run some memory profiles as well over the weekend, but unfortunately can't share the codebase |
Memory profiles would help we have not taken time to characterise it yet |
I have a stack project, which defines a bunch of simple executables (~20). I use atom with atom-ide-ui as a client to hie. Now hie's memory usage starts out quite normal (~150MB), but as I open more of the executables source files the memory usage shows an alarming growth rate reaching over 2GB of usage when most of them are opened and after a while it can more than double that again (What activities increase the memory usage is a little unclear, but the usage increases over time (not indefinitely, but enough to force me to allocate more memory for my vm)). If I close some of the open files the usage drops again.
It isn't a problem per se (The benefits are worth the cost), but it does make me wonder:
The text was updated successfully, but these errors were encountered: