貼文討論:關於Vscode remote ssh爆記憶體問題


留言回覆:我是用 vscode 但我沒有用 remote ssh 上網查了一下,國外滿多人也有同樣困擾,如果是我,會嘗試兩個方向 ## 1. 使用舊版 vscode https://github.com/microsoft/vscode/issues/151205 這位用戶,就是直接用舊版,問題就緩解了 我會隨便挑幾個舊版本,試試看,效能有沒有改善 https://code.visualstudio.com/updates/v1_74 這邊有各種版本,都可以點擊下載 不是什麼好方法,但可以試試看 ## 2. 嘗試這邊的一些調整 https://github.com/microsoft/vscode-remote-release/issues/7825 這位用戶,分享他的一些調整,說是有效果,參考看看 - Increased the MEMORY of the VM from 1024 to 2048, i guess it needs more memory on the VM side too. - Removed .vscode-server directory inside home dir of the VM (Remote server), it creates it first time you add a remote ssh connection inside VS Code on your local Machine (Mac) - Reinstalled the ssh extensions on the VS code on the host machine (Mac) - Removed a WSL extension from the VS code on host machine (Mac) (not sure why it was installed, probably automatically) 也就是清空一些設定、重裝一些設定 也不是什麼好方法,但可以試試看 --- 那台 gcp compute engine 是比較小台的,CPU 跟 RAM 比較小,對嗎? 實在無法的話,可能考慮升級大一點的機器,花錢消災這樣 😅 以上,順手研究,簡單分享


感謝回覆 稍微試過討論串中提及還算正常的1.66版,發現吃佔資源差不了多少。 現在記憶體用到4G,在執行build佈署時還不至於死機,萬幸。 但如果有人要連進來協作可就要更大了

不過這就讓我好奇,請問一般各位是如何開發Linux下的app?如果不用remote ssh的話,WSL嗎?


此人尚未填寫簡介。