mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

Tmux has started loading slow #70

Closed 58bits closed 6 years ago

58bits commented 6 years ago

Great project - so thanks a lot.

Not sure what caused this, but something over the past few days has caused tmux to load slowly. It's taking about 6-7 seconds for tmux to start (tmux 2.5).

The default windows Ubuntu install (Windows Fall Creators Update, and Ubuntu from the Windows Store), and the same tmux executable and conf files loads fast (less than a second).

Any tips or suggestions on what might be causing this, or how I might diagnose it further?

58bits commented 6 years ago

After removing the .tmux.conf file as well as local settings, tmux loads fast again. With the tmux configuration I'm using from here... https://github.com/gpakosz/.tmux and starting tmux -v - I get the following in the top of the tmux-client.log file....

1513001159.890735 on Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014; libevent 2.0.21-stable (poll)
1513001159.890827 socket is /tmp/tmux-1000/default
1513001159.890876 trying connect
1513001159.890944 connect failed: Connection refused
1513001159.890989 lock file is /tmp/tmux-1000/default.lock
1513001159.891617 flock succeeded
1513001159.891666 got lock (6)
1513001159.891706 trying connect
1513001159.891754 connect failed: Connection refused
1513001159.894670 add peer 0x1cd2a80: 7 ((nil))

So the delay appears to be caused by the client having to retry to connect to the server, before it eventually succeeds. The tmux-server.log file is over 2MB - so not pasting here.

Also the slow load is also present in WSL Ubuntu - so this is not a wsl-terminal problem.