Deprecated: Optional parameter $depth declared before required parameter $output is implicitly treated as a required parameter in /home3/techiclb/public_html/stage.techiearchive.com/wp-content/themes/oceanwp/inc/walker/menu-walker.php on line 360

Warning: Cannot modify header information - headers already sent by (output started at /home3/techiclb/public_html/stage.techiearchive.com/wp-content/themes/oceanwp/inc/walker/menu-walker.php:360) in /home3/techiclb/public_html/stage.techiearchive.com/wp-includes/feed-rss2.php on line 8
memory usage Archives - Stage Techie Archive blog https://stage.techiearchive.com/tag/memory-usage/ Wed, 17 Jan 2018 02:42:00 +0000 en-US hourly 1 https://wordpress.org/?v=7.1 Shell script example | cpu usage monitoring https://stage.techiearchive.com/shell-script-example-cpu-usage-monitoring/ Wed, 17 Jan 2018 02:42:00 +0000 https://stage.techiearchive.com/?p=16 #!/bin/shmemuse=$(ps -p $(pidof java) -o %mem | awk ‘{if(NR>1)print}’);thresholdVal=50;if [ $memuse >  $thresholdVal ]; then    message=”Memory usage for jboss service on application server exceeded threshold.nCurrent use is $memuse %.”    echo -e $message | mail -s “Alert : Memory monitoring UHMB” “prahlad20@gmail.com”;ficpuuse=$(ps -p $(pidof java) -o %cpu | awk ‘{if(NR>1)print}’);if [ $cpuuse > $thresholdVal ];then  […]

The post Shell script example | cpu usage monitoring appeared first on Stage Techie Archive blog.

]]>
#!/bin/sh
memuse=$(ps -p $(pidof java) -o %mem | awk ‘{if(NR>1)print}’);
thresholdVal=50;
if [ $memuse >  $thresholdVal ]; 
then
    message=”Memory usage for jboss service on application server exceeded threshold.nCurrent use is $memuse %.”
    echo -e $message | mail -s “Alert : Memory monitoring UHMB” “prahlad20@gmail.com”;
fi
cpuuse=$(ps -p $(pidof java) -o %cpu | awk ‘{if(NR>1)print}’);
if [ $cpuuse > $thresholdVal ];
then
    message=”CPU usage for jboss service on application server exceeded threshold.nCurrent use is $cpuuse %.”;
    echo -e $message | mail -s “Alert : CPU monitoring UHMB” “prahlad20@gmail.com”;
fi

The post Shell script example | cpu usage monitoring appeared first on Stage Techie Archive blog.

]]>