Labels

Thursday, August 8, 2019

how to check open threads , CPU usage & RAM used


ps -o thcount <pid>                         --- total threads opened for pid
ps hHup <pid>                                   -- to list all threads
/software/jdk/jdk1.8.0_161/bin/jcmd <pid> Thread.print   ==== to take instan thread dump
ps -eo "pcpu,pid,args"|grep java|sort -n
ps -o pid,user,%mem,command ax | sort -b -k3 -r                                             --- works good
ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20                               --- works good
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head -20                       --- works
pmap 30537 | tail -n 1
ps aux --sort -rss
==== memory consumed by each user ========
ps axo rss,comm,pid \
| awk '{ proc_list[$2]++; proc_list[$2 "," 1] += $1; } \
END { for (proc in proc_list) { printf("%d\t%s\n", \
proc_list[proc "," 1],proc); }}' | sort -n | tail -n 10 | sort -rn \
| awk '{$1/=1024;printf "%.0fMB\t",$1}{print $2}'
==========
ps -efwww|grep java

16 comments:

  1. Replies
    1. Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai

      Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.

      Spring Training in Chennai

      The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome
    All University BCOM 1st, 2nd & Final Year TimeTable 2020

    ReplyDelete
  3. Wow! this is Amazing! Do you know your hidden name meaning ? Click here to find your hidden name meaning

    ReplyDelete
  4. It's very useful article with informative and insightful content and i had good experience with this information. We, at the CRS info solutions ,help candidates in acquiring certificates, master interview questions, and prepare brilliant resumes.Go through some helpful and rich content Salesforce Admin syllabus from learn in real time team. This Salesforce Development syllabus is 100% practical and highly worth reading. Recently i have gone through Salesforce Development syllabus and Salesforce Admin syllabus which includes Salesforce training in USA so practically designed.

    ReplyDelete
  5. Awesome post! Personally I like your site. . I am so impressed to read your content. I am looking forward for the next valuable and informative concept in your blog. Overall outstanding post. Carry on :) Well done!
    If you want Digital Marketing Serives :-
    Digital marketing Service in Delhi
    SMM Services
    PPC Services in Delhi
    Website Design & Development Packages
    SEO Services PackagesLocal SEO services
    E-mail marketing services
    YouTube plans

    ReplyDelete
  6. Started out in 2012, Data Science Central is one of the industry’s leading and fastest growing Internet
    community for data practitioners. Whether it is data science or machine learning or deep learning or
    big data, Data Science Central is a one-stop shop that covers a wide range of data science topics that
    includes technology, tools, data visualisation, code, and job opportunities. Also, many industry experts
    contribute to the community forum for discussion or questions.

    DATASCIENCETraining in OMR Chennai

    ReplyDelete
  7. This site helps to clear your all query.
    This is really worth reading. nice informative article.
    davv ba 3rd year result
    osmania university degree result

    ReplyDelete
  8. Hi, I really enjoyed reading your post, and hope to read more. thank you so much for sharing this informative blog. Check out home depot online

    ReplyDelete
  9. Thanks for sharing useful information. We have learned so much information from your blog. Keep sharing. We are also providing the best services click on below links to visit our website.
    Oracle Fusion HCM Training
    Workday Training
    Okta Training
    Palo Alto Training
    Adobe Analytics Training

    ReplyDelete
  10. Hi, I really enjoyed reading your post, and hope to read more. Thank you so much for sharing this. when asked what are your salary expectations

    ReplyDelete
  11. I have read few of the articles on your website, and I really like your style of blogging. I added it to my favorites blog list and will be checking back soon. Checkout Youtube Free Music Download

    ReplyDelete
  12. As you have now understood the usage of ‘Record and Playback’ tool, the following are the different posts using which you can explore the functioning of ‘Selenium IDE’
    selenium Training in chennai

    ReplyDelete
  13. SQream Technologies provides you with a state of the art software which combines modern GPU technology (Graphic Processing Units) with the best practices in today’s Big Data platforms, providing up to 100x faster insights from data.
    Bigdata Training in Chennai OMR

    ReplyDelete