Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is OutOfMemoryError in Java?

Category: Java

OutOfMemoryError in Java is a subclass of java.lang.VirtualMachineError and it’s thrown by JVM when it ran out of heap memory. We can fix this error by providing more memory to run the java application through java options.

$>java MyProgram -Xms1024m -Xmx1024m -XX:PermSize=64M -XX:MaxPermSize=256m

Leave a Reply

Your email address will not be published. Required fields are marked *