ps -ef|grep java|awk '{print $2}'|xargs ps -o pid,etime,command -p
yukardaki satır sistemdeki javaların kaç gündür çalıştığını gösterir. örnek çıktı
PID ELAPSED COMMAND
16149 19-04:27:43 uzun komut
24767 12-04:55:26 komut
bold olanlar gün adedi sağdakide saat ve dakika ilk satırın anlamı: 19 gün 4 saat 27 dakikadır çalışıyor demek.
eğer javadan başka birşeyin kaç gündür çalıştığını görmek istiyorsanız yapmanız gereken aşağıdaki satırdaki bold bölgeyi taradığınız işlem adına çevirmek
ps -ef|grep java|awk '{print $2}'|xargs ps -o pid,etime,command -p
örnek kaç gündür makine açık
ps -ef|grep init|awk '{print $2}'|xargs ps -o pid,etime,command -p
Subscribe to:
Post Comments (Atom)
odd string diff
https://leetcode.com/problems/odd-string-difference/ Beats 19.92% of users with Java class Solution { public String oddString ( S...
-
bu durum sessionun uzun ömürlü olmasını istediğinizde yapacağınız bişeydir ki Session["eblek"]="gobalak"; dediğimizde ve...
-
at the end of any product there will be a reporting interfaces for counts. let say you build a advertisement site which gives people to publ...
-
in java web application you can easily set 400 and 500 error pages via web.xml like this <error-page> <error-code>50...
No comments:
Post a Comment