Skip to content
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

Starts many jedi jobs and high memory usage over time #10

Closed
xiamaz opened this issue Oct 25, 2018 · 2 comments
Closed

Starts many jedi jobs and high memory usage over time #10

xiamaz opened this issue Oct 25, 2018 · 2 comments

Comments

@xiamaz
Copy link

xiamaz commented Oct 25, 2018

ncm2-jedi uses large amounts of memory (1-2GB) after getting new completions on python files.

Usage description

I observe this behavior with completion on a script using matplotlib, pandas, numpy. The used amount of memory increases with receiving more completions and will remain static if no completions are obtained.

Observations

A large number of ncm2_jedi and jedi jobs are visible in htop, all of them started by same ncm2_jedi parent job.

System setup

Archlinux with python 3.7.0, python-jedi 0.13.1-1, neovim 0.3.1-1, python-neovim 0.2.6-2.

Minimal vimrc for reproduction

call plug#begin()
"" Neovim configuration
function! DoRemote(arg)
        UpdateRemotePlugins
endfunction
" Autocompletion
Plug 'roxma/nvim-yarp'  " nvim framework
Plug 'ncm2/ncm2'
"" NCM Completion sources
Plug 'ncm2/ncm2-jedi', {'for': 'python'}
call plug#end()

" ncm2 completion manager settings
" enable ncm2 for all buffers
autocmd BufEnter * call ncm2#enable_for_buffer()
" IMPORTANTE: :help Ncm2PopupOpen for more information
set completeopt=noinsert,menuone,noselect
set shortmess+=c  " hide some messages
inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>")
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
@xiamaz xiamaz changed the title Starts many jobs and high memory usage over time Starts many jedi jobs and high memory usage over time Oct 25, 2018
@Helvethor
Copy link

I observe the same behaviour.
Regularly closing vim helps but it is clearly annoying.

@roxma
Copy link
Member

roxma commented Jan 20, 2019

duplicated #1

@roxma roxma closed this as completed Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants