<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
<blockquote type="cite"><span style="font-family:"Amazon
Ember",sans-serif">looking at diffFiles.sh I was surprised
to see that the memory was limited to 512 MB (-Xmx512m).</span></blockquote>
512 MB of memory is more than enough for most diff operations. But
it is true that you can easily run out of memory when comparing
larger files.<br>
The diffFiles tool can have multiple instances running at the same
time, so if you give it too much heap memory and leave a few
instances running, it can consume a lot of system memory.<br>
<br>
<blockquote type="cite"><span style="font-family:"Amazon
Ember",sans-serif">I believe most of the vmoptions files
set a default memory of ~4 GB.</span></blockquote>
That is the maximum Java heap for the IDE applications like Oxygen
XML Editor/Author/Developer which require a significant amount of
memory to run all the tools within the same Java VM. All the other
separate tools (Diff, SVN) are configured by default to use 512 MB
of Java heap.<br>
<br>
<blockquote type="cite"><span style="font-family:"Amazon
Ember",sans-serif">I changed my local copy but I know the
next minor update will overwrite my changes.</span></blockquote>
For Linux and Windows installations (made with the installer
wizard), <b>if you use the native launchers,
diffFiles/diffFiles.exe</b> that have .vmoptions files, <b>it is
possible to customize the Java flags with a user added vmoptions
file that is not overwritten when updating.</b><br>
For diffFiles you can create a file named
'custom_diffFiles.vmoptions' and specify there the -Xmx argument.
Maybe try -Xmx1g (1 GB) or -Xmx2g (2GB). 4 GB is a bit too much for
a tool that can have multiple instances. You will have to use the
'diffFiles' launcher/script for this to work (not 'diffFiles.sh').<br>
<br>
Note that <b>the .bat/.sh scripts do not use vmoptions files</b><b>
at this time </b>(v21). So, if you are using these scripts you
will have to modify the scripts themselves and yes, these are
overwritten when updating.<br>
<br>
PS: For all Windows/Linux native launchers there is the possibility
to create a 'custom_<launcherName>.vmoptions' file with your
custom Java flags/arguments (one per line) for that launcher.<br>
If you want to add the same custom flags for all the native
launchers, create a file named 'custom_commons.vmoptions'. I would
advise using this for more general flags, not for Java heap (-Xmx).<br>
<br>
Regards,<br>
Adrian<br>
<pre class="moz-signature" cols="72">Adrian Buza
oXygen XML Editor and Author Support
</pre>
<div class="moz-cite-prefix">On 29.03.2019 02:41, Hart, Lee wrote:<br>
</div>
<blockquote type="cite"
cite="mid:98c93da9d6a34f8fbf666f1b4e09f0b4@EX13D13UWB003.ant.amazon.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Amazon Ember";
panose-1:2 11 6 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Amazon Ember",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif">I was resolving merge conflicts for
a modest XML file of ~2500 lines. I was surprised when it
ran out of memory; looking at diffFiles.sh I was surprised
to see that the memory was limited to 512 MB (-Xmx512m).
Shouldn’t that default to a significantly higher value for
the 64-bit install of Oxygen? I believe most of the
vmoptions files set a default memory of ~4 GB.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif">I changed my local copy but I know
the next minor update will overwrite my changes.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Amazon
Ember",sans-serif">Lee<o:p></o:p></span></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>