How to deal with “java.lang.OutOfMemoryError: Java heap space” error?

后端 未结 21 1739
死守一世寂寞
死守一世寂寞 2020-11-21 04:49

I am writing a client-side Swing application (graphical font designer) on Java 5. Recently, I am running into java.lang.OutOfMemoryEr

21条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 05:16

    if you got this error when you launch eclipse birt 1- you will go in the file of the eclipse configuration 2- you must open eclipse.init 3- modified the RAM memory, you can increase this, i give an example.

    my old information was : -Xmx128m -XX:MaxPermSize=128m

    the new modification that i opered :

    -Xmx512m -XX:MaxPermSize=512m

    this modification will permit me to resolve java heap space when i launch my report in my browser.

    Thanks

提交回复
热议问题