Forum Discussion

bjmac's avatar
bjmac
New Contributor
15 years ago

java.lang.OutOfMemoryError OS X

I have been encountering an error running LoadUI 1.0.1 on Mac OS X 10.6.5
The error has occurred during execution of load tests.

The error causes LoadUI to hang and must be force quit to move ahead.
Below is a snippet from the Java console.
Exception in thread "Timer-4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-25" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-13" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-24" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-27" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-29" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-23" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-12" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-26" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-28" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-7" java.lang.OutOfMemoryError: PermGen space
Exception in thread "executor-thread-16" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "AWT-EventQueue-1" java.lang.NoSuchFieldError: <init>
at javax.swing.text.DefaultHighlighter$HighlightInfo.<init>(DefaultHighlighter.java:466)
at javax.swing.text.DefaultHighlighter$LayeredHighlightInfo.<init>(DefaultHighlighter.java:490)
at javax.swing.text.DefaultHighlighter.addHighlight(DefaultHighlighter.java:100)
at javax.swing.text.DefaultCaret.handleMoveDot(DefaultCaret.java:1102)
at javax.swing.text.DefaultCaret.moveDot(DefaultCaret.java:1075)
at javax.swing.text.DefaultCaret$Handler.insertUpdate(DefaultCaret.java:1711)
at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:734)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:693)
at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
at javax.swing.JTextArea.append(JTextArea.java:470)
at com.sun.deploy.util.ConsoleWindow$28.run(ConsoleWindow.java:677)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
  • Hi!

    hmm.. try increasing the allocated PermGen space in your loadui.jnlp file; change the line

    <j2se version="1.6+" java-vm-args="-Xms128m -Xmx768m -XX:MaxPermSize=128m -Dsun.java2d.noddraw=true"/>

    to something like

    <j2se version="1.6+" java-vm-args="-Xms128m -Xmx1024m -XX:MaxPermSize=256m -Dsun.java2d.noddraw=true"/>

    Does that help?

    regards!

    /Ole
    eviware.com