'분류 전체보기' 카테고리의 글 목록 (2 Page)
본문 바로가기

분류 전체보기98

Linux shell script to monitor memory usage(re-start when it over the threshold) 리눅스 쉘스크립트로 cpu 메모리 관리하기 쉘스크립트의 무궁무진한 활용성으로 매 분 메모리 체크 후 일정 threshold 조건 만족 시 현재 구동하는 파이썬 코드를 죽이고 재실행하게끔 만들었다. 코드전체 #!/bin/bash mem_threshold='500' mem_free=$(free -m | awk '{print $7}') now=$(date) # CURPID1=$(ps -ef | grep vas_status.sh | awk '{ print $2 }') CURPID2=$(ps -ef | grep vas_start.sh | awk '{ print $2 }') CURPID3=$(ps -ef | grep main_IPcamera_new.py | awk '{ print $2 }') echo "memory space remaining : $mem_.. 2022. 8. 22.
How to solve Bus error (core dumped) in python? system 실행 후 해당 에러가 발생한다면? 총 두 가지 원인을 의심해볼 수 있다. 1. 데이터셋 중 class가 잘못 되어있는 경우.(ex. -1 0.22222 0.334 0.9887 0,887555) 2. 로컬 스토리지가 꽉 찬 경우. 동영상, 이미지 등 을 삭제한다. 끝. 2022. 7. 8.
OSError: [Errno 12] Cannot allocate memory 해결방법 crontab 사용 RTSP 스트리밍을 받아 20분 넘게 돌리니 메모리에러가 발생. 조치1 : Swap 메모리를 늘려준다. CPU 메모리가 꽉차서 그런듯. 조치2 : crontab 으로 버퍼캐쉬 삭제 스케줄러 적용(매분마다 캐시지움) Centos7 은 아래 튜토리얼 참고. https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=slkim0&logNo=222064090996 RedHat 계열은 아래 튜토리얼 참고. https://forteleaf.tistory.com/entry/LINUX-swap-%EC%9A%A9%EB%9F%89-%EB%8A%98%EB%A6%AC%EA%B8%B0?category=904350 1. 메모리 확인 [root@BT-SRVPRD-APP.. 2022. 6. 16.
[SOLVED] redhat 8(RHEL) VLC player installation without any error Shut up and type below command su - #CENTOS7,8 case yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm yum install vlc yum install python-vlc npapi-vlc #RHEL8 case yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo yum install https://dl... 2022. 6. 14.
FirewallD is not running 해결방법 방화벽 열려고 아래 명령어 실행 후 FirewallD is not running 에러 발생 시 해결방법 sudo firewall-cmd --add-port=3389/tcp --permanent # check the status of the service (running and enabled) systemctl status firewalld # if the service is not running, start it systemctl start firewalld # 에러발생시 Failed to start firewalld.service: Unit is masked. systemctl unmask firewalld # if the service has exited, restart it(check for err.. 2022. 6. 13.