{"id":413943,"date":"2024-06-29T23:27:20","date_gmt":"2024-06-29T23:27:20","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=413943"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-06-29T23:27:20","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=413943","title":{"rendered":"<span>\u041a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043b\u0438 \u043d\u0430 Node.JS v16, \u0438\u043b\u0438 \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0441\u043b\u043e\u043c\u0430\u043d\u043d\u043e\u043c GC<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">26 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 2021 \u0433\u043e\u0434\u0430 \u0432\u044b\u0448\u0435\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 <a href=\"https:\/\/nodejs.org\/en\/blog\/release\/v16.13.0\/\">Node.JS 16.13.0<\/a> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b Active LTS.<\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043b\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0448 <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/487380\/\">\u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 PostgreSQL<\/a> \u0438 \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u2014 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qj\/2c\/yd\/qj2cydetffi3era8uhj5ky3mjjo.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qj\/2c\/yd\/qj2cydetffi3era8uhj5ky3mjjo.png\"\/><\/div>\n<p><a name=\"habracut\"><\/a><br \/>  \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 Node.Js \u0443\u0434\u043e\u0431\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b <a href=\"https:\/\/github.com\/nvm-sh\/nvm\">nvm<\/a>.<\/p>\n<pre><code class=\"bash\">nvm install 16.13.0<\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0435 <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/516384\/\">\u043a\u043e\u043b\u043b\u0435\u043a\u0442\u043e\u0440\u044b<\/a> \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0434 Node.Js v16 \u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0437\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041c\u044b \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u0440\u0438\u043a \u2014 \u043f\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0432 \u0446\u0435\u043b\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432, \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441\u0440\u0435\u0434\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0422\u0430\u043a \u0447\u0442\u043e \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u0443\u0442\u0441\u044f \u043d\u0435\u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u043c\u0438. \u041a\u0441\u0442\u0430\u0442\u0438, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0435 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/533738\/\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 Node.Js v14 \u043f\u0440\u0438 \u0442\u043e\u0439 \u0436\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u043c\u044b \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u044b GC.<\/p>\n<p>  \u0418 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0438\u043b\u044c\u043d\u043e\u0435 \u0443\u0445\u0443\u0434\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c event-loop latency:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/cb\/wa\/40\/cbwa40rkxra5smymcccfogfpgue.png\" data-src=\"https:\/\/habrastorage.org\/webt\/cb\/wa\/40\/cbwa40rkxra5smymcccfogfpgue.png\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f latency? \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0444\u0430\u0439\u043b\u0438\u043d\u0433 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f latency \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f GC:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/e2\/-n\/wk\/e2-nwkbtmlebqmgkuadw5y2e4jo.png\" data-src=\"https:\/\/habrastorage.org\/webt\/e2\/-n\/wk\/e2-nwkbtmlebqmgkuadw5y2e4jo.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0440\u0430\u043d\u043d\u0438\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 v16 \u2014 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u043e\u0442 \u0436\u0435.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u0430\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043d\u0430 Node.Js v14 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f GC \u0438 latency \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u043e\u0440\u043c\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/cj\/u5\/ya\/cju5yaecd96yhpncqcqbmvrxxxo.png\" data-src=\"https:\/\/habrastorage.org\/webt\/cj\/u5\/ya\/cju5yaecd96yhpncqcqbmvrxxxo.png\"\/><\/p>\n<p>  \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f event-loop latency \u0432 v16 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u043a\u0438\u0435-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0441\u0430\u043c\u043e\u0439 Node.JS, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 \u0440\u0430\u0431\u043e\u0442\u0435 GC.<\/p>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0449\u0435 \u0440\u0430\u0437 <a href=\"https:\/\/nodejs.org\/en\/blog\/release\/v16.13.0\/\">Release Notes<\/a>, \u043d\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0439 \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445 \u0432 GC \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043c. <\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <a href=\"https:\/\/v8.dev\/\">\u0440\u0435\u043b\u0438\u0437\u0430\u0445 V8<\/a>, \u0442.\u043a. \u0432 Node.Js v16 \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0432\u0435\u0442\u043a\u0443 V8 version 9, \u043d\u043e \u0438 \u0442\u0430\u043c \u043d\u0438\u0447\u0435\u0433\u043e.<\/p>\n<p>  \u0427\u0442\u043e \u0435\u0449\u0435 \u043c\u043e\u0433\u043b\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 GC?<\/p>\n<p>  \u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f V8:<\/p>\n<pre><code class=\"bash\">node --v8-options<\/code><\/pre>\n<p>  \u0438 \u0432\u0438\u0434\u0438\u043c \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/is\/fa\/p0\/isfap0poyvmdegpremchnvwfbbc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/is\/fa\/p0\/isfap0poyvmdegpremchnvwfbbc.png\"\/><\/p>\n<p>  \u0442.\u0435. \u043e\u0431\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430 Orinoco \u2014 concurrent_marking \u0438 parallel_marking, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 Node.Js \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 v10, \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0432 v16!<\/p>\n<p>  \u041e\u0431 \u044d\u0442\u0438\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f\u0445 GC \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/v8.dev\/blog\/concurrent-marking\">\u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u043d\u043e \u0435\u0441\u043b\u0438 \u043a\u0440\u0430\u0442\u043a\u043e \u2014 \u0432 \u043f\u0440\u0435\u0436\u043d\u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u0445 GC \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00abstop-the-world\u00bb:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/rt\/j_\/3b\/rtj_3bbd6bidypwcurqhwj3ntqg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/rt\/j_\/3b\/rtj_3bbd6bidypwcurqhwj3ntqg.png\"\/><\/p>\n<p>  \u043d\u043e\u0432\u044b\u0439 GC \u0432\u044b\u043d\u043e\u0441\u0438\u0442 \u0447\u0430\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u043c\u0443\u0441\u043e\u0440\u0430 \u0432 \u043f\u0443\u043b \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0441\u043d\u0438\u0436\u0430\u044f \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 GC \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0441\u043d\u0438\u0436\u0430\u044f \u0435\u0433\u043e \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ks\/rc\/cm\/ksrccmpdxaxmwtswym2kkjrnaxg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ks\/rc\/cm\/ksrccmpdxaxmwtswym2kkjrnaxg.png\"\/><\/p>\n<p>  GC \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0440\u0430\u0437\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 65-70%:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/su\/d1\/cc\/sud1ccu6fy9116edxqlu5nsbhyk.png\" data-src=\"https:\/\/habrastorage.org\/webt\/su\/d1\/cc\/sud1ccu6fy9116edxqlu5nsbhyk.png\"\/><\/p>\n<p>  \u0422.\u0435. \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0439 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 GC \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044e event-loop latency. \u041a\u0430\u043a \u0440\u0430\u0437 \u043d\u0430\u0448 \u0441\u043b\u0443\u0447\u0430\u0439!<\/p>\n<p>  \u041f\u0440\u043e\u0431\u0443\u0435\u043c \u0438\u0445 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c:<\/p>\n<pre><code class=\"bash\">node --concurrent-marking --parallel-marking<\/code><\/pre>\n<p>  \u0418 \u0441\u043d\u043e\u0432\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u2014 node \u0432\u044b\u0434\u0430\u0435\u0442 \u0444\u0430\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043e\u0448\u0438\u0431\u043a\u0443 \u0441 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0435\u0439 core dump:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ef\/aw\/nb\/efawnbszdkaqrcdixx1yj-dfgfs.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ef\/aw\/nb\/efawnbszdkaqrcdixx1yj-dfgfs.png\"\/><\/p>\n<p>  \u041f\u043e\u0440\u044b\u0432\u0448\u0438\u0441\u044c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445, \u043d\u0430\u0448\u043b\u0438 \u0447\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u044d\u0442\u0438 \u043e\u043f\u0446\u0438\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/tx\/l7\/rs\/txl7rsxjzjzegxykqn-8kidic5g.png\" data-src=\"https:\/\/habrastorage.org\/webt\/tx\/l7\/rs\/txl7rsxjzjzegxykqn-8kidic5g.png\"\/><\/p>\n<p>  \u041f\u0440\u0438\u0447\u0438\u043d\u0443 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438, \u043d\u043e \u0434\u043b\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c <a href=\"https:\/\/github.com\/nodejs\/node\/issues\/41012\">Bug report<\/a>. \u041e\u0448\u0438\u0431\u043a\u0443 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e <a href=\"https:\/\/github.com\/nodejs\/node\/pull\/41013\">\u0438\u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0438<\/a> \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/github.com\/nodejs\/node\/pull\/41013\/files\">patch<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0435\u0449\u0435 \u043d\u0435\u0442 \u0432 <a href=\"https:\/\/nodejs.org\/en\/blog\/release\/v16.13.1\/\">Node.Js 16.13.1<\/a>, \u043d\u043e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0440\u0435\u043b\u0438\u0437\u0435 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442.<\/p>\n<p>  \u041c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0441\u043e\u0431\u0440\u0430\u0442\u044c Node.Js \u0441 \u044d\u0442\u0438\u043c \u043f\u0430\u0442\u0447\u0435\u043c, \u043d\u0430 RHEL 7 \u0441\u0440\u0430\u0437\u0443 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u2014 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 Node.JS \u043d\u0430 Linux \u043f\u043e\u0434\u043d\u044f\u0442\u044b \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a <a href=\"https:\/\/github.com\/nodejs\/node\/pull\/37871\">gcc \u0434\u043e 8.3<\/a>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/4f\/si\/nu\/4fsinuvjl-g8jvnugtuqswbc_za.png\" data-src=\"https:\/\/habrastorage.org\/webt\/4f\/si\/nu\/4fsinuvjl-g8jvnugtuqswbc_za.png\"\/><\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Linux \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b devtoolset-8 \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u041e\u0421.<br \/>  \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c\u0441\u044f, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c Node.Js \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  \u041e\u043f\u0446\u0438\u0438 &#8212;concurrent-marking \u0438 &#8212;parallel-marking \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ee\/3f\/26\/ee3f26qg_ymrf7yhzibgiabgnwg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ee\/3f\/26\/ee3f26qg_ymrf7yhzibgiabgnwg.png\"\/><\/p>\n<p>  Garbage collector \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u0442 2-3% \u0432\u043c\u0435\u0441\u0442\u043e 13:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/r7\/nd\/a1\/r7nda1knkyv3znlqpywck_qg06s.png\" data-src=\"https:\/\/habrastorage.org\/webt\/r7\/nd\/a1\/r7nda1knkyv3znlqpywck_qg06s.png\"\/><\/p>\n<p>  Event-loop latency \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043d\u0438\u0437\u0438\u043b\u0438\u0441\u044c:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/y1\/ps\/iq\/y1psiqltcgkkwhvjk_hypgd-evw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/y1\/ps\/iq\/y1psiqltcgkkwhvjk_hypgd-evw.png\"\/><\/p>\n<p>  \u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u2014 latency \u0434\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0430\u0442\u0447\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/xj\/0k\/ni\/xj0kniqy1uhg9cvmkol0ez3eckc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/xj\/0k\/ni\/xj0kniqy1uhg9cvmkol0ez3eckc.png\"\/><\/p>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0432 \u043d\u043e\u0440\u043c\u0443.<\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0431\u0449\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a (CPU, \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0442.\u043f.) \u043d\u0435 \u0432\u044b\u044f\u0432\u0438\u043b \u0431\u044b \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443. \u041d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/533738\/\">\u0434\u0435\u043b\u0430\u0435\u043c \u043c\u044b<\/a> \u0434\u043b\u044f <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/487380\/\">\u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 PostgreSQL<\/a>.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/habr.com\/ru\/users\/kilor\/\" class=\"user_link\">Kilor<\/a> \u0438 <a href=\"https:\/\/habr.com\/ru\/users\/andrydl\/\" class=\"user_link\">andrydl<\/a> \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0432 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0435 \u0441\u0442\u0430\u0442\u044c\u0438.<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/593607\/\"> https:\/\/habr.com\/ru\/articles\/593607\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">26 \u043e\u043a\u0442\u044f\u0431\u0440\u044f 2021 \u0433\u043e\u0434\u0430 \u0432\u044b\u0448\u0435\u043b \u043d\u043e\u0432\u044b\u0439 \u0440\u0435\u043b\u0438\u0437 <a href=\"https:\/\/nodejs.org\/en\/blog\/release\/v16.13.0\/\">Node.JS 16.13.0<\/a> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0442\u0430\u043b Active LTS.<\/p>\n<p>  \u041a\u0430\u043a \u043c\u044b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043b\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e \u043d\u0430\u0448 <a href=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/487380\/\">\u0441\u0435\u0440\u0432\u0438\u0441 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043b\u043e\u0433\u043e\u0432 PostgreSQL<\/a> \u0438 \u0441 \u043a\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u2014 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qj\/2c\/yd\/qj2cydetffi3era8uhj5ky3mjjo.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qj\/2c\/yd\/qj2cydetffi3era8uhj5ky3mjjo.png\"\/><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-413943","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/413943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=413943"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/413943\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=413943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=413943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=413943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}