danielhilst

Print weblogic servers and its memory

Oct 30th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. ps -ef | grep weblogic.Server | awk '
  2. {
  3.        line = "";
  4.        for (i = 1; i <= NF; i++) {
  5.                if ($i ~ /Name/) {
  6.                        line = $i " " line;
  7.                } else if ($i ~ /Xms/) {
  8.                        line = line " " $i;
  9.                } else if ($i ~ /Xmx/) {
  10.                        line = line " " $i;
  11.                }
  12.        }
  13.        print line;
  14. }'
Advertisement
Add Comment
Please, Sign In to add comment