java.lang.OutOfMemoryError: Java heap space IN UBUNTU

Submitted by Shi on
Dear Pro. Yan
 
I ran the dpabi and encounter this problem.
Did this just out of memory ? Could you tell me how to fix it ?
Thank you very much.
 
Version Info.
Ubuntu 14.04
Dpabi 1.1
Fsl 5.0.8
CPU:Inter core i7 4770k
 
 
Daiqing Shi
South China Normal University
 
 
 
 
The error below showed:
 

In y_regress_ss at 37

  In y_RegressOutImgCovariates at 134

  In DPARSFA_run>(parfor body) at 2522

  In parallel_function>make_general_channel/channel_general at 894

  In remoteParallelFunction at 31

  In remoteParallelFunction at 31

??? Error using ==> parallel_function at 598

Java exception occurred:

java.lang.OutOfMemoryError: Java heap space

      at java.util.Arrays.copyOfRange(Unknown Source)

      at java.lang.String.<init>(Unknown Source)

      at java.lang.StringBuffer.toString(Unknown Source)

      at

        com.mathworks.toolbox.distcomp.pmode.DrainableOutputImpl.getStringToPrint(DrainableOutputImpl.java:253)

            at

        com.mathworks.toolbox.distcomp.pmode.DrainableOutputImpl.doDrainOutput(DrainableOutputImpl.java:176)

            at

        com.mathworks.toolbox.distcomp.pmode.DrainableOutputImpl.drainOutput(DrainableOutputImpl.java:160)

       

Error in ==> DPARSFA_run at 2369

        parfor i=1:AutoDataProcessParameter.SubjectNum

 

Error in ==> DPARSFA>pushbuttonRun_Callback at 1663

    [Error]=DPARSFA_run(handles.Cfg);

 

Error in ==> gui_mainfcn at 96

        feval(varargin{:});

 

Error in ==> DPARSFA at 30

    gui_mainfcn(gui_State, varargin{:});

 

??? Error while evaluating uicontrol Callback

 

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: GC overhead limit exceeded

      at sun.java2d.SunGraphics2D.setClip(Unknown Source)

      at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)

      at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)

      at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)

      at javax.swing.RepaintManager.paint(Unknown Source)

      at javax.swing.JComponent._paintImmediately(Unknown Source)

      at javax.swing.JComponent.paintImmediately(Unknown Source)

      at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

      at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)

      at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)

      at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)

      at java.awt.event.InvocationEvent.dispatch(Unknown Source)??? The client lost connection to an unknown lab.

This  might be due to network problems, or the interactive

matlabpool job might have errored. This is causing:

java.lang.OutOfMemoryError: Java heap space

 

YAN Chao-Gan

Tue, 04/21/2015 - 01:58

Hi Daiqing,

It seems that is a out of memory problem.

Could it run smoothly if you turn off the parallel workers?

Best,

Chao-Gan