If you get this out of memory error from the 2.1 beta 1:

01-Jun-2009 08:44:25 sun.awt.X11.XToolkit processException
WARNING: Exception on Toolkit thread
java.lang.OutOfMemoryError: PermGen space
        at sun.awt.X11.XWM.getInsets(XWM.java:1460)
        at 
sun.awt.X11.XDecoratedPeer.handleConfigureNotifyEvent(XDecoratedPeer.java:722)
        at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1122)
        at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1079)
        at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:475)
        at sun.awt.X11.XToolkit.run(XToolkit.java:588)
        at sun.awt.X11.XToolkit.run(XToolkit.java:523)
        at java.lang.Thread.run(Thread.java:619)

then you might need to modify run.bat / run.sh so that it includes

-XX:MaxPermSize=140m


This error could occur if you are using many different types of
services (wsdl, soaplab, biomoby) in a Taverna 1 workflow.


For instance:

: st...@rpc268 ~/Desktop/taverna-2.1-beta-1;cat run.sh
 #!/bin/sh

## resolve links - $0 may be a symlink
PRG="$0"
progname=`basename "$0"`
saveddir=`pwd`

# need this for relative symlinks
cd "$(dirname "$PRG")"
while [ -h "$PRG" ] ; do
    ls=$(ls -ld "$PRG")
    link=`expr "$ls" : '.*-> \(.*\)$'`
    if expr "$link" : '.*/.*' > /dev/null; then
        PRG="$link"
    else
        PRG=`dirname "$PRG"`"/$link"
    fi
done

TAVERNA_HOME="`dirname "$PRG"`"
cd $TAVERNA_HOME

exec java -Xmx300m -Draven.profile=file:conf/current-profile.xml \
  -XX:MaxPermSize=140m \
  -Dtaverna.startup=. \
  
-Djava.system.class.loader=net.sf.taverna.raven.prelauncher.BootstrapClassLoader
\
  -Dapple.laf.useScreenMenuBar=false \
  -Dsun.swing.enableImprovedDragGesture \
  -jar lib/prelauncher-*.jar


It does not help to increase the -Xmx300m - as the 'perm gen space'
seems to be a special memory area for keeping loaded classes.



(I've posted this to Jira:  http://www.mygrid.org.uk/dev/issues/browse/T2-598 )



-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to