Loading views...
vscode remote server 최적화

vscode remote server 최적화

Date
Date
2020 Jan 14 0:0
Created by
Created by
Seonglae ChoSeonglae Cho
Created time
Created time
2023 Feb 28 12:39
Last edited by
Last edited by
Seonglae ChoSeonglae Cho
Last edited time
Last edited time
2023 Apr 15 16:56
Refs
Refs
linux cent server 최적화
ansible 성능 최적화
 
 

cent server 최적화


메모리랑 cpu usage 볼려고 htop 설치
 
htop
Linux Check Memory Usage - nixCraft
in Categories Linux How do I check used and free RAM memory usage under Linux operating systems using command line and GUI tools? Linux comes with different set of commands to check memory usage. The free command displays the total amount of free and used physical and swap memory in the system, as well as the buffers used by the kernel.
Linux Check Memory Usage - nixCraft
 
 
notion image
근데 범인은 vscode... 이래서 putty 쓰는건가?
 
 
notion image
process id 는 2개밖에 없는데 어마어마하게 mem cpu 둘다 먹고 있음
 

이걸 종료할 순 없으니.. (종료시켜보니 연결이 끊기더라) 아마 최근에 root에 생기던 놈들도 이거 탓인듯

 
 
excessive 하게 먹는 녀석이 watcher service 즉 루트인데
  • 메모리 alloc fail 도 이녀석때문인듯
notion image
notion image
  • 확실하진 않지만 이래서 php lint 에러도 발생한듯
 
해결법은 다같이 root는 좀 그렇고 작업디랙토리만 켜고, 간단한 작업은 putty 로 하자는거
 
Join conversation
Join conversation
 
본질적 해결
VSCode Remote Development
했음!! watcher 수 os안에서 줄임
 

우분투


앤서블을 하다보면 패스워드 입력이 잦고 host 설정이 잦다
자동으로 하거나 host 를 입력받는 방법은
 
  • 아래에 다른 내용들도 정리해두었다
 
Linux expect로 script나 command에 패스워드 자동 입력 처리 하기
Ansible로 배포 스크립트를 만드는데 일부 작업에서 사용하는 모듈과 스크립트들이 종종 prompt로 패스워드나 이런저런 의사를 물어보는 경우가 있다. 한두번이야 대충 적당히 입력해 주겠는데 배포해야할 서버가 늘어날수록 여간 귀찮은게 아니다. 그래서 자동입력을 어떻게 해야하나 찾아보니 expect란 애를 쓰면 해결이 된다고 한다. $ apt-get install expect # 간단하네! (맥은 brew....)
Linux expect로 script나 command에 패스워드 자동 입력 처리 하기
 
 
 
 
 
 
 
 
 
 

Recommendations