{"id":405,"date":"2013-09-25T15:38:27","date_gmt":"2013-09-25T14:38:27","guid":{"rendered":"http:\/\/hirt.se\/blog\/?p=405"},"modified":"2013-09-25T15:38:27","modified_gmt":"2013-09-25T14:38:27","slug":"my-jmc-is-hungry","status":"publish","type":"post","link":"https:\/\/hirt.se\/blog\/?p=405","title":{"rendered":"My JMC is Hungry!"},"content":{"rendered":"<p>I just realized that I could not open my favourite example recordings using the standard settings included in JMC. It seems sometimes the heuristics for the default max heap size on the 32-bit HotSpot JVM results in a relatively modest value. So, if you are seeing this a lot\u2026<\/p>\n<p><a href=\"https:\/\/hirt.se\/blog\/wp-content\/uploads\/2013\/09\/image1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px;border-bottom-width: 0px;border-left-width: 0px;padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/hirt.se\/blog\/wp-content\/uploads\/2013\/09\/image_thumb1.png\" width=\"644\" height=\"431\" \/><\/a><\/p>\n<p>\u2026the next step would be to try to get JMC a bit more memory. The easiest way to do this is to simply edit the jmc.ini file, which is located next to the jmc launcher in the bin folder of the JDK. It will typically look something like this:<\/p>\n<p> <code>-startup    <br \/>..\/lib\/missioncontrol\/plugins\/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar     <br \/>--launcher.library     <br \/>..\/lib\/missioncontrol\/plugins\/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807     <br \/>-vm     <br \/>.\/javaw.exe     <br \/>-vmargs     <br \/>-XX:+UseG1GC     <br \/>-XX:+UnlockCommercialFeatures     <br \/>-XX:+FlightRecorder     <br \/>-Djava.net.preferIPv4Stack=true     <br \/><\/code>  <\/p>\n<p>&#160;<\/p>\n<p>What you would typically want next is to set the max heap and initial heap to the same, and to as much as you can possibly afford. On my tiny laptop, maybe something like a gig or so:<\/p>\n<p><code>-startup      <br \/>..\/lib\/missioncontrol\/plugins\/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar       <br \/>--launcher.library       <br \/>..\/lib\/missioncontrol\/plugins\/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807       <br \/>-vm       <br \/>.\/javaw.exe       <br \/>-vmargs       <br \/>-XX:+UseG1GC       <br \/>-Xmx1024m       <br \/>-Xms1024m       <br \/>-XX:+UnlockCommercialFeatures       <br \/>-XX:+FlightRecorder       <br \/>-Djava.net.preferIPv4Stack=true<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just realized that I could not open my favourite example recordings using the standard settings included in JMC. It seems sometimes the heuristics for the default max heap size on the 32-bit HotSpot JVM results in a relatively modest value. So, if you are seeing this a lot\u2026 \u2026the next step would be to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-java-mission-control-fair-dj"],"_links":{"self":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=405"}],"version-history":[{"count":1,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":406,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions\/406"}],"wp:attachment":[{"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hirt.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}