Java heap space/OutOfMemory error (take 2)

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Java heap space/OutOfMemory error (take 2)

Postby pml20 » Wed Sep 01, 2010 11:53 am

Dear Dynare team,

last February, jpfeifer posted on the problem that with long enough MCMC chains, Java bombs because of memory problems arising from the waitbar in the MCMC step. Stephane's solution was to use the -nojvm option. However, this only works on Unix platforms; windows doesn't support it. Is there an equivalent option for windows, other than commenting out the waitbar code? It seems that the waitbar generates about 15 percent overhead, which is quite inefficient.
Thanks for your reply.
Pierre
pml20
 
Posts: 7
Joined: Wed Sep 01, 2010 11:27 am

Re: Java heap space/OutOfMemory error (take 2)

Postby jpfeifer » Wed Sep 01, 2010 12:43 pm

Hi,
as I said in the mentioned post, there is the option to set the java.opts file. Note that the -nojvm method also works under Windows. Use "Execute" in the startbar to enter the command prompt (type "cmd"). In the command prompt, type "matlab -novjm" and matlab will start without java script.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Java heap space/OutOfMemory error (take 2)

Postby pml20 » Wed Sep 01, 2010 2:23 pm

Thanks; I did include the opts file, and it does solve the memory problem. I was just wondering whether the -nojvm command would speed things up by eliminating the waitbar window. I think an extra entry in the options_ structure that toggles the waitbar on and off would be useful, to avoid having to switch back and forth between java-enabled and disabled versions of matlab...
pml20
 
Posts: 7
Joined: Wed Sep 01, 2010 11:27 am

Re: Java heap space/OutOfMemory error (take 2)

Postby StephaneAdjemian » Thu Sep 02, 2010 10:53 am

Dear Pierre, In the snapshot version of dynare I introduced a new option that removes the graphical waitbars and replace them
by text-based waitbars. You just have to write options_.console_mode = 1; (default is zero) before the estimation command.

It should work under windows...

Best,
Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests