4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

nodejs 앱이 사용하는 컴퓨터 자원 모니터링

오늘은 nodejs에서 앱들이 사용하는 컴퓨터 자원을 모니터링하는 모듈을 살펴보고자 한다.

  • 설치
    npm install -g pm2

  • 시작
    pm2 start app.js --name "앱이름"

    위 그림과 같이 이름부분에 원하는 앱이름을 설정할 수 있다.

  • 리스트 확인
    pm2 list

  • 앱 중단
    pm2 stop "앱이름"

  • 앱 재시작
    pm2 restart "앱이름"

  • 앱 pm2 에서 삭제
    pm2 delete "앱이름"

위와 같이 콘솔에서 확인 할 수 있지만 웹으로도 앱의 상태를 확인 할 수 있다.

3 upvotes $0.02

Replies (3)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: