Re: [Ikvm-developers] How can I pass -Xms2g -Xmx2g parameters to the IKVM.NET JVM? v:ikvm-7.0.4335.
Brought to you by:
jfrijters
|
From: Volker B. <vol...@go...> - 2012-02-09 22:08:52
|
Hi, There is no separate Java VM inside from .NET. The class java.util.concurrent.ConcurrentHashMap is now a .NET class. Because the .NET framefork has not such parameter that IKVM will never have such parameter. How many memory consume your process if the error occur? Can you make a reproducible sample for us? Volker Am 09.02.2012 20:22, schrieb Pasham, Rampradeep: > > Hi Volker, Thanks for your response. > > I understand .NET has no memory limits. As I mentioned, when a Java > program is compiled using ikvmc and is running on the IKVM.NET JVM, I > am getting java.lang.OutOfMemoryError while trying to expand the > java.util.concurrent.ConcurrentHashMap. which makes me think that the > JVM is using the memory in the same way as a HotSpot JVM would. At the > time of trying to expand java.util.concurrent.ConcurrentHashMap, the > JVM is not able to find enough consecutive memory buffer that is > causing it to throw the OutOfMemoryError. The system this application > is running is 64bit and has a lot of memory at it's disposal, but > still I get this OOM. I was wondering if we can pass --Xsm2g argument > to the IKVM.NET JVM somehow as a command line so as to pre-allocate 2g > memory for this JVM to play around at runtime. I understand that we > might still run in OOM even in this case, but at least we can assign > more memory for the next run. > > You can look at the way --Xsm and --Xsx work with the Hotspot jvm. > > Thanks! > > *From:*Volker Berlin [mailto:VB...@in...] > *Sent:* Thursday, February 09, 2012 2:36 AM > *To:* ikv...@li... > *Subject:* Re: [Ikvm-developers] How can I pass -Xms2g -Xmx2g > parameters to the IKVM.NET JVM? v:ikvm-7.0.4335.0 > > Hi, > > I think .NET has no memory limit. That there are no such command line > switch. How many memory consume your process? > > Volker > > *Von:*Pasham, Rampradeep [mailto:Ram...@sa...] > <mailto:[mailto:Ram...@sa...]> > *Gesendet:* Mittwoch, 8. Februar 2012 21:45 > *An:* ikv...@li... > <mailto:ikv...@li...> > *Betreff:* [Ikvm-developers] How can I pass -Xms2g -Xmx2g parameters > to the IKVM.NET JVM? v:ikvm-7.0.4335.0 > > Hi Guys, First of all I have to congratulate you for this wonderful > product. And Thanks! > > I am trying to invoke market data api in Java from my .Net > application. For this I complied all the dependent jars to dlls and > used in my .Net application. Everything worked fine until I started > using api calls that would require more memory for the java objects. I > started getting the java.lang.OutOfMemoryError while trying to expand > the java.util.concurrent.ConcurrentHashMap. Running the same requests > directly in java doesn't cause this OutOfMemoryError. > > How does the IKCM.NET JVM handle memory re-allocations? Is there a way > we can pre-assign memory for this JVM by using --Xms2g --Xmx2g type of > arguments like we pass to Java standard JVM at startup? > > Thanks in advance! > > Ram > > ------------------------------------------------------------------------ > > DISCLAIMER: This e-mail message and any attachments are intended > solely for the use of the individual or entity to which it is > addressed and may contain information that is confidential or legally > privileged. If you are not the intended recipient, you are hereby > notified that any dissemination, distribution, copying or other use of > this message or its attachments is strictly prohibited. If you have > received this message in error, please notify the sender immediately > and permanently delete this message and any attachments. > > > ------------------------------------------------------------------------ > DISCLAIMER: This e-mail message and any attachments are intended > solely for the use of the individual or entity to which it is > addressed and may contain information that is confidential or legally > privileged. If you are not the intended recipient, you are hereby > notified that any dissemination, distribution, copying or other use of > this message or its attachments is strictly prohibited. If you have > received this message in error, please notify the sender immediately > and permanently delete this message and any attachments. > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |