Youcompleteme: Multiple ycmd server instances: one per Vim instance

Created on 20 Jan 2014  路  5Comments  路  Source: ycm-core/YouCompleteMe

I am getting a new ycmd server instance for each Vim instance.

Is this expected behavior?

According to https://github.com/Valloric/YouCompleteMe/issues/595#issuecomment-26633839 there shouldn't be, but it is not clear as this is meant to be per Vim instance or across all Vim instances.

Most helpful comment

@Valloric what happened regarding this issue? I also use Tmux workflow and I start my day with 36 instances :(

kalbasit@zeus ~/.dotfiles [master *] 卤 % pw YouComplete | wc -l
36

All 5 comments

I am getting a new ycmd server instance for each Vim instance.

Is this expected behavior?

Yes, it is. You are misunderstanding the comment you are referencing. If you have only one Vim instance open, there should be only one ycmd open; if you have 5 Vims, you'll have 5 ycmds.

@Valloric
Wouldn't it be possible to re-use them?

I often end up with multiple (up to 10) different instances, and then having a separate ycmd process for each of them is quite nasty.

This would really be a useful feature. My workflow includes tmux - quite often happens that I have multilple vim instances open and memory usage is going through the roof when there are multiple ycm servers running (that is, when I am in directories with huge tag files especially)

@Valloric
Please re-open this issue and consider it a feature request.

@Valloric what happened regarding this issue? I also use Tmux workflow and I start my day with 36 instances :(

kalbasit@zeus ~/.dotfiles [master *] 卤 % pw YouComplete | wc -l
36
Was this page helpful?
0 / 5 - 0 ratings