Heap Memory Overflow


I have written some piece of code for my program in Matlab 7.10.0 which has a graphical user interface, but sometimes i do receive this error on the command window:


[ConditionalEventPump] Exception occurred during event dispatching: java.lang.OutOfMemoryError: Java heap space


And the system gets too slow... Kindly help me with this,,how can i resolve this heap memory issue.


You need to increase the amount of heap memory for the JVM, see <a href="http://www.mathworks.com/support/solutions/en/data/1-18I2C/" rel="nofollow">this "solution"</a>


Go to Preferences -> General -> Java Heap Memory and increase the heap size. Restart MATLAB and check if it works (if not, maybe you could consider increasing a bit more).


  • How can i access a variable or change the state of an element(like tabNavigator) from one mxml to an
  • opencv version 3.* HogDescriptor takes at most 1 argument (5 given)
  • What is the purpose of multidimensional arrays? [closed]
  • how to release bitmap memory in android
  • Cairo and memory leaks fix with valgrind
  • How do I set ANT_OPTS under eclipse?
  • Wait for Swing to finish updating JProgressBar before continuing
  • How can I pass the index of a for loop as the argument for pthread_create
  • Boxing..do I get it right? [duplicate]
  • How to store a void* reference to a struct in Rust?
  • C Language: Why does malloc() return a pointer, and not the value?
  • Memory dump much smaller than available memory
  • How do references in functions work?
  • Measure heap used by each object in Java [closed]
  • Counting Treaps
  • F#: In which memory area is the continuation stored: stack or heap?
  • Google analytics measurement protocol session timeout and query time limits
  • Getting NullPointer exception with File.listfiles()
  • Undefined references when compiling gSOAP client
  • Ajax Upload File: $_FILES is empty but files exists in request header
  • AJAX Html Editor Extender upload image appearing blank
  • d3 v4 drag and drop with TypeScript
  • JQuery Internet Explorer and ajaxstop
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Alert pop up with LWUIT
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • Master page gives error
  • Opengl-es onTouchEvents problem or a draw problem? [closed]
  • How to convert from System.Drawing.Color to Excel.ColorFormat in C#? Change comment color
  • javascript inside java/jsp code
  • Google cloud sdk not working when python points python3
  • How to format a variable of double type
  • Android Studio and gradle
  • AngularJs get employee from factory
  • coudnt use logback because of log4j
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Linking SubReports Without LinkChild/LinkMaster
  • JaxB to read class hierarchy
  • How can i traverse a binary tree from right to left in java?