title: Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
body: <p>When I use javaFx Application longer time then I got exception as follow and my application is going very slow.</p>
  
  <p><strong>Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOfRange(Arrays.java:2694)
      at java.lang.String.(String.java:203)
      at java.lang.StringBuilder.toString(StringBuilder.java:405)\
      ...</strong></p>
  
  <p><strong>VM arguments are:</strong></p>
  
  <p>-XstartOnFirstThread</p>
  
  <p>-XX:MaxPermSize=256m</p>
  
  <p>-Xms128m </p>
  
  <p>-Xmx512m</p>
  
  <p>How to solve this exception?</p>
  
  <p>Thanks.</p>