<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="http://www.comsol.com/community/forums/general/rss/thread/1664.rss" rel="self" type="application/rss+xml"/>
  <title>COMSOL Forums: outofmemory</title>
  <link>http://www.comsol.com/community/forums/general/thread/1664/</link>
  <description>Most recent forum messages</description>
  <pubDate>Sun, 21 Mar 2010 08:34:29 +0000</pubDate>
  <image>
   <title>COMSOL Forums: outofmemory</title>
   <url>http://www.comsol.com/shared/images/logos/comsol_logo.gif</url>
   <link>http://www.comsol.com/community/forums/general/thread/1664/</link>
  </image>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10475</link>
   <description>About a slightly different set of limitations - I wanted to know where a simulation was spending most its time, so I exported to an M-file and ran it from Matlab with the profiler turned on. It turns out it was spending most of its time in the Java garbage collector. So, one wonders if perhaps changing the heap size might have an effect at least on the computation time.</description>
   <pubDate>Sun, 21 Mar 2010 08:34:29 +0000</pubDate>
   <guid isPermaLink="false">1664.1269160469.10475</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10472</link>
   <description>Since posting my comment above I bought a new quad-core machine with 24 GB memory, and am running Win7-64bit. The old our-of-memory problems disappeared, but it's easy to make them reappear again with a fine enough mesh. Hit the refine-mesh enough times and eventually you run out of memory. For me now it is at 38M nodes. Even for &amp;quot;only&amp;quot; 8M nodes, the solvers ramp up the memory usage all the way up to 24GB, and then it starts swapping.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
However, there is now another problem not directly related to solving a particular problem, but rather rendering it on the screen. For mesh sizes that are too large you can get another, but different, kind of out-of-memory problem that reflects the size of your VRAM.  However, this can be solved by turning off the automatic rendering, running your problem, then reducing the size of the mesh for the solution so that it will display.</description>
   <pubDate>Sun, 21 Mar 2010 08:23:04 +0000</pubDate>
   <guid isPermaLink="false">1664.1269159784.10472</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10469</link>
   <description>I would suggest first to use less mesh if possible.  If not possible to use less mesh, then get a 64-bit computer with more memory.  You can also try the segregated solver and iterative solver to reduce memory requirements.  Direct solvers use the most memory.</description>
   <pubDate>Sun, 21 Mar 2010 01:58:06 +0000</pubDate>
   <guid isPermaLink="false">1664.1269136686.10469</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10421</link>
   <description>I have received similar error with very few and coarse mesh on a very simple geometry. I have 3GB available memory and &amp;gt;2Ghz dual core CPU! Isn't it odd? I have used to run other commercial programs with much more mesh and more complicated geometry with a weaker machine. So, I think it may not be necessarily only a memory problem. &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;div class=&quot;quote&quot;&gt;&lt;br /&gt;&#13;
Hi, &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
MAXHEAP will not solve the problem. This is not a magic parameter. MAXHEAP is also limited by the available memory and has nothing to do with the solver.&lt;br /&gt;&#13;
There is a limit in your memory which is more related to the physical part ,the hardware that you have.&lt;br /&gt;&#13;
The only thing that you can do is to play with the mesh, switch between direct and indirect solvers.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The radical or the ultimate solution is to ask/buy more memory.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Good luck&lt;br /&gt;&#13;
&lt;/div&gt;&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
</description>
   <pubDate>Fri, 19 Mar 2010 16:57:59 +0000</pubDate>
   <guid isPermaLink="false">1664.1269017879.10421</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10418</link>
   <description>Hi, &lt;br /&gt;&#13;
&lt;br /&gt;&#13;
MAXHEAP will not solve the problem. This is not a magic parameter. MAXHEAP is also limited by the available memory and has nothing to do with the solver.&lt;br /&gt;&#13;
There is a limit in your memory which is more related to the physical part ,the hardware that you have.&lt;br /&gt;&#13;
The only thing that you can do is to play with the mesh, switch between direct and indirect solvers.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
The radical or the ultimate solution is to ask/buy more memory.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Good luck </description>
   <pubDate>Fri, 19 Mar 2010 15:27:21 +0000</pubDate>
   <guid isPermaLink="false">1664.1269012441.10418</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p10403</link>
   <description>Hi - since I am running into the sampe problem of too little memory I am looking for answers and found your comment. I dont't think that increasing Java's heap space does solve the problem because the solvers don't use the heap as far as I know. Therefore, it might even be better to decrease the size of the heap to free more RAM for the solver. Any experiences with that?&lt;br /&gt;&#13;
Pardiso out-of-core also ran out of memory in one of my problems and I cannot make the mesh coarser or else the solution is not correct. I keep trying other solvers...</description>
   <pubDate>Fri, 19 Mar 2010 13:12:06 +0000</pubDate>
   <guid isPermaLink="false">1664.1269004326.10403</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p5372</link>
   <description>Another approach might be to experiment with using different linear solvers.  Some of them require a contiguous heap, some don't, and at least one of them allegedly does the calculation out of core. This last presumably means the solver breaks it up into bits and swapping parts in/out from disk as needed.  It would would be slow, but from my reading may be the only way to handle really large problems. </description>
   <pubDate>Sun, 13 Dec 2009 22:43:19 +0000</pubDate>
   <guid isPermaLink="false">1664.1260744199.5372</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p5369</link>
   <description>On Page 124 of v3.5a User's Guide there is a description of how to increase the default Java heap space by changing the MAXHEAP variable in the file comsol.opts, which is loaded on launch. The default value that came with v3.5 was 256 MB. Try increasing this, taking into account how much memory you have in your machine.  Let us know how this works.</description>
   <pubDate>Sun, 13 Dec 2009 22:38:28 +0000</pubDate>
   <guid isPermaLink="false">1664.1260743908.5369</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p4385</link>
   <description>Hi Hung,&lt;br /&gt;&#13;
Thank you all. I'll try it</description>
   <pubDate>Wed, 18 Nov 2009 12:52:02 +0000</pubDate>
   <guid isPermaLink="false">1664.1258548722.4385</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p4369</link>
   <description>Hi Hoa,&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I also had some experiences with the problem. Let try with the following things:&lt;br /&gt;&#13;
- Make mesh less fine with sub-domains not important or all of sub-domains&lt;br /&gt;&#13;
- Using symmetrical geometry properties to model for only small parts of device or machine, so you can reduce required memory significantly and your program will run faster.&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Good luck!&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Hung Vu Xuan&lt;br /&gt;&#13;
</description>
   <pubDate>Tue, 17 Nov 2009 16:24:59 +0000</pubDate>
   <guid isPermaLink="false">1664.1258475099.4369</guid>
  </item>
  <item>
   <title>Re: outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p4331</link>
   <description>I belive this problem is very similar to one which I have encountered during solving very fine meshed problems(comsol sayed : out of memory during LU factorization) . The operation's demand for memory just exceeds your RAM. I cant say why it is not possible to use SWAP or TEMP for data storage, but I think you can solve it by rendering the mesh less fine(if the model remains reliable, of course).</description>
   <pubDate>Mon, 16 Nov 2009 09:45:27 +0000</pubDate>
   <guid isPermaLink="false">1664.1258364727.4331</guid>
  </item>
  <item>
   <title>outofmemory</title>
   <link>http://www.comsol.com/community/forums/general/thread/1664/#p4325</link>
   <description>Hello&lt;br /&gt;&#13;
I have a model of contact, when the grid have done very fine , it cannot solve. it posts an error&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Exception:&lt;br /&gt;&#13;
	com.femlab.jni.FlNativeException: Out of memory during assembly&lt;br /&gt;&#13;
Messages:&lt;br /&gt;&#13;
	Out of memory during assembly&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
Stack trace:&lt;br /&gt;&#13;
	at xmodel.cpp, row 2320, ()&lt;br /&gt;&#13;
	at com.femlab.solver.FlSolver.femStatic(Native Method)&lt;br /&gt;&#13;
	at com.femlab.solver.FemStatic.run(Unknown Source)&lt;br /&gt;&#13;
	at com.femlab.server.FlRunner.run(Unknown Source)&lt;br /&gt;&#13;
	at com.femlab.util.i.run(Unknown Source)&lt;br /&gt;&#13;
	at com.femlab.util.aa.run(Unknown Source)&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
&lt;br /&gt;&#13;
I need your council to deal with this problem,&lt;br /&gt;&#13;
thank you&lt;br /&gt;&#13;
</description>
   <pubDate>Mon, 16 Nov 2009 05:51:00 +0000</pubDate>
   <guid isPermaLink="false">1664.1258350660.4325</guid>
  </item>
 </channel>
</rss>

