{"id":615,"date":"2014-03-31T16:58:49","date_gmt":"2014-03-31T20:58:49","guid":{"rendered":"http:\/\/www.peteonsoftware.com\/?p=615"},"modified":"2014-03-31T17:01:22","modified_gmt":"2014-03-31T21:01:22","slug":"sql-power-architect-java-heap-space-error","status":"publish","type":"post","link":"https:\/\/www.peteonsoftware.com\/index.php\/2014\/03\/31\/sql-power-architect-java-heap-space-error\/","title":{"rendered":"Sql Power Architect Java Heap Space Error"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201403\/SqlPowerArchitectLogo.png\" alt=\"Sql Power Architect\" title=\"Sql Power Architect\" style=\"float: left; margin: .5em;\" \/>This is definitely going to be one of those posts where I&#8217;m posting this not only for others to find while they are Binging and Googling, but for future Pete to come back and re-figure out how to do something that took him some time to figure out in the first place.  I&#8217;ve had several posts like that (<a href=\"https:\/\/www.peteonsoftware.com\/index.php\/2009\/12\/11\/creating-a-comma-separated-list-from-a-sql-grouping\/\">this gem<\/a> chief among them), and this sort of situation is a very good reason to have a blog.  Blogs are good places for a brain dump.<\/p>\n<p>My issue this time was with a tool called <a href=\"http:\/\/www.sqlpower.ca\/page\/architect\">Sql Power Architect<\/a>.  Sql Power Architect is a data modeling tool that I was using kind of as an <a href=\"http:\/\/erwin.com\/\">Erwin<\/a>-lite due to Erwin&#8217;s super high price tag and Architect&#8217;s free community edition.  <\/p>\n<p>I was trying to make a diagram of a database that I was being asked to examine for issues.  I was able to reverse engineer the database and lay it out like so:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201403\/TestDatabase.jpg\" alt=\"Sql Power Architect Test Database Diagram\" title=\"Sql Power Architect Test Database Diagram\" \/><\/p>\n<p>However, when I tried to generate the PDF of this diagram, I got this error:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201403\/ErrorJavaHeapspace.jpg\" alt=\"Sql Power Architect Java Heapspace Error\" title=\"Sql Power Architect Java Heapspace Error\" \/> <\/p>\n<p>So, I did some searching and I wanted to increase the Java heap size, but only for that application if possible.  I don&#8217;t run that many Java programs on my machine and I definitely didn&#8217;t want to upset the delicate balance of the Android environment that I have set up on the Windows side (which, incidentally is way more &#8220;picky&#8221; that the Android environment on the Mac side). <\/p>\n<p>What I found is the Xmx switch for the java command line.  I navigated to the Sql Power Architect install folder and figured out that architect.exe probably just called architect.java under the covers, so I executed this command below:<\/p>\n<pre>\r\njava -Xmx1024m -jar architect.jar\r\n<\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201403\/JavaWithXmxSwitch.jpg\" alt=\"Sql Power Architect With Xmx Switch\" title=\"Sql Power Architect With Xmx Switch\" \/> <\/p>\n<p>That fired up the program with a 1 gig heap size.  After that, I loaded my diagram and was able to export it to PDF without any issues.  <\/p>\n<p>The finished PDF:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201403\/PdfSuccess.jpg\" alt=\"Sql Power Architect Pdf Success\" title=\"Sql Power Architect Pdf Success\" \/> <\/p>\n<p>As I said, hopefully this post can be helpful to some poor soul in the future (even if that soul is me).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is definitely going to be one of those posts where I&#8217;m posting this not only for others to find while they are Binging and Googling, but for future Pete to come back and re-figure &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,20],"tags":[89,91],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-code-tips","category-fluff","tag-code-tips","tag-fluff"],"_links":{"self":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/comments?post=615"}],"version-history":[{"count":0,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/615\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/media?parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/categories?post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/tags?post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}