- Unhandled Promise Rejections
Cause silent failure mode, with unlogged warning, on older version of Node Cause a crash on newer version of Node
I had already told some developers about it. Prakash avoided it in Power Reviews
In FromManufacturer.js
componentDidMount() { const { config } = this.props; const script = config.get('domains.webstore.pdp.webcollage.url'); const attrs = config.get('domains.webstore.pdp.webcollage.attrs');
// CRASH-ABLE missing promise rejection handler
// promise rejects on script.error
loadScript(script, attrs).then(() => {
this.loadContent();
});
}
In PDPSocialLinks.js
loadPinterestScript() { const { config } = this.props;
const url = config.get('domains.webstore.pdp.socials.pinterest.url');
const pinterestScriptUrl = config.get('domains.webstore.pdp.socials.pinterest.scriptUrl');
// CRASH-ABLE missing promise rejection handler
// promise rejects on script.error
loadScript(pinterestScriptUrl)
.then(data => {
if (data) {
this.setState({
isPinterestVisible: true,
pinterestShareLink: url
});
}
});
}
- Load Testing of Search
Remember: in production the main static Search page sits behind a CDN but the search results is rendered on Node on each unique result.
Loade test command: $ loadtest -c 10 --rps 10 http://localhost:8081/webstore/search?q=bed Memory leak detected:
{ growth: 130036704,
reason: 'heap growth over 5 consecutive GCs (1m 7s) - -2147483648 bytes/hr' }
Memory leak detected:
{ growth: 128796056,
reason: 'heap growth over 5 consecutive GCs (1m 32s) - -2147483648 bytes/hr' }
ECONNRESET ERROR IS BEING PRODUCED WHEN TRYING TO CONNECT TO https://testaws-gw.globalapi.toysrus.com/api/v2/search WITH MODERATE LOAD
I HOPE THIS IS HAPPENING ONLY TO ME AT THE HOTEL AND WOULD NOT HAPPEN IN PRODUCTION SINCE NODE AND THE APIs ARE COLOCATED BUT WE NEED TO MAKE SURE
MY BEST GUESS SINCE THESE MEMORY LEAKS COINCIDE WITH THE ECONNRESET NETWORK ERRORS IS THAT THE ERROR OBJECTS ARE NOT BEING GARBAGE COLLECTED (LOGGER RETAINS REFERENCES TO ERROR OBJECT?) The .stack property of the Error object retains the captured stack trace. A stack trace is on the order of one kilobyte, so 50,000 stack traces are about 48 MB. See this: https://bugs.chromium.org/p/v8/issues/detail?id=4714
Load Test Requests:
[Thu Sep 14 2017 03:41:56 GMT-0400 (EDT)] INFO Requests: 0, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:42:01 GMT-0400 (EDT)] INFO Requests: 0, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:42:06 GMT-0400 (EDT)] INFO Requests: 0, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:42:11 GMT-0400 (EDT)] INFO Requests: 14, requests per second: 3, mean latency: 11057.8 ms
[Thu Sep 14 2017 03:42:16 GMT-0400 (EDT)] INFO Requests: 21, requests per second: 1, mean latency: 15751.7 ms
[Thu Sep 14 2017 03:42:21 GMT-0400 (EDT)] INFO Requests: 27, requests per second: 1, mean latency: 18523.9 ms
[Thu Sep 14 2017 03:42:26 GMT-0400 (EDT)] INFO Requests: 41, requests per second: 3, mean latency: 24473.6 ms
[Thu Sep 14 2017 03:42:31 GMT-0400 (EDT)] INFO Requests: 49, requests per second: 2, mean latency: 28685.5 ms
[Thu Sep 14 2017 03:42:36 GMT-0400 (EDT)] INFO Requests: 63, requests per second: 3, mean latency: 31438.1 ms
[Thu Sep 14 2017 03:42:41 GMT-0400 (EDT)] INFO Requests: 73, requests per second: 2, mean latency: 33594.8 ms
[Thu Sep 14 2017 03:42:46 GMT-0400 (EDT)] INFO Requests: 102, requests per second: 6, mean latency: 37860.9 ms
[Thu Sep 14 2017 03:42:51 GMT-0400 (EDT)] INFO Requests: 129, requests per second: 5, mean latency: 42173.4 ms
[Thu Sep 14 2017 03:42:56 GMT-0400 (EDT)] INFO Requests: 141, requests per second: 2, mean latency: 43244.2 ms
[Thu Sep 14 2017 03:43:01 GMT-0400 (EDT)] INFO Requests: 155, requests per second: 3, mean latency: 47030.7 ms
[Thu Sep 14 2017 03:43:06 GMT-0400 (EDT)] INFO Requests: 167, requests per second: 2, mean latency: 49060.3 ms
[Thu Sep 14 2017 03:43:11 GMT-0400 (EDT)] INFO Requests: 190, requests per second: 5, mean latency: 53833.2 ms
[Thu Sep 14 2017 03:43:16 GMT-0400 (EDT)] INFO Requests: 218, requests per second: 6, mean latency: 55469.8 ms
[Thu Sep 14 2017 03:43:21 GMT-0400 (EDT)] INFO Requests: 233, requests per second: 3, mean latency: 56026.2 ms
[Thu Sep 14 2017 03:43:26 GMT-0400 (EDT)] INFO Requests: 236, requests per second: 1, mean latency: 55628.2 ms
[Thu Sep 14 2017 03:43:31 GMT-0400 (EDT)] INFO Requests: 238, requests per second: 0, mean latency: 42192.4 ms
[Thu Sep 14 2017 03:43:36 GMT-0400 (EDT)] INFO Requests: 241, requests per second: 1, mean latency: 54909.3 ms
[Thu Sep 14 2017 03:43:41 GMT-0400 (EDT)] INFO Requests: 243, requests per second: 0, mean latency: 67220.6 ms
[Thu Sep 14 2017 03:43:46 GMT-0400 (EDT)] INFO Requests: 245, requests per second: 0, mean latency: 54070.7 ms
[Thu Sep 14 2017 03:43:51 GMT-0400 (EDT)] INFO Requests: 246, requests per second: 0, mean latency: 54063.7 ms
[Thu Sep 14 2017 03:43:56 GMT-0400 (EDT)] INFO Requests: 246, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:44:01 GMT-0400 (EDT)] INFO Requests: 249, requests per second: 1, mean latency: 65338.4 ms
[Thu Sep 14 2017 03:44:06 GMT-0400 (EDT)] INFO Requests: 267, requests per second: 4, mean latency: 100257.9 ms
[Thu Sep 14 2017 03:44:11 GMT-0400 (EDT)] INFO Requests: 268, requests per second: 0, mean latency: 91096.1 ms
[Thu Sep 14 2017 03:44:16 GMT-0400 (EDT)] INFO Requests: 268, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:44:21 GMT-0400 (EDT)] INFO Requests: 269, requests per second: 0, mean latency: 91436.8 ms
[Thu Sep 14 2017 03:44:26 GMT-0400 (EDT)] INFO Requests: 269, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:44:31 GMT-0400 (EDT)] INFO Requests: 269, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:44:36 GMT-0400 (EDT)] INFO Requests: 269, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:44:41 GMT-0400 (EDT)] INFO Requests: 272, requests per second: 1, mean latency: 116519.8 ms
[Thu Sep 14 2017 03:44:46 GMT-0400 (EDT)] INFO Requests: 467, requests per second: 39, mean latency: 126973.4 ms
[Thu Sep 14 2017 03:44:51 GMT-0400 (EDT)] INFO Requests: 685, requests per second: 44, mean latency: 120992.6 ms
[Thu Sep 14 2017 03:44:51 GMT-0400 (EDT)] INFO Errors: 1, accumulated errors: 1, 0.1% of total requests
[Thu Sep 14 2017 03:44:56 GMT-0400 (EDT)] INFO Requests: 689, requests per second: 1, mean latency: 105901.7 ms
[Thu Sep 14 2017 03:44:56 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 1, 0.1% of total requests
[Thu Sep 14 2017 03:45:01 GMT-0400 (EDT)] INFO Requests: 689, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:01 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 1, 0.1% of total requests
[Thu Sep 14 2017 03:45:06 GMT-0400 (EDT)] INFO Requests: 689, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:06 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 1, 0.1% of total requests
[Thu Sep 14 2017 03:45:11 GMT-0400 (EDT)] INFO Requests: 691, requests per second: 0, mean latency: 139964.7 ms
[Thu Sep 14 2017 03:45:11 GMT-0400 (EDT)] INFO Errors: 1, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:16 GMT-0400 (EDT)] INFO Requests: 698, requests per second: 1, mean latency: 122297.1 ms
[Thu Sep 14 2017 03:45:16 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:21 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 1, mean latency: 121265.4 ms
[Thu Sep 14 2017 03:45:21 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:26 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:26 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:31 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:31 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:36 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:36 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:41 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:41 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:46 GMT-0400 (EDT)] INFO Requests: 702, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:45:46 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:51 GMT-0400 (EDT)] INFO Requests: 703, requests per second: 0, mean latency: 162436.5 ms
[Thu Sep 14 2017 03:45:51 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:45:56 GMT-0400 (EDT)] INFO Requests: 705, requests per second: 0, mean latency: 153788.9 ms
[Thu Sep 14 2017 03:45:56 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:01 GMT-0400 (EDT)] INFO Requests: 707, requests per second: 0, mean latency: 143832.7 ms
[Thu Sep 14 2017 03:46:01 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:06 GMT-0400 (EDT)] INFO Requests: 707, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:46:06 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:11 GMT-0400 (EDT)] INFO Requests: 707, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:46:11 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:16 GMT-0400 (EDT)] INFO Requests: 710, requests per second: 1, mean latency: 150181.4 ms
[Thu Sep 14 2017 03:46:16 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:21 GMT-0400 (EDT)] INFO Requests: 710, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:46:21 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:26 GMT-0400 (EDT)] INFO Requests: 712, requests per second: 0, mean latency: 180403.1 ms
[Thu Sep 14 2017 03:46:26 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:31 GMT-0400 (EDT)] INFO Requests: 713, requests per second: 0, mean latency: 162374.3 ms
[Thu Sep 14 2017 03:46:31 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:36 GMT-0400 (EDT)] INFO Requests: 715, requests per second: 0, mean latency: 177130.4 ms
[Thu Sep 14 2017 03:46:36 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:41 GMT-0400 (EDT)] INFO Requests: 718, requests per second: 1, mean latency: 184819.8 ms
[Thu Sep 14 2017 03:46:41 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:46 GMT-0400 (EDT)] INFO Requests: 724, requests per second: 1, mean latency: 188966.9 ms
[Thu Sep 14 2017 03:46:46 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:51 GMT-0400 (EDT)] INFO Requests: 729, requests per second: 1, mean latency: 177462.5 ms
[Thu Sep 14 2017 03:46:51 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:46:56 GMT-0400 (EDT)] INFO Requests: 738, requests per second: 2, mean latency: 181835.7 ms
[Thu Sep 14 2017 03:46:56 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:47:01 GMT-0400 (EDT)] INFO Requests: 745, requests per second: 1, mean latency: 196007.3 ms
[Thu Sep 14 2017 03:47:01 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 2, 0.3% of total requests
[Thu Sep 14 2017 03:47:06 GMT-0400 (EDT)] INFO Requests: 1128, requests per second: 77, mean latency: 216747.2 ms
[Thu Sep 14 2017 03:47:06 GMT-0400 (EDT)] INFO Errors: 17, accumulated errors: 19, 1.7% of total requests
[Thu Sep 14 2017 03:47:11 GMT-0400 (EDT)] INFO Requests: 1199, requests per second: 14, mean latency: 206902.2 ms
[Thu Sep 14 2017 03:47:11 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.6% of total requests
[Thu Sep 14 2017 03:47:16 GMT-0400 (EDT)] INFO Requests: 1221, requests per second: 4, mean latency: 195942 ms
[Thu Sep 14 2017 03:47:16 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.6% of total requests
[Thu Sep 14 2017 03:47:21 GMT-0400 (EDT)] INFO Requests: 1227, requests per second: 1, mean latency: 198237.3 ms
[Thu Sep 14 2017 03:47:21 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:26 GMT-0400 (EDT)] INFO Requests: 1229, requests per second: 0, mean latency: 198749.5 ms
[Thu Sep 14 2017 03:47:26 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:31 GMT-0400 (EDT)] INFO Requests: 1233, requests per second: 1, mean latency: 199042.9 ms
[Thu Sep 14 2017 03:47:31 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:36 GMT-0400 (EDT)] INFO Requests: 1234, requests per second: 0, mean latency: 196593 ms
[Thu Sep 14 2017 03:47:36 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:41 GMT-0400 (EDT)] INFO Requests: 1234, requests per second: 0, mean latency: 0 ms
[Thu Sep 14 2017 03:47:41 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:46 GMT-0400 (EDT)] INFO Requests: 1236, requests per second: 0, mean latency: 202025.2 ms
[Thu Sep 14 2017 03:47:46 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:51 GMT-0400 (EDT)] INFO Requests: 1240, requests per second: 1, mean latency: 204355.7 ms
[Thu Sep 14 2017 03:47:51 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:47:56 GMT-0400 (EDT)] INFO Requests: 1250, requests per second: 2, mean latency: 230135.5 ms
[Thu Sep 14 2017 03:47:56 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:01 GMT-0400 (EDT)] INFO Requests: 1252, requests per second: 0, mean latency: 227962.5 ms
[Thu Sep 14 2017 03:48:01 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:06 GMT-0400 (EDT)] INFO Requests: 1254, requests per second: 0, mean latency: 230473.9 ms
[Thu Sep 14 2017 03:48:06 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:11 GMT-0400 (EDT)] INFO Requests: 1256, requests per second: 0, mean latency: 237017.9 ms
[Thu Sep 14 2017 03:48:11 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:16 GMT-0400 (EDT)] INFO Requests: 1258, requests per second: 0, mean latency: 232691.6 ms
[Thu Sep 14 2017 03:48:16 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:21 GMT-0400 (EDT)] INFO Requests: 1259, requests per second: 0, mean latency: 248664.6 ms
[Thu Sep 14 2017 03:48:21 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.5% of total requests
[Thu Sep 14 2017 03:48:26 GMT-0400 (EDT)] INFO Requests: 1514, requests per second: 51, mean latency: 249435.7 ms
[Thu Sep 14 2017 03:48:26 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.3% of total requests
[Thu Sep 14 2017 03:48:31 GMT-0400 (EDT)] INFO Requests: 1528, requests per second: 3, mean latency: 238921.4 ms
[Thu Sep 14 2017 03:48:31 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:48:36 GMT-0400 (EDT)] INFO Requests: 1531, requests per second: 1, mean latency: 241960.7 ms
[Thu Sep 14 2017 03:48:36 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:48:41 GMT-0400 (EDT)] INFO Requests: 1543, requests per second: 2, mean latency: 251623.6 ms
[Thu Sep 14 2017 03:48:41 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:48:46 GMT-0400 (EDT)] INFO Requests: 1557, requests per second: 3, mean latency: 247899.9 ms
[Thu Sep 14 2017 03:48:46 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:48:51 GMT-0400 (EDT)] INFO Requests: 1574, requests per second: 3, mean latency: 249062.3 ms
[Thu Sep 14 2017 03:48:51 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:48:56 GMT-0400 (EDT)] INFO Requests: 1582, requests per second: 2, mean latency: 252906.1 ms
[Thu Sep 14 2017 03:48:56 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:49:01 GMT-0400 (EDT)] INFO Requests: 1596, requests per second: 3, mean latency: 259647.9 ms
[Thu Sep 14 2017 03:49:01 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:49:06 GMT-0400 (EDT)] INFO Requests: 1609, requests per second: 3, mean latency: 262151 ms
[Thu Sep 14 2017 03:49:06 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:49:11 GMT-0400 (EDT)] INFO Requests: 1618, requests per second: 2, mean latency: 267768.6 ms
[Thu Sep 14 2017 03:49:11 GMT-0400 (EDT)] INFO Errors: 0, accumulated errors: 19, 1.2% of total requests
[Thu Sep 14 2017 03:49:16 GMT-0400 (EDT)] INFO Requests: 1649, requests per second: 6, mean latency: 108684.5 ms
[Thu Sep 14 2017 03:49:16 GMT-0400 (EDT)] INFO Errors: 7, accumulated errors: 26, 1.6% of total requests
[Thu Sep 14 2017 03:49:21 GMT-0400 (EDT)] INFO Requests: 1693, requests per second: 9, mean latency: 63264.1 ms
[Thu Sep 14 2017 03:49:21 GMT-0400 (EDT)] INFO Errors: 21, accumulated errors: 47, 2.8% of total requests
Responses
ERROR::SERVER.SERVER-ROUTES.WEBSTORE.SEARCH |3bf46e4b-24d2-4e12-b864-5ebbf760f40e| 1-12570 undefined
ERROR::SERVER.SERVER-ROUTES.WEBSTORE.SEARCH |d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a| 1-12570 undefined
ERROR::SERVER.SERVER-ROUTES.WEBSTORE.SEARCH |9f95a856-bec0-4176-8383-82fee0bfaf61| 1-12570 undefined
ERROR::SERVER.SERVER-ROUTES.WEBSTORE.SEARCH |df2ff9d0-516f-4cff-8df9-1de24c3684ff| 1-12570 undefined
ERROR::SERVER.TRANSPORT.NODE_REQUEST |3bf46e4b-24d2-4e12-b864-5ebbf760f40e| 1-12570 Error: read ECONNRESET | Data: {"tags":["server","__err"],"data":{"uuid":"3bf46e4b-24d2-4e12-b864-5ebbf760f40e","wid":"1-12570","page":"search","domain":"webstore","http_method":"GET","url":"https://testaws-gw.globalapi.toysrus.com/api/v2/search","url_parsing_error":{},"url_params":{"searchTerm":"bed","searchType":"keyword","startIndex":0,"maxResults":24,"filters":"","retrieveSponspored":true,"facetRanges":"sale_price","sorts":"","clientIp":null,"bruid2":null,"url":"localhost:8081"}}}
ERROR::SERVER.DAO |3bf46e4b-24d2-4e12-b864-5ebbf760f40e| 1-12570 DAO transport Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"3bf46e4b-24d2-4e12-b864-5ebbf760f40e","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
ERROR::SERVER.DAO |3bf46e4b-24d2-4e12-b864-5ebbf760f40e| 1-12570 DAO responsePipeline Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"3bf46e4b-24d2-4e12-b864-5ebbf760f40e","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
ERROR::SERVER.API_SERVICE.GET_PRODUCT_SEARCH |3bf46e4b-24d2-4e12-b864-5ebbf760f40e| 1-12570 getProductSearch _dao.getProductSearch | Data: {"tags":["server","__err"],"data":{"query":"bed","offset":0,"perPage":24,"filtersQuery":"","sortByQuery":"","url":"localhost:8081","uuid":"3bf46e4b-24d2-4e12-b864-5ebbf760f40e","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
ERROR::SERVER.TRANSPORT.NODE_REQUEST |d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a| 1-12570 Error: socket hang up | Data: {"tags":["server","__err"],"data":{"uuid":"d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a","wid":"1-12570","page":"search","domain":"webstore","http_method":"GET","url":"https://testaws-gw.globalapi.toysrus.com/api/v2/search","url_parsing_error":{},"url_params":{"searchTerm":"bed","searchType":"keyword","startIndex":0,"maxResults":24,"filters":"","retrieveSponspored":true,"facetRanges":"sale_price","sorts":"","clientIp":null,"bruid2":null,"url":"localhost:8081"}}}
ERROR::SERVER.DAO |d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a| 1-12570 DAO transport Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.DAO |d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a| 1-12570 DAO responsePipeline Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.API_SERVICE.GET_PRODUCT_SEARCH |d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a| 1-12570 getProductSearch _dao.getProductSearch | Data: {"tags":["server","__err"],"data":{"query":"bed","offset":0,"perPage":24,"filtersQuery":"","sortByQuery":"","url":"localhost:8081","uuid":"d1d350d4-cfd3-4b4e-9e8d-51c4d0e0805a","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.TRANSPORT.NODE_REQUEST |9f95a856-bec0-4176-8383-82fee0bfaf61| 1-12570 Error: socket hang up | Data: {"tags":["server","__err"],"data":{"uuid":"9f95a856-bec0-4176-8383-82fee0bfaf61","wid":"1-12570","page":"search","domain":"webstore","http_method":"GET","url":"https://testaws-gw.globalapi.toysrus.com/api/v2/search","url_parsing_error":{},"url_params":{"searchTerm":"bed","searchType":"keyword","startIndex":0,"maxResults":24,"filters":"","retrieveSponspored":true,"facetRanges":"sale_price","sorts":"","clientIp":null,"bruid2":null,"url":"localhost:8081"}}}
ERROR::SERVER.DAO |9f95a856-bec0-4176-8383-82fee0bfaf61| 1-12570 DAO transport Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"9f95a856-bec0-4176-8383-82fee0bfaf61","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.DAO |9f95a856-bec0-4176-8383-82fee0bfaf61| 1-12570 DAO responsePipeline Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"9f95a856-bec0-4176-8383-82fee0bfaf61","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.API_SERVICE.GET_PRODUCT_SEARCH |9f95a856-bec0-4176-8383-82fee0bfaf61| 1-12570 getProductSearch _dao.getProductSearch | Data: {"tags":["server","__err"],"data":{"query":"bed","offset":0,"perPage":24,"filtersQuery":"","sortByQuery":"","url":"localhost:8081","uuid":"9f95a856-bec0-4176-8383-82fee0bfaf61","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"socket hang up","stack":"Error: socket hang up\n at createHangUpError (_http_client.js:254:15)\n at TLSSocket.socketOnEnd (_http_client.js:346:23)\n at emitNone (events.js:91:20)\n at TLSSocket.emit (events.js:185:7)\n at endReadableNT (_stream_readable.js:974:12)\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\n at process._tickCallback (internal/process/next_tick.js:104:9)"}}}
ERROR::SERVER.TRANSPORT.NODE_REQUEST |df2ff9d0-516f-4cff-8df9-1de24c3684ff| 1-12570 Error: read ECONNRESET | Data: {"tags":["server","__err"],"data":{"uuid":"df2ff9d0-516f-4cff-8df9-1de24c3684ff","wid":"1-12570","page":"search","domain":"webstore","http_method":"GET","url":"https://testaws-gw.globalapi.toysrus.com/api/v2/search","url_parsing_error":{},"url_params":{"searchTerm":"bed","searchType":"keyword","startIndex":0,"maxResults":24,"filters":"","retrieveSponspored":true,"facetRanges":"sale_price","sorts":"","clientIp":null,"bruid2":null,"url":"localhost:8081"}}}
ERROR::SERVER.DAO |df2ff9d0-516f-4cff-8df9-1de24c3684ff| 1-12570 DAO transport Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"df2ff9d0-516f-4cff-8df9-1de24c3684ff","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
ERROR::SERVER.DAO |df2ff9d0-516f-4cff-8df9-1de24c3684ff| 1-12570 DAO responsePipeline Promise finished with error or rejection | Data: {"tags":["server","__err"],"data":{"uuid":"df2ff9d0-516f-4cff-8df9-1de24c3684ff","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
ERROR::SERVER.API_SERVICE.GET_PRODUCT_SEARCH |df2ff9d0-516f-4cff-8df9-1de24c3684ff| 1-12570 getProductSearch _dao.getProductSearch | Data: {"tags":["server","__err"],"data":{"query":"bed","offset":0,"perPage":24,"filtersQuery":"","sortByQuery":"","url":"localhost:8081","uuid":"df2ff9d0-516f-4cff-8df9-1de24c3684ff","wid":"1-12570","page":"search","domain":"webstore","error":{"type":"Error","msg":"read ECONNRESET","stack":"Error: read ECONNRESET\n at exports._errnoException (util.js:1020:11)\n at TLSWrap.onread (net.js:568:26)"}}}
In my application also it is happening and restarting the PM2, Basically our app is developed using Reactjs and NodeJS for back end and using NGINX for API's. It crashes weekly once with the same above mentioned error and restarts the PM2. Any idea how to resolve this?