Comsol 4.3a Memory problem -- not using enough RAM

Topics: 4.3a, Solving

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   7 Replies   Last post: June 15, 2013 4:07pm UTC
ajeetraj

ajeetraj

February 4, 2013 12:07am UTC

Comsol 4.3a Memory problem -- not using enough RAM

Hello everyone,

Usually the complain is that Comsol is using too much memory, but in my case its other way round.


I have a really nice machine in the lab with windows 8 server. I have Comsol version 4.3a installed. I am trying to run an RF module computation, where I am trying to create a fine mesh.

My problem is that even though the computer has 256 GB or RAM, the comsol uses only 1.2 GB or so maximum. Also, I have a 16 core x 2 processor but it uses only 3.5% of the cpu at max.

Coule anyone please explain to me if there is a way to overcome this problem. did anyone else have the same problem?

Thanks in advance.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg

February 4, 2013 6:06am UTC in response to ajeetraj

Re: Comsol 4.3a Memory problem -- not using enough RAM

Hi

Check the earlier threads, some solvers cannot use multiprocessing, and several operations are not paralellised, or cannot easily be made so. By default COMSOL will choose at much RAM required and available, and use at least half of all your processors

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

ajeetraj

ajeetraj

February 4, 2013 2:51pm UTC in response to Ivar Kjelberg

Re: Comsol 4.3a Memory problem -- not using enough RAM

So in order to use multiple processors, I checked the options of Comsol and changed the number of processors from 1 to the value I have and it seems like it can use many processors. Nevertheless, for the meshing, it still uses around 700MB maximum. At the bottom it always stays

Working set: around 670MB | virtual 780MB.

After changing the number of processors, the cpu %age went up but after 5 minuts the cpu usage stays between 2.5% to 3% and of course it takes forever to mesh. My first trial of meshing is still not done.

Any help would be greatly appreciated.

Thanks Mr. Ivar Kjelberg for your quick response!

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Anosh Daruwalla

Anosh Daruwalla

June 12, 2013 6:53pm UTC in response to ajeetraj

Re: Comsol 4.3a Memory problem -- not using enough RAM

I am facing a similar problem for the transient solver. Any solution or further update on this issue would be greatly appreciated :)

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Felipe Beltran-Mejia

Felipe Beltran-Mejia

June 13, 2013 4:22pm UTC in response to ajeetraj

Re: Comsol 4.3a Memory problem -- not using enough RAM

Hi All,

In this entry: www.comsol.com/support/knowledgebase/830/

Comsol's staff give some advices such as augmenting the Java Heap Memory, which is the place where the different solutions are stored.

To my surprise, I've found out the default value for the Java Heap Size is quite low (1Gb). They recommend doubling it, but I had went further and multiplyed it by a factor of 10. Altough it didn't seems to change much (at least for me).
--
cheers,
Felipe BM

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Gunnar Andersson

Gunnar Andersson
COMSOL Employee
Sweden

June 14, 2013 6:23am UTC in response to Felipe Beltran-Mejia

Re: Comsol 4.3a Memory problem -- not using enough RAM


Comsol's staff give some advices such as augmenting the Java Heap Memory, which is the place where the different solutions are stored.


This isn't quite correct: The solutions are not stored in the Java heap. If you increase the Java heap a lot, then you will decrease the memory that can be used for solving the model - quite the opposite of what you want.

In general, I advice you to not experiment with the Java heap settings unless you have received from support to do so.


Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Felipe Beltran-Mejia

Felipe Beltran-Mejia

June 14, 2013 11:29am UTC in response to Gunnar Andersson

Re: Comsol 4.3a Memory problem -- not using enough RAM

Thanks for the feedback Gunnar.

Then I believe the referenced knowledgebase shall be corrected, since (for me) that is what it says:

"Of the available memory (RAM and virtual memory), one section, the Java heap, is reserved for Java and will be used for storing the different solutions in the model.( ...) The rest of the memory will be available for meshing and solving. (....)"

Thanks for claryfying, I'll return my confs to their default values.
--
cheers,
Felipe BM

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

James  Freels

James Freels

June 15, 2013 4:07pm UTC in response to Felipe Beltran-Mejia

Re: Comsol 4.3a Memory problem -- not using enough RAM

Is your machine a 32-bit or 64-bit ? If a 64-bit, is your OS setup to run in 64-bit ?

In order for a single application, e.g. COMSOL, to use a lot of memory, both the hardware and OS must be running in 64-bit mode. Otherwise, the most memory ANY application, including COMSOL, can use in 32-bit mode is 2^31 or about 2GB or less. This sounds like what you may be doing.

If all is running 64-bit, make sure if you are running Windows, you click the 64-bit COMSOL start icon and not the 32-bit COMSOL start icon.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines