Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
George_Liu
Contributor

confd & monitord cpu 100%

sk104761

以下部份處理 confd 100% cpu 狀況,以及 Gaia 第一層登入後存檔或相關操作無回應的狀況。

主因:/config/db/initial_db 檔案過大。(超過 10 MB 以上就不算正常)

tellpm process:confd

mv /config/db/initial_db /config/db/initial_db_`date +%Y%m%d`

conv2db /config/db/initial /config/db/initial_db

sqlite3 /config/db/initial_db "update revisions set time='1980-01-01 02:00:00';"

tellpm process:confd t


gzip -9 
/config/db/initial_db_`date +%Y%m%d`

 

sk93587

以下部份處理 monitord 100% cpu 狀況。

主因:cpview history 檔案過大所致。

tellpm process:monitord

mv /var/log/db /var/log/db_`date +%Y%m%d`

sqlite3 /var/log/db

Run the following commands in the '
sqlite' prompt:

sqlite>
VACUUM;
sqlite> .exit

 

tellpm process:monitord t

 

gzip -9 /var/log/db_`date +%Y%m%d`

0 Replies
Upcoming Events

    CheckMates Events