[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/loolstat

2015-09-08 Thread Henry Castro
 loolwsd/loolstat |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a04d9dab7ee843423183e2bf603a0bc0b32007b4
Author: Henry Castro 
Date:   Tue Sep 8 16:11:29 2015 -0400

loolwsd: update loolstat for preinit.

diff --git a/loolwsd/loolstat b/loolwsd/loolstat
index c2f4706..1dd619a 100755
--- a/loolwsd/loolstat
+++ b/loolwsd/loolstat
@@ -79,7 +79,7 @@ LOOLWSD=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e 
"s/\`//g" | $TR -d ' |-' |
 LOOLBROKER=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e "s/\`//g" | $TR -d ' 
|-' | $GREP -o '^loolbroker,' | $WC -l);
 
 # get the number of running processes.
-LOOLKIT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e "s/\`//g" | $TR -d ' |-' 
| $GREP -o '^loolkit,' | $WC -l);
+LOOLKIT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e "s/\`//g" | $TR -d ' |-' 
| $GREP -o '^libreofficekit,' | $WC -l);
 
 # get the number of running threads.
 LOOLWSD_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $GREP -o '{.*}' | $WC -l);
@@ -105,5 +105,5 @@ $TOP -bn 1 -p $LOOLWSD_PID | $GREP -E 'loolwsd|COMMAND'
 printf "\n %-10s %d\n" "Running loolbroker process:" "$LOOLBROKER";
 $TOP -bn 1 | $GREP -E 'loolbroker|COMMAND'
 printf "\n%-10s %d\n" "Running LibreOfficeKit process:" "$LOOLKIT";
-$TOP -bn 1 | $GREP -E 'loolkit|COMMAND'
+$TOP -bn 1 | $GREP -E 'libreofficekit|COMMAND'
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/loolstat

2015-08-07 Thread Henry Castro
 loolwsd/loolstat |   28 ++--
 1 file changed, 14 insertions(+), 14 deletions(-)

New commits:
commit 5c7071085160b0dd5d1404f6f4bf659445e01b8e
Author: Henry Castro hcas...@collabora.com
Date:   Fri Aug 7 08:10:53 2015 -0400

loolwsd: update loolstat, socket client and  ...

prisoner

diff --git a/loolwsd/loolstat b/loolwsd/loolstat
index 91e1550..c2f4706 100755
--- a/loolwsd/loolstat
+++ b/loolwsd/loolstat
@@ -75,35 +75,35 @@ $PSTREE -a -c -h -A -p $LOOLWSD_PID;
 # get the number of running processes.
 LOOLWSD=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '^loolwsd,' | $WC -l);
 
-# get the number of running threads.
-LOOLWSD_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR 
-d ' |-' | $GREP -o '{loolwsd}' | $WC -l);
-
 # get the number of running processes.
 LOOLBROKER=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' 
|-' | $GREP -o '^loolbroker,' | $WC -l);
 
-# get the number of running threads.
-LOOLBROKER_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | 
$TR -d ' |-' | $GREP -o '{loolbroker}' | $WC -l);
-
 # get the number of running processes.
 LOOLKIT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '^loolkit,' | $WC -l);
 
-# get the number of running processes.
-LOOLKIT_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR 
-d ' |-' | $GREP -o '{loolkit}' | $WC -l);
+# get the number of running threads.
+LOOLWSD_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $GREP -o '{.*}' | $WC -l);
+
+# get the number of running client socket.
+LOOLWSD_CLIENT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $GREP -o '{client_socket}' 
| $WC -l);
+
+# get the number of running client socket.
+LOOLWSD_PRISIONER=$($PSTREE -a -h -A -p $LOOLWSD_PID | $GREP -o 
'{prision_socket}' | $WC -l);
 
 # get the number of processes swapped out.
-LOOLKIT_SWAPPEDOUT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | 
$TR -d ' |-' | $GREP -o '(loolkit,' | $WC -l);
+LOOLKIT_SWAPPEDOUT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $GREP -o '(.*)' | $WC 
-l);
 
 # display report stats
 printf \n %-10s\n LOOLWSD STATS;
 printf ==\n;
 printf  %-10s %d\n Running loolwsd process: $LOOLWSD;
 printf  %-10s %d\n Running loolwsd threads: $LOOLWSD_THREADS;
+printf  %-10s %d\n Socket Client   threads: $LOOLWSD_CLIENT;
+printf  %-10s %d\n Socket Prision  threads: $LOOLWSD_PRISIONER;
+printf  %-10s %d\n\n Process ... swapped out: $LOOLKIT_SWAPPEDOUT;
 $TOP -bn 1 -p $LOOLWSD_PID | $GREP -E 'loolwsd|COMMAND'
-printf  %-10s %d\n Running loolbroker process: $LOOLBROKER;
-printf  %-10s %d\n Running loolbroker threads: $LOOLBROKER_THREADS;
+printf \n %-10s %d\n Running loolbroker process: $LOOLBROKER;
 $TOP -bn 1 | $GREP -E 'loolbroker|COMMAND'
-printf  %-10s %d\n Running LibreOfficeKit process: $LOOLKIT;
-printf  %-10s %d\n Running LibreOfficeKit threads: $LOOLKIT_THREADS;
-printf  %-10s %d\n Process LibreOfficeKit swapped out: 
$LOOLKIT_SWAPPEDOUT;
+printf \n%-10s %d\n Running LibreOfficeKit process: $LOOLKIT;
 $TOP -bn 1 | $GREP -E 'loolkit|COMMAND'
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/loolstat

2015-08-02 Thread Henry Castro
 loolwsd/loolstat |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9ff94381047e76a8c5baa026c6c9d325709d1da4
Author: Henry Castro hcas...@collabora.com
Date:   Sun Aug 2 16:55:45 2015 -0400

loolwsd: minor fix loolstat.

diff --git a/loolwsd/loolstat b/loolwsd/loolstat
index 05a7a98..91e1550 100755
--- a/loolwsd/loolstat
+++ b/loolwsd/loolstat
@@ -50,7 +50,7 @@ if ! $PS --version /dev/null 21; then
 fi
 
 # checking ... report a snapshot of the current processes utility.
-if ! $TOP --v /dev/null 21; then
+if ! $TOP -v /dev/null 21; then
   log_failure_msg $0: error: $TOP utility not found.
 fi
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/loolstat

2015-07-24 Thread Henry Castro
 loolwsd/loolstat |   37 +++--
 1 file changed, 31 insertions(+), 6 deletions(-)

New commits:
commit a64c77e2b0b3d0134d7722acae18f0bbd70bee6c
Author: Henry Castro hcas...@collabora.com
Date:   Fri Jul 24 11:39:09 2015 -0400

loolwsd: update loolstat

diff --git a/loolwsd/loolstat b/loolwsd/loolstat
index 6926af6..05a7a98 100755
--- a/loolwsd/loolstat
+++ b/loolwsd/loolstat
@@ -5,6 +5,7 @@ TR='tr'
 WC='wc'
 PS='ps'
 SED='sed'
+TOP='top'
 GREP='grep'
 PSTREE='pstree'
 
@@ -48,6 +49,11 @@ if ! $PS --version /dev/null 21; then
   log_failure_msg $0: error: $PS utility not found.
 fi
 
+# checking ... report a snapshot of the current processes utility.
+if ! $TOP --v /dev/null 21; then
+  log_failure_msg $0: error: $TOP utility not found.
+fi
+
 # checking pid log file.
 if [ ! -f $PIDLOG ]; then
log_failure_msg $0: error: $PIDLOG file not found.
@@ -67,18 +73,37 @@ fi
 $PSTREE -a -c -h -A -p $LOOLWSD_PID;
 
 # get the number of running processes.
-PROCESS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '^loolwsd,' | $WC -l);
+LOOLWSD=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '^loolwsd,' | $WC -l);
 
 # get the number of running threads.
-THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '{loolwsd}' | $WC -l);
+LOOLWSD_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR 
-d ' |-' | $GREP -o '{loolwsd}' | $WC -l);
+
+# get the number of running processes.
+LOOLBROKER=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' 
|-' | $GREP -o '^loolbroker,' | $WC -l);
+
+# get the number of running threads.
+LOOLBROKER_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | 
$TR -d ' |-' | $GREP -o '{loolbroker}' | $WC -l);
+
+# get the number of running processes.
+LOOLKIT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' |-' 
| $GREP -o '^loolkit,' | $WC -l);
+
+# get the number of running processes.
+LOOLKIT_THREADS=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR 
-d ' |-' | $GREP -o '{loolkit}' | $WC -l);
 
 # get the number of processes swapped out.
-SWAPPEDOUT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | $TR -d ' 
|-' | $GREP -o '(loolwsd,' | $WC -l);
+LOOLKIT_SWAPPEDOUT=$($PSTREE -a -h -A -p $LOOLWSD_PID | $SED -e s/\`//g | 
$TR -d ' |-' | $GREP -o '(loolkit,' | $WC -l);
 
 # display report stats
 printf \n %-10s\n LOOLWSD STATS;
 printf ==\n;
-printf  %-10s %d\n Running process: $PROCESS;
-printf  %-10s %d\n Running threads: $THREADS;
-printf  %-10s %d\n Process swapped out: $SWAPPEDOUT;
+printf  %-10s %d\n Running loolwsd process: $LOOLWSD;
+printf  %-10s %d\n Running loolwsd threads: $LOOLWSD_THREADS;
+$TOP -bn 1 -p $LOOLWSD_PID | $GREP -E 'loolwsd|COMMAND'
+printf  %-10s %d\n Running loolbroker process: $LOOLBROKER;
+printf  %-10s %d\n Running loolbroker threads: $LOOLBROKER_THREADS;
+$TOP -bn 1 | $GREP -E 'loolbroker|COMMAND'
+printf  %-10s %d\n Running LibreOfficeKit process: $LOOLKIT;
+printf  %-10s %d\n Running LibreOfficeKit threads: $LOOLKIT_THREADS;
+printf  %-10s %d\n Process LibreOfficeKit swapped out: 
$LOOLKIT_SWAPPEDOUT;
+$TOP -bn 1 | $GREP -E 'loolkit|COMMAND'
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits