среда, 8 апреля 2009 г.

java.lang.OutOfMemoryError

JDeveloper running a simple Java class threw:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

This is a standard java exception treated by adding parameters to java in command line as the default parameters are -Xms32m -Xmx128m.

This case solution was found in a discussion about analogous exception for embedded OC4J.

Just edit Run Configuration adding -Xms512m -Xmx1024m (for example) in Project Properties... | Run/Debug | Edit... | Java Options edit bar

Комментариев нет:

Отправить комментарий