Authored by 陈峰

heapdum

@@ -97,14 +97,14 @@ if (isProduction) { @@ -97,14 +97,14 @@ if (isProduction) {
97 Object.assign(module.exports, { 97 Object.assign(module.exports, {
98 appName: 'm.yohoblk.com', 98 appName: 'm.yohoblk.com',
99 domains: { 99 domains: {
100 - api: 'http://api.yoho.yohoops.org/',  
101 - service: 'http://api.yoho.yohoops.org/',  
102 - singleApi: 'http://api.yoho.yohoops.org/', 100 + api: 'http://api.yoho.cn/',
  101 + service: 'http://service.yoho.cn/',
  102 + singleApi: 'http://single.yoho.cn/'
103 }, 103 },
104 memcache: { 104 memcache: {
105 - master: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'],  
106 - slave: [],  
107 - session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'], 105 + master: ['127.0.0.1:11211'],
  106 + slave: ['127.0.0.1:11211'],
  107 + session: ['127.0.0.1:11211'],
108 timeout: 100, 108 timeout: 100,
109 retries: 0 109 retries: 0
110 }, 110 },
@@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
5 */ 5 */
6 'use strict'; 6 'use strict';
7 7
  8 +const heapdump = require('heapdump');
8 const config = require('./config/common'); 9 const config = require('./config/common');
9 10
10 // use one apm 11 // use one apm
@@ -99,6 +99,7 @@ @@ -99,6 +99,7 @@
99 "file-loader": "^0.11.1", 99 "file-loader": "^0.11.1",
100 "friendly-errors-webpack-plugin": "^1.6.1", 100 "friendly-errors-webpack-plugin": "^1.6.1",
101 "handlebars-loader": "^1.5.0", 101 "handlebars-loader": "^1.5.0",
  102 + "heapdump": "^0.3.9",
102 "husky": "^0.11.6", 103 "husky": "^0.11.6",
103 "jquery": "2.2.4", 104 "jquery": "2.2.4",
104 "memory-fs": "^0.4.1", 105 "memory-fs": "^0.4.1",
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 { 3 {
4 "name": "yohoblk-wap", 4 "name": "yohoblk-wap",
5 "script": "app.js", 5 "script": "app.js",
6 - "instances": "4", 6 + "instances": "1",
7 "exec_mode": "cluster", 7 "exec_mode": "cluster",
8 "merge_logs": true, 8 "merge_logs": true,
9 "log_date_format": "YYYY-MM-DD HH:mm:ss Z", 9 "log_date_format": "YYYY-MM-DD HH:mm:ss Z",
@@ -4008,6 +4008,10 @@ header-case@^1.0.0: @@ -4008,6 +4008,10 @@ header-case@^1.0.0:
4008 no-case "^2.2.0" 4008 no-case "^2.2.0"
4009 upper-case "^1.1.3" 4009 upper-case "^1.1.3"
4010 4010
  4011 +heapdump@^0.3.9:
  4012 + version "0.3.9"
  4013 + resolved "http://registry.npm.taobao.org/heapdump/download/heapdump-0.3.9.tgz#03c74eb0df5d67be0982e83429ba9c9d2b3b7f78"
  4014 +
4011 hmac-drbg@^1.0.0: 4015 hmac-drbg@^1.0.0:
4012 version "1.0.1" 4016 version "1.0.1"
4013 resolved "http://npm.yohops.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" 4017 resolved "http://npm.yohops.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"