<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Calling Java from MATLAB, Memory Issues</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Tue, 14 Feb 2012 21:36:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joseph Fitzgerald</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-8481</link>
		<dc:creator>Joseph Fitzgerald</dc:creator>
		<pubDate>Wed, 08 Feb 2012 23:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-8481</guid>
		<description>When I call a Java method from Matlab, is the memory copied to the Java heap?  And then when I return data from Java to Matlab is that data copied to the Matlab heap?  If so, is this a big performance concern that I should try to optimize (reduce the passing of data between heaps)?  Thanks!</description>
		<content:encoded><![CDATA[<p>When I call a Java method from Matlab, is the memory copied to the Java heap?  And then when I return data from Java to Matlab is that data copied to the Matlab heap?  If so, is this a big performance concern that I should try to optimize (reduce the passing of data between heaps)?  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yair Altman</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7980</link>
		<dc:creator>Yair Altman</dc:creator>
		<pubDate>Sun, 07 Aug 2011 19:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7980</guid>
		<description>@Irad - you can activate Java&#039;s garbage collector programmatically by calling: java.lang.System.gc

Of course, this does not really solve true memory problems. You actually need to do the much harder work of identifying your memory leaks and solving them. System.gc is merely a temporary band-aid.</description>
		<content:encoded><![CDATA[<p>@Irad &#8211; you can activate Java&#8217;s garbage collector programmatically by calling: java.lang.System.gc</p>
<p>Of course, this does not really solve true memory problems. You actually need to do the much harder work of identifying your memory leaks and solving them. System.gc is merely a temporary band-aid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irad</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7971</link>
		<dc:creator>Irad</dc:creator>
		<pubDate>Tue, 02 Aug 2011 10:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7971</guid>
		<description>I have a similar problem with a GUI I&#039;ve written, and the matlab garbage collector is not efficient enough, but when I use the &quot;Perform GC&quot; on the JMC I get a very good collection.
the GUI is intended for end users.

is there a way to improve the collection without installing a java heap monitoring tool?</description>
		<content:encoded><![CDATA[<p>I have a similar problem with a GUI I&#8217;ve written, and the matlab garbage collector is not efficient enough, but when I use the &#8220;Perform GC&#8221; on the JMC I get a very good collection.<br />
the GUI is intended for end users.</p>
<p>is there a way to improve the collection without installing a java heap monitoring tool?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shirley Zheng</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7690</link>
		<dc:creator>Shirley Zheng</dc:creator>
		<pubDate>Fri, 15 Apr 2011 15:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7690</guid>
		<description>Mike:

It&#039;s a good articles. But I have a different question to ask:

I called a java class in my .m file 350 times, it works perfect.  then I put all the java class and libraries in two jar file, one has java libraries, the other one has java classes.  Now the program works ok, but I wonder if there will be any special requirement when I compile the m file into executables?

Thanks

Shirley</description>
		<content:encoded><![CDATA[<p>Mike:</p>
<p>It&#8217;s a good articles. But I have a different question to ask:</p>
<p>I called a java class in my .m file 350 times, it works perfect.  then I put all the java class and libraries in two jar file, one has java libraries, the other one has java classes.  Now the program works ok, but I wonder if there will be any special requirement when I compile the m file into executables?</p>
<p>Thanks</p>
<p>Shirley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7167</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Wed, 07 Jul 2010 15:02:07 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7167</guid>
		<description>@enkh,
 I&#039;m not sure what you&#039;re asking. For C code to be useful it has to be compiled and linked (hence the dll). You can create a &lt;a href=&quot;http://www.mathworks.com/support/tech-notes/1600/1605.html&quot; rel=&quot;nofollow&quot;&gt;C MEX function&lt;/a&gt;, compile that and use it from MATLAB, if that&#039;s what you&#039;re asking?</description>
		<content:encoded><![CDATA[<p>@enkh,<br />
 I&#8217;m not sure what you&#8217;re asking. For C code to be useful it has to be compiled and linked (hence the dll). You can create a <a href="http://www.mathworks.com/support/tech-notes/1600/1605.html" rel="nofollow">C MEX function</a>, compile that and use it from MATLAB, if that&#8217;s what you&#8217;re asking?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enkh</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7159</link>
		<dc:creator>enkh</dc:creator>
		<pubDate>Tue, 06 Jul 2010 17:48:34 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7159</guid>
		<description>Hi Mike,

Can i call C function instead of C dll from Matlab?</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Can i call C function instead of C dll from Matlab?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7107</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 11 Jun 2010 14:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7107</guid>
		<description>@Jason,

 I made this graph with a Java profiling program called JProfiler on top of a debug build of MATLAB.</description>
		<content:encoded><![CDATA[<p>@Jason,</p>
<p> I made this graph with a Java profiling program called JProfiler on top of a debug build of MATLAB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7097</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Wed, 09 Jun 2010 17:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/08/17/calling-java-from-matlab-memory-issues/#comment-7097</guid>
		<description>Hi Michael,

Thank you for the nice article, very informative. I am wondering what tool you were using to monitor the memory usage and produce the animated graph?

Best,
Jason</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>Thank you for the nice article, very informative. I am wondering what tool you were using to monitor the memory usage and produce the animated graph?</p>
<p>Best,<br />
Jason</p>
]]></content:encoded>
	</item>
</channel>
</rss>

