<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tech_onoue</author_name>
  <author_url>https://blog.hatena.ne.jp/tech_onoue/</author_url>
  <blog_title>while(life)tech_onoue++;</blog_title>
  <blog_url>https://tech-onoue.hatenadiary.org/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Java でプログラムを書いていると、 たまに容量が足りなくて Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: Java heap space なんてエラーが出るときがあります。 そんなときには、バーチャルマシンのヒープサイズを変えてやれば大丈夫です。 たとえば、初期のヒープサイズを128MB、最大を256MBにしたい場合のオプションは java -Xms128m -Xmx256m 実行したいクラス名 となります。 詳しいオプションに関しては、 java -Xで出てきます。 また、以下のURLに ヒープサイズを設定するときに良くある…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-onoue.hatenadiary.org%2Fentry%2F20080508%2F1210230567&quot; title=&quot;バーチャルマシンのヒープサイズを変えるオプションについて - while(life)tech_onoue++;&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-05-08 16:09:27</published>
  <title>バーチャルマシンのヒープサイズを変えるオプションについて</title>
  <type>rich</type>
  <url>https://tech-onoue.hatenadiary.org/entry/20080508/1210230567</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
