Re: How to fix memory leak issue when calling Java from .net?

Asif Iqbal <[email protected]> Thu, 14 May 2015 11:56:21 -0500
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Thanks. I didn't realize that. In order to build the source code for .net 4.0, I will need OpenJdk dlls. Can I use IKVM.OpenJDK.* dlls from compiled version of IKVM?

Thanks,
-Asif

> On May 14, 2015, at 4:42 AM, Jeroen Frijters <[email protected]> wrote:
> 
> If drools is dynamically loading Java classes (i.e. not ikvmc compiled code), then that code will not be garbage collected when running on the released ikvm binaries. This is because ikvm still targets .NET 2.0 and that does not support code GC. If you want to enable class GC, you'll need to build ikvm from source, targetting .NET 4.0.
> 
> Regards,
> Jeroen
> 
>> -----Original Message-----
>> From: Asif Iqbal [mailto:[email protected]]
>> Sent: Thursday, May 14, 2015 3:00
>> To: [email protected]
>> Subject: [Ikvm-developers] How to fix memory leak issue when calling
>> Java from .net?
>> 
>> Hi,
>> I have converted drools 6.2 to .net dll using ikvmc. Every thing is
>> working fine but I have noticed that every time I reload an object the
>> previous instance doesn't go away and it takes more time to reload. Does
>> anyone know how to release or destroy the Java object in .net?
>> 
>> Thanks,
>> -Asif
>> ------------------------------------------------------------------------
>> ------
>> One dashboard for servers and applications across Physical-Virtual-Cloud
>> Widest out-of-the-box monitoring support with 50+ applications
>> Performance metrics, stats and reports that give you Actionable Insights
>> Deep dive visibility with transaction tracing using APM Insight.
>> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>> _______________________________________________
>> Ikvm-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ikvm-developers

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y