{"id":74598,"date":"2024-01-08T14:19:44","date_gmt":"2024-01-08T14:19:44","guid":{"rendered":"https:\/\/www.baeldung.com\/java-jvm-out-of-memory-during-runtime"},"modified":"2024-01-08T14:19:44","modified_gmt":"2024-01-08T14:19:44","slug":"what-happens-when-the-jvm-runs-out-of-memory-to-allocate-during-runtime","status":"publish","type":"post","link":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/2024\/01\/08\/what-happens-when-the-jvm-runs-out-of-memory-to-allocate-during-runtime\/","title":{"rendered":"What Happens When the JVM Runs Out of Memory to Allocate During Runtime?"},"content":{"rendered":"<p><img src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-1024x536.png\" class=\"webfeedsFeaturedVisual wp-post-image\" alt=\"\" style=\"float: left; margin-right: 5px;\" decoding=\"async\" srcset=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-1024x536.png 1024w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-300x157.png 300w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-768x402.png 768w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-100x52.png 100w, https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured.png 1200w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/p>\n<h2 id=\"bd-overview\" data-id=\"overview\">1. Overview<\/h2>\n<div class=\"bd-anchor\" id=\"overview\"><\/div>\n<p>Defining an appropriate heap size for a JVM application is a crucial step. This might help our application with memory allocation and handling high loads.<strong> However, inefficient heap size, both too small or too big, might affect its performance.<\/strong><\/p>\n<p>In this tutorial, we&#8217;ll learn about the reason for <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-gc-overhead-limit-exceeded\"><em>OutOfMemoryErrors<\/em><\/a> and its connection to the heap size. Also, we&#8217;ll check what we can do about this error and how we can investigate the root cause.<\/p>\n<h2 id=\"bd--xmx-and--xms\" data-id=\"-xmx-and--xms\">2. &#8211;<em>Xmx<\/em> and &#8211;<em>Xms<\/em><\/h2>\n<div class=\"bd-anchor\" id=\"-xmx-and--xms\"><\/div>\n<p><strong>We can control the heap allocation with two dedicated <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/jvm-parameters#explicit-heap-memory---xms-and-xmx-options\">JVM flags<\/a>.<\/strong> The first one, <em>-Xms,\u00a0<\/em>helps us set the heap&#8217;s initial and minimal size. Another one, <em>-Xmx, <\/em>sets the maximum heap size. Several <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-jvm-parameters-rampercentage\">other flags<\/a> can help allocate more dynamically, but they do a similar job overall.<\/p>\n<p>Let&#8217;s check how these flags relate to each other and the <em>OutOfMemoryError<\/em> and how they can cause or prevent it. <strong>To begin with, let&#8217;s clarify the obvious thing: <em>-Xms<\/em> cannot be greater than <em>-Xmx<\/em>.<\/strong> If we don&#8217;t follow this rule, JVM will fail the application at the start:<\/p>\n<pre><code class=\"language-bash\">$ java -Xms6g -Xmx4g\r\nError occurred during initialization of VM\r\nInitial heap size set to a larger value than the maximum heap size<\/code><\/pre>\n<p>Now, let&#8217;s consider a more interesting scenario. <strong>What will happen if we try to allocate more memory than our physical RAM?<\/strong> It depends on the JVM version, architecture, operational system, etc. Some operating systems, like Linux, allow <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/linux\/overcommit-modes\">overcommitting<\/a> and configure overcommitting directly. Others allow overcommitting but do this on their internal heuristics:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/Overcommiting-1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-186525\" src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/Overcommiting-1.png\" alt=\"\" width=\"600\" height=\"451\" \/><\/a><\/p>\n<p>At the same time, we can fail to start an application even if we have enough physical memory because of high fragmentation. Let&#8217;s say we have 4 GB of physical RAM, where around 3 GB is available. <strong>Allocating a heap of 2 GB might be impossible as there are no contiguous segments of this size in RAM:<\/strong><\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/Heap-Fragmentation-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-186535\" src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/Heap-Fragmentation-1.png\" alt=\"\" width=\"600\" height=\"410\" \/><\/a><\/p>\n<p>Some versions of JVMs, especially newer ones, don&#8217;t have such requirements. However, it might affect the object allocation during the runtime.<\/p>\n<h2 id=\"bd-outofmemoryerror-during-runtime\" data-id=\"outofmemoryerror-during-runtime\">3. <em>OutOfMemoryError<\/em> During Runtime<\/h2>\n<div class=\"bd-anchor\" id=\"outofmemoryerror-during-runtime\"><\/div>\n<p>Let&#8217;s say we started our application without any problems. We still have a chance to get <em>OutOfMemoryError<\/em> for several reasons.<\/p>\n<h3 id=\"bd-1-depleating-heap-space\" data-id=\"1-depleating-heap-space\">3.1. Depleating Heap Space<\/h3>\n<div class=\"bd-anchor\" id=\"1-depleating-heap-space\"><\/div>\n<p>The increase in memory consumption may be caused by natural causes, for example, increased activity in our web store during the festive season. <strong>Also, it might happen because of a <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-memory-leaks\">memory leak<\/a>.<\/strong> We can generally distinguish these two cases by checking the GC activity. At the same time, there might be a more complex scenario, such as <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-memory-leaks#5-through-finalize-methods\">finalization delays<\/a> or slow garbage collection threads.<\/p>\n<h3 id=\"bd-2-overcommitting\" data-id=\"2-overcommitting\">3.2. Overcommitting<\/h3>\n<div class=\"bd-anchor\" id=\"2-overcommitting\"><\/div>\n<p>Overcommitting is possible because of the <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/cs\/virtual-memory-vs-swap-space#introduction-to-swap-space\">swap space<\/a>. <strong>We can extend our RAM by dumping some data on a disc.<\/strong> This might result in a significant slowdown, but at the same time, the app won&#8217;t fail. However, it might not be the best or desired solution to this problem. Also, the extreme case for swapping memory is <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/cs\/virtual-memory-thrashing\">thrashing<\/a>, which might freeze the system.<\/p>\n<p>We can think about overcommitting as fractional reserve banking. The RAM doesn&#8217;t have all the required memory it promised to applications. However, when applications start to claim the memory they&#8217;re promised, the OS might start <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/linux\/memory-overcommitment-oom-killer\">killing<\/a> non-important applications to ensure that the rest won&#8217;t fail:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/OOM-Killer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-186526\" src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2024\/01\/OOM-Killer.png\" alt=\"\" width=\"298\" height=\"400\" \/><\/a><\/p>\n<h3 id=\"bd-3-shrinking-heap\" data-id=\"3-shrinking-heap\">3.3. Shrinking Heap<\/h3>\n<div class=\"bd-anchor\" id=\"3-shrinking-heap\"><\/div>\n<p>This problem is connected to overcommitting, but the culprit is the garbage collection heuristic that tries to <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/gc-release-memory\">minimize the footprint<\/a>. <strong>Even if the application successfully claimed the maximum heap size at some point in the lifecycle, it doesn&#8217;t mean that the next time will get it.<\/strong><\/p>\n<p>Garbage collectors might return some unused memory from the heap, and OS can reuse it for different purposes. <strong>At the same time, when the application tries to get it back, the RAM might be already allocated to some other application.<\/strong><\/p>\n<p>We can control it by setting <em>-Xms<\/em> and <em>-Xmx<\/em> to the same values. This way, we get more predictable memory consumption and avoid heap shrinking. However, this might affect resource utilization; thus, it should be used cautiously. <strong>Also, different JVM versions and garbage collectors might behave differently regarding heap shrinking.\u00a0<\/strong><\/p>\n<h2 id=\"bd-outofmemoryerror\" data-id=\"outofmemoryerror\">4. <em>OutOfMemoryError<\/em><\/h2>\n<div class=\"bd-anchor\" id=\"outofmemoryerror\"><\/div>\n<p>Not all <em>OutOfMemoryErrors<\/em> are the same. We have a bunch of flavors, and knowing the difference between them might help us to identify the root cause. We&#8217;ll consider only those that are connected to the scenarios described earlier.<\/p>\n<h3 id=\"bd-1-java-heap-space\" data-id=\"1-java-heap-space\">4.1. Java Heap Space<\/h3>\n<div class=\"bd-anchor\" id=\"1-java-heap-space\"><\/div>\n<p>We can see the following message in the logs: <em>java.lang.OutOfMemoryError: Java heap space.\u00a0<\/em>This describes the problem clearly: we don&#8217;t have space in the heap. The reasons for this might be either a memory leak or an increased load on the application. A significant difference in creation and removal rate might also cause this problem.<\/p>\n<h3 id=\"bd-2-gc-overhead-limit-exceeded\" data-id=\"2-gc-overhead-limit-exceeded\">4.2. GC Overhead Limit Exceeded<\/h3>\n<div class=\"bd-anchor\" id=\"2-gc-overhead-limit-exceeded\"><\/div>\n<p>Sometimes, the application might fail with: <em><a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-gc-overhead-limit-exceeded\">java.lang.OutOfMemoryError: GC Overhead limit exceeded<\/a>.\u00a0<\/em><strong>This happens when the application spends 98% on garbage collection, meaning the throughput is only 2%.<\/strong> This situation describes garbage collection thrashing: the application is active but without useful work.<\/p>\n<h3 id=\"bd-3-out-of-swap-space\" data-id=\"3-out-of-swap-space\">4.3. Out of Swap Space<\/h3>\n<div class=\"bd-anchor\" id=\"3-out-of-swap-space\"><\/div>\n<p>Another type of <em>OutOfMemoryError<\/em> is:<em> java.lang.OutOfMemoryError: request size bytes for reason. Out of swap space? <\/em><strong>This is usually an indicator of overcommitting from the OS side.<\/strong> In this scenario, we still have the capacity in the heap, but the OS cannot provide us with more memory.<\/p>\n<h2 id=\"bd-root-cause\" data-id=\"root-cause\">5. Root Cause<\/h2>\n<div class=\"bd-anchor\" id=\"root-cause\"><\/div>\n<p>At the point when we get <em>OutOfMemoryError<\/em>, there&#8217;s little we can do in our application. Although catching errors is not recommended, it might be reasonable for cleanups or logging purposes in some cases. Sometimes, we can see the code that treats <em>try-catch<\/em> blocks to handle conditional logic. <strong>This is quite an expensive and unreliable hack, which should be avoided in most cases.<\/strong><\/p>\n<h3 id=\"bd-1-garbage-collection-logs\" data-id=\"1-garbage-collection-logs\">5.1. Garbage Collection Logs<\/h3>\n<div class=\"bd-anchor\" id=\"1-garbage-collection-logs\"><\/div>\n<p>While <em>OutOfMemoryError<\/em> provides information about the problem, it&#8217;s insufficient for a deeper analysis. The simplest way is to use <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-verbose-gc\">garbage collection logs<\/a> that don&#8217;t create much overhead while providing essential information about the running application.<\/p>\n<h3 id=\"bd-2-heap-dumps\" data-id=\"2-heap-dumps\">5.2. Heap Dumps<\/h3>\n<div class=\"bd-anchor\" id=\"2-heap-dumps\"><\/div>\n<p>Heap dumps yet another way to have a glance at the application. While we can capture it regularly, this might affect the applications&#8217; performance. The cheapest way to use it is to do the heap dump <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/java-heap-dump-capture#automatically\">automatically<\/a> on <em>OutOfMemoryError<\/em>. Luckily, JVM allows us to set this using <em>-XX:+HeapDumpOnOutOfMemoryError<\/em>. Also, we can set the path for the heap dump with the <em>-XX:HeapDumpPath\u00a0<\/em>flag.<\/p>\n<h3 id=\"bd-3-running-scripts-on-outofmemoryerror\" data-id=\"3-running-scripts-on-outofmemoryerror\">5.3. Running Scripts on <em>OutOfMemoryError<\/em><\/h3>\n<div class=\"bd-anchor\" id=\"3-running-scripts-on-outofmemoryerror\"><\/div>\n<p>To enhance our experience with <em>OutOfMemoryError<\/em>, we can use <em>-XX:OnOutOfMemoryError<\/em> and direct it to the <a href=\"https:\/\/feeds.feedblitz.com\/~\/t\/0\/0\/baeldung\/~https:\/\/www.baeldung.com\/jvm-parameters#handling-out-of-memory\">script<\/a> that will run if the application runs out of memory. This can be used to implement a notification system, send the heap dump to some analysis tool, or restart the application.<\/p>\n<h2 id=\"bd-conclusion\" data-id=\"conclusion\">6. Conclusion<\/h2>\n<div class=\"bd-anchor\" id=\"conclusion\"><\/div>\n<p>In this article, we discussed <em>OutOfMemoryError<\/em>, which indicates a problem external to our application, like other errors. Handling these errors might create even more problems and leave our application inconsistent. The best way to handle this situation is to prevent it from happening in the first place.<\/p>\n<p><strong>Careful memory management and configuration of JVM can help us with this.<\/strong> Also, analyzing garbage collection logs can help us identify the problem&#8217;s reason. Allocating more memory to the application or using additional techniques to ensure that it would be kept alive without understanding the underlying problems isn&#8217;t the right solution and might cause more issues.<\/p>\n<p><Img align=\"left\" border=\"0\" height=\"1\" width=\"1\" alt=\"\" style=\"border:0;float:left;margin:0;padding:0;width:1px!important;height:1px!important;\" hspace=\"0\" src=\"https:\/\/feeds.feedblitz.com\/~\/i\/859577183\/0\/baeldung\"><\/p>\n<div style=\"clear:both;padding-top:0.2em;\"><a title=\"Like on Facebook\" href=\"https:\/\/feeds.feedblitz.com\/_\/28\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/fblike20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Pin it!\" href=\"https:\/\/feeds.feedblitz.com\/_\/29\/859577183\/baeldung,https%3A%2F%2Fwww.baeldung.com%2Fwp-content%2Fuploads%2F2021%2F09%2FJava-5-Featured-1024x536.png\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/pinterest20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Tweet This\" href=\"https:\/\/feeds.feedblitz.com\/_\/24\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/twitter20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Subscribe by email\" href=\"https:\/\/feeds.feedblitz.com\/_\/19\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/email20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a title=\"Subscribe by RSS\" href=\"https:\/\/feeds.feedblitz.com\/_\/20\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/rss20.png\" style=\"border:0;margin:0;padding:0;\"><\/a>&#160;<a rel=\"NOFOLLOW\" title=\"View Comments\" href=\"https:\/\/www.baeldung.com\/java-jvm-out-of-memory-during-runtime#respond\"><img decoding=\"async\" height=\"20\" style=\"border:0;margin:0;padding:0;\" src=\"https:\/\/assets.feedblitz.com\/i\/comments20.png\"><\/a>&#160;<a title=\"Follow Comments via RSS\" href=\"https:\/\/www.baeldung.com\/java-jvm-out-of-memory-during-runtime\/feed\"><img decoding=\"async\" height=\"20\" style=\"border:0;margin:0;padding:0;\" src=\"https:\/\/assets.feedblitz.com\/i\/commentsrss20.png\"><\/a>&#160;<\/div>\n\n<h2><b>Commercials Cooperation Advertisements:<\/b><\/h2>\r\n<p><br>(1) IT Teacher IT Freelance<br> <\/p>\r\n<a href=https:\/\/itteacheritfreelance.hk\/wordpress><img src=http:\/\/gamefootballmobileanimeiphone.com\/wp-content\/uploads\/2023\/09\/ITTeacherITFreelance-Website.png alt=IT\u96fb\u8166\u88dc\u7fd2 java\u88dc\u7fd2 \u70ba\u5927\u5bb6\u914d\u5c0d\u96fb\u8166\u88dc\u7fd2,IT freelance, \u79c1\u4eba\u8001\u5e2b, PHP\u88dc\u7fd2,CSS\u88dc\u7fd2,XML,Java\u88dc\u7fd2,MySQL\u88dc\u7fd2,graphic design\u88dc\u7fd2,\u4e2d\u5c0f\u5b78ICT\u88dc\u7fd2,\u4e00\u5c0d\u4e00\u79c1\u4eba\u88dc\u7fd2\u548cFreelance\u81ea\u7531\u5de5\u4f5c\u914d\u5c0d\u3002\/><\/a><p><a href=https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/findteacher>\u7acb\u523b\u8a3b\u518a\u53ca\u5831\u540d\u96fb\u8166\u88dc\u7fd2\u8ab2\u7a0b\u5427! <\/a><br>\r\n\r\n\u7535\u5b50\u8ba1\u7b97\u673a -\u6559\u80b2 -IT \u96fb\u8166\u73ed\u201d ( IT\u96fb\u8166\u88dc\u7fd2 ) \u63d0\u4f9b\u4e00\u500b\u65b9\u4fbf\u7684\u7535\u5b50\u8ba1\u7b97\u673a \u6559\u80b2\u5e73\u53f0, \u70ba\u5927\u5bb6\u914d\u5c0d\u4fe1\u606f\u6280\u672f, \u96fb\u8166 \u8001\u5e2b, IT freelance \u548c programming expert. \u8b93\u5927\u5bb6\u65b9\u4fbf\u5730\u5c31\u80fd\u627e\u5230\u5408\u9069\u7684\u96fb\u8166\u88dc\u7fd2, \u96fb\u8166\u73ed, \u5bb6\u6559, \u79c1\u4eba\u8001\u5e2b.  <br>\r\n\r\nWe are a education and information platform which you can find a IT private tutorial teacher or freelance. <br>\r\n\r\nAlso we provide different information about information technology, Computer, programming, mobile, Android, apple, game, movie, anime, animation\u2026 \r\n<\/p>\n<p><br>(2) ITSec<br> <\/p><a href=https:\/\/itsec.vip><img src=http:\/\/gamefootballmobileanimeiphone.com\/wp-content\/uploads\/2023\/09\/ITSec-Main-Promotion-Image.png alt= https:\/\/itsec.vip\/\r\nSecure Your Computers from Cyber Threats and mitigate risks with professional services to defend Hackers.  \r\nITSec provide IT Security and Compliance Services, including IT Compliance Services, Risk Assessment, IT Audit, Security Assessment and Audit, ISO 27001 Consulting and Certification, GDPR Compliance Services, Privacy Impact Assessment (PIA), Penetration test, Ethical Hacking, Vulnerabilities scan, IT Consulting, Data Privacy Consulting, Data Protection Services, Information Security Consulting, Cyber Security Consulting, Network Security Audit, Security Awareness Training.\/><\/a> \r\n<br><br> \r\n<p><a href=https:\/\/itsec.vip>www.ITSec.vip<\/a> <br> <br> \r\n<p><a href=https:\/\/sraa.com.hk>www.Sraa.com.hk<\/a> <br> <br> \r\n<p><a href=https:\/\/itsec.hk>www.ITSec.hk<\/a> <br> <br> \r\n<p><a href=https:\/\/penetrationtest.hk>www.Penetrationtest.hk<\/a> <br> <br> \r\n<p><a href=https:\/\/itseceu.uk>www.ITSeceu.uk<\/a> <br> <br> \r\nSecure Your Computers from Cyber Threats and mitigate risks with professional services to defend Hackers. <br><br>\r\nITSec provide IT Security and Compliance Services, including IT Compliance Services, Risk Assessment, IT Audit, Security Assessment and Audit, ISO 27001 Consulting and Certification, GDPR Compliance Services, Privacy Impact Assessment (PIA), Penetration test, Ethical Hacking, Vulnerabilities scan, IT Consulting, Data Privacy Consulting, Data Protection Services, Information Security Consulting, Cyber Security Consulting, Network Security Audit, Security Awareness Training. \r\n<br><br>Contact us right away. <br><br>Email (Prefer using email to contact us): <br>SalesExecutive@ITSec.vip<\/p>","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.baeldung.com\/wp-content\/uploads\/2021\/09\/Java-5-Featured-1024x536.png\" class=\"webfeedsFeaturedVisual wp-post-image\" alt=\"\"><\/p>\n<p>Explore JVM OutOfMemoryError, which indicates a problem external to our application, like other errors.<\/p>\n<div><a title=\"Like on Facebook\" href=\"https:\/\/feeds.feedblitz.com\/_\/28\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/fblike20.png\"><\/a>\u00a0<a title=\"Pin it!\" href=\"https:\/\/feeds.feedblitz.com\/_\/29\/859577183\/baeldung,https%3A%2F%2Fwww.baeldung.com%2Fwp-content%2Fuploads%2F2021%2F09%2FJava-5-Featured-1024x536.png\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/pinterest20.png\"><\/a>\u00a0<a title=\"Tweet This\" href=\"https:\/\/feeds.feedblitz.com\/_\/24\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/twitter20.png\"><\/a>\u00a0<a title=\"Subscribe by email\" href=\"https:\/\/feeds.feedblitz.com\/_\/19\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/email20.png\"><\/a>\u00a0<a title=\"Subscribe by RSS\" href=\"https:\/\/feeds.feedblitz.com\/_\/20\/859577183\/baeldung\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/rss20.png\"><\/a>\u00a0<a rel=\"NOFOLLOW\" title=\"View Comments\" href=\"https:\/\/www.baeldung.com\/java-jvm-out-of-memory-during-runtime#respond\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/comments20.png\"><\/a>\u00a0<a title=\"Follow Comments via RSS\" href=\"https:\/\/www.baeldung.com\/java-jvm-out-of-memory-during-runtime\/feed\"><img decoding=\"async\" height=\"20\" src=\"https:\/\/assets.feedblitz.com\/i\/commentsrss20.png\"><\/a>\u00a0<\/div>\n","protected":false},"author":291,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[22],"tags":[61,122,127,129,124,128,125,132,131,133,126,130,123,66,94,88,97,56,64,65,60,112,40,75,95,104,33,120,105,101,98,115,30,29,41,86,70,69,68,72,71,26,118,108,87,46,55,48,52,54,51,50,83,62,58,57,19905,109,35,59,63,85,79,82,96,80,27,81,114,44,42,43,45,38,39,110,117,100,111,116,73,89,90,92,91,93,84,78,37,102,34,36,77,67,74,99,113,119,28,121,32,47,49,53,103,31,76],"class_list":["post-74598","post","type-post","status-publish","format-standard","hentry","category-mobile","tag-airpods","tag-anime","tag-anime-characters","tag-anime-cosplay","tag-anime-edits","tag-anime-merchandise","tag-anime-movies","tag-anime-news","tag-anime-recommendations","tag-anime-reviews","tag-anime-series","tag-anime-streaming","tag-animes","tag-app-store","tag-app-store-samsung","tag-appgallery","tag-appgallery-oneplus","tag-apple","tag-apple-music","tag-apple-tv","tag-apple-watch","tag-bbc-sport","tag-best-mobile-games","tag-bixby","tag-bixby-xiaomi","tag-champions-league","tag-cyberpunk","tag-cyberpunk-2077","tag-fantasy-football","tag-fifa","tag-football","tag-formula-1","tag-fortnite","tag-free-fire","tag-free-mobile-games","tag-freebuds-pro","tag-galaxy-a52","tag-galaxy-note-20","tag-galaxy-s21","tag-galaxy-watch-4","tag-galaxy-z-fold-3","tag-game","tag-games","tag-golf","tag-harmonyos","tag-how-to-backup-iphone","tag-how-to-factory-reset-iphone","tag-how-to-reset-iphone","tag-how-to-restore-iphone","tag-how-to-unlock-iphone","tag-how-to-unlock-iphone-5","tag-how-to-unlock-iphone-6","tag-huawei","tag-ios","tag-ipad","tag-iphone","tag-jvm-flags","tag-live-soccer","tag-lol","tag-macbook","tag-macos","tag-mate-40-pro","tag-mi-11-lite","tag-mi-home-security-camera-basic-1080p","tag-mi-home-security-camera-basic-1080p-huawei","tag-mi-smart-band-6","tag-minecraft","tag-miui","tag-mlb-scores","tag-mobile-game-design","tag-mobile-game-development","tag-mobile-game-marketing","tag-mobile-game-monetization","tag-mobile-games","tag-mobile-gaming","tag-nba-scores","tag-nba-standings","tag-nfl","tag-nfl-scores","tag-nhl-scores","tag-one-ui","tag-oneplus","tag-oneplus-9-pro","tag-oneplus-buds-pro","tag-oneplus-nord-ce-5g","tag-oxygenos","tag-p40-pro-plus","tag-poco-x3-pro","tag-pokemon","tag-premier-league","tag-pubg","tag-pubg-mobile","tag-redmi-note-10-pro","tag-samsung","tag-samsung-pay","tag-soccer","tag-sports","tag-steam","tag-steeam","tag-top-10-anime","tag-valorant","tag-when-do-the-iphone-7-come-out","tag-when-does-the-iphone-7-come-out","tag-when-is-the-iphone-7-coming-out","tag-world-cup","tag-xbox-series-x","tag-xiaomi"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/posts\/74598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/users\/291"}],"replies":[{"embeddable":true,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/comments?post=74598"}],"version-history":[{"count":1,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/posts\/74598\/revisions"}],"predecessor-version":[{"id":74599,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/posts\/74598\/revisions\/74599"}],"wp:attachment":[{"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/media?parent=74598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/categories?post=74598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gamefootballmobileanimeiphone.com\/index.php\/wp-json\/wp\/v2\/tags?post=74598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}