{"id":18742,"date":"2021-11-23T23:32:12","date_gmt":"2021-11-23T22:32:12","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=18742"},"modified":"2022-01-02T20:34:51","modified_gmt":"2022-01-02T19:34:51","slug":"javascript-heap-out-of-memory-nicht-nur-bei-java","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=18742","title":{"rendered":"JavaScript heap out of memory &#8211; nicht nur bei Java"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-scaled.jpg\" alt=\"\" width=\"2560\" height=\"1919\" class=\"aligncenter size-full wp-image-18747\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-scaled.jpg 2560w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-300x225.jpg 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-1024x768.jpg 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-768x576.jpg 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-1536x1151.jpg 1536w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/Urlaub_2021-2048x1535.jpg 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>Mit nodejs -v -> v12.22.5 bei: sudo npm install -g truffle auf Linux 5.10.63+ armv6l und das im Urlaub! &#8230;<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >\r\n[                  ] - reify:bn.js: timing reify:loadBundles Completed in 60725ms\r\n&lt;--- Last few GCs ---&gt;\r\n\r\n[26319:0x78ce28]  2348321 ms: Scavenge 124.9 (128.3) -&gt; 124.8 (128.5) MB, 88.7 \/ 0.0 ms  (average mu = 0.210, current mu = 0.018) allocation failure\r\n[26319:0x78ce28]  2354454 ms: Mark-sweep 125.2 (128.5) -&gt; 121.5 (128.5) MB, 5680.4 \/ 0.6 ms  (+ 224.7 ms in 27 steps since start of marking, biggest step 56.9 ms, walltime since start of marking 8776 ms) (average mu = 0.358, current mu = 0.486) allocation\r\n\r\n&lt;--- JS stacktrace ---&gt;\r\n\r\n==== JS stack trace =========================================\r\n\r\n    0: ExitFrame [pc: 0xb63b7b60]\r\n    1: StubFrame [pc: 0xb6351600]\r\nSecurity context: 0x35c4ea35 &lt;JSObject&gt;\r\n    2: ssriOpts(aka ssriOpts) [0x4270833d] [\/usr\/share\/nodejs\/ssri\/index.js:~25] [pc=0x3364288c](this=0x31600279 &lt;undefined&gt;,0x4c4dbe6d &lt;Object map = 0x3a4e4e3d&gt;)\r\n    3: new constructor(aka Hash) [0x427047d1] [\/usr\/share\/nodejs\/ssri\/index.js:112] [bytecode=0x40db6531 offset=17](this=0x45340171 &lt;Hash map = 0x47c319d5&gt;,0x453400bd &lt;Str...\r\n\r\nFATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory\r\nAborted<\/pre>\n<p>Ok, was tun? sudo reboot now und nochmal. Ok, der Fehler ist weg, ein anderer. Ok, l\u00f6schen&#8230;<\/p>\n<pre class=\"lang:default decode:true \" >sudo rm -rf \/usr\/local\/lib\/node_modules\/truffle<\/pre>\n<p>und noch mal.<\/p>\n<p>Das dauert &#8230;.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56.png\" alt=\"\" width=\"2608\" height=\"996\" class=\"aligncenter size-full wp-image-18749\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56.png 2608w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56-300x115.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56-1024x391.png 1024w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56-768x293.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56-1536x587.png 1536w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2021\/11\/wenzlaff.de-2021-11-23-um-15.23.56-2048x782.png 2048w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/p>\n<p>und dann der gleiche Fehler &#8230; Ok, dann Versuch abgebrochen &#8230; Urlaub &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mit nodejs -v -> v12.22.5 bei: sudo npm install -g truffle auf Linux 5.10.63+ armv6l und das im Urlaub! &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[3,3137,1023],"tags":[2993,4642,2647,692],"class_list":["post-18742","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-javascript","category-raspberry-pi","tag-heap","tag-javascript","tag-memory","tag-speicher"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/18742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18742"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/18742\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18742"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}