openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk-package-cloudant] branch master updated: Add v8 heap statistics to Health endpoint (#141)
Date Fri, 17 Nov 2017 19:47:24 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-package-cloudant.git


The following commit(s) were added to refs/heads/master by this push:
     new 54cff1b  Add v8 heap statistics to Health endpoint (#141)
54cff1b is described below

commit 54cff1bfdbf6b6cc0c11771b8c7d37d4fbe6d366
Author: Jason Peterson <jasonpet@us.ibm.com>
AuthorDate: Fri Nov 17 14:47:22 2017 -0500

    Add v8 heap statistics to Health endpoint (#141)
---
 provider/lib/health.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/provider/lib/health.js b/provider/lib/health.js
index ecfba29..bbdc01d 100644
--- a/provider/lib/health.js
+++ b/provider/lib/health.js
@@ -1,4 +1,5 @@
 var si = require('systeminformation');
+var v8 = require('v8');
 
 module.exports = function(utils) {
 
@@ -24,6 +25,8 @@ module.exports = function(utils) {
             stats.disk = results[2];
             stats.network = results[3];
             stats.apiHostLatency = results[4];
+            stats.heapStatistics = v8.getHeapStatistics();
+            stats.heapSpaceStatistics =v8.getHeapSpaceStatistics();
             res.send(stats);
         })
         .catch(error => {

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message