-
Notifications
You must be signed in to change notification settings - Fork 460
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
High RAM consumption #969
Comments
Which file (filetype) are u editing and what server(s) are u using? |
My project. Similar to TI's SDK source code. Use c to write. and used lsp |
Thanks for the info! Can you provide more information regarding the memory map of that process? Those given by pmap(1) and |
close for inactive |
Sorry, I'm too busy with work recently and don't have time to reply. Can you still help me investigate? |
The map information is as follows
|
Looks like the problem comes from here: 7f2e2abf1000-7f2e9abf2000 rw-p 00000000 00:00 0 Some simple calculations yield: size: 1879052288 B [OR] 1879.052288 MB [OR] 1.879052288 GB
perm: [R]ead, [W]rite, [-]Execute, [P]rivate
(*) source: Not mapped from a file (offset=dev=inode=0)
(*) nature: Anonymous mapped regions (blank for pathname) So this region is probably created by |
Can you tell me which codes may cause this problem? I will solve this problem based on these codes. |
Well actually this is where the problem kicks in - we have no idea where this region was mapped to (that's why it's called an "anonymous mapped region") unless u can provide detailed information (content) of this region. |
completely random guessing here. it seems like u installed nvim via snap, can u try install nvim with other methods? |
I didn't install it using snap. I'm using appimage. |
I would like to know if the insane ram usage is from nvim itself or the plugins. u can open 3 terminals: |
When I rm lsp.log and reopen nvim, 13k lsp.log is generated |
The memory is normal when nvim is just opened. It gradually becomes larger during use. I can try to reproduce it again
|
maybe try fix this issue? other lsp.log errrors looks fine, and yeah, the ram usage looks fine from the |
Okay, I will try to fix the clang error and continue to see if it is resolved. |
But I only enter this one command, why are there two processes? |
the short answer is the if u use process monitor tool like btop and enable tree view, u'll see the relation between two processes. |
Long answer: neovim/neovim#10071 (or neovim/neovim#18375) |
So can I close it now? |
I think we're still missing some information (mainly a reliable repro / memory map) from the author. |
this might provide some insights. |
close 'til further info is provided. |
Version confirmation
Following prerequisites
Neovim version
NVIM v0.9.1
Operating system/version
ubuntu 22.04
Terminal name/version
bash
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
How to reproduce the issue
Expected behavior
Actual behavior
如果长时间开着nvim,内存会越来越大,不会见效,最高达到了3G,我不知道怎么查看具体内存消耗在那里,可以协助解决一下么
Additional information
No response
The text was updated successfully, but these errors were encountered: