본문 바로가기

네트워크 속도가 왜 이러지?! 어느날 회사에서 작업을 하시던 과장님께서 뭐가 이렇게 초당 몇십 MB씩 네트워크를 잡아 먹는지 이유를 찾고 계셨다.해당 서버에서 작업을 하지 않던 나는 크게 생각하지 않았는데 혹시나 내가 한짓이 문제인가 싶어서 구글 검색 시동 http://oracle.tistory.com/482 그래.. 구글은 검색하면 다 나와... 해당 패키지를 설치하고 명령어를 실행했더니 $iftop -i eth0 (eth0은 ifconfig를 통해 확인해봐야 함) 첫줄에 내가 작업하는 서버의 IP가 초당 수십 MB를 처먹는 것을 발견...결국 내 작업으로 내부 네트워크가 느려지고 있었다 ㅎㅎ;; 바로 작업을 종료하고 과장님한테 확인을 해보라고 말씀을 드렸고 퇴근 시간에 작업하겠다고 했다.아래는 해당 명령어를 실행시 나오는 것들아이.. 더보기
CentOS 메모리를 왜이렇게 잡아 먹어?! 1. Top 명령어로 확인을 해보니 Memory의 used 상태가?! 메모리를 쓰는 프로세스가 없는데 used가 32G라니... 2. 구글 검색은 대학 커리큘럼에 넣어야 합니다. 검색을 해보니 이런 포스팅을 발견했다http://tigerbum.tistory.com/44 바로 확인을 해보자. free -g (난 메모리가 크니깐 -m 메가따윈..) cache free가 29G.. swap가 15G... ㅎㅎtop 명령에도 cached 항목이 있다.. 좀 오래된 자료긴 하지만 읽어두면 좋은듯...https://www.hancom.com/faq.faqOpscsolutionView.do?listReset=&faqcd=007&sch_default_depth_1=007&sch_depth_1=007&sch_depth_.. 더보기
Node Express를 이용한 Cookie Set express 4.x API Reference 참고- http://expressjs.com/en/4x/api.html0. Header Cookieres.append(field [, value])res.append() is supported by Express v4.11.0+Appends the specified value to the HTTP response header field. If the header is not already set, it creates the header with the specified value. The value parameter can be a string or an array.Note: calling res.set() after res.append() will rese.. 더보기