Hi,

 

Not sure if this is the right list for a Geronimo Eclipse Plugin issue but I can’t see any other lists mentioned in the online documentation.

 

I have set up my Geronimo Run Configuration VM Arguments as follows: -

 

-javaagent:"/usr/local/geronimo-tomcat6-javaee5-2.2.1/bin/jpa.jar" -Djava.ext.dirs="/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/ext:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext" -Djava.endorsed.dirs="/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed" -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dorg.apache.geronimo.home.dir="/usr/local/geronimo-tomcat6-javaee5-2.2.1

 

Note that the –XX:MaxPermSize has been increased to 256m in an attempt to reduce PermGen memory errors during development. I can close eclipse down and reopen it and these settings are correctly persisted.

 

If I start Geronimo from the Run Configurations dialog then the process starts correctly as follows (ps output): -

 

steve     3918   0.0  7.2  3560544 301164   ??  S     1:01pm   0:31.63 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -javaagent:/usr/local/geronimo-tomcat6-javaee5-2.2.1/bin/jpa.jar -Djava.ext.dirs=/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/ext:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext -Djava.endorsed.dirs=/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed -Xms256m -Xmx512m -XX:MaxPermSize=256m -Dorg.apache.geronimo.home.dir=/usr/local/geronimo-tomcat6-javaee5-2.2.1 -Dfile.encoding=MacRoman -classpath /usr/local/geronimo-tomcat6-javaee5-2.2.1/bin/server.jar org.apache.geronimo.cli.daemon.DaemonCLI –long

 

However if I start Geronimo from the “Start Button” the process starts incorrectly (MaxPermSize reset to 128m). Furthermore when I go into the Run Configurations dialog the MaxPermSize value has also been set back to 128m.

 

steve     4558 176.1  3.6  3336080 151572   ??  R     1:53pm   0:07.67 /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -javaagent:/usr/local/geronimo-tomcat6-javaee5-2.2.1/bin/jpa.jar -Djava.ext.dirs=/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/ext:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext -Djava.endorsed.dirs=/usr/local/geronimo-tomcat6-javaee5-2.2.1/lib/endorsed:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed -Xms256m -Xmx512m -XX:MaxPermSize=128m -Dorg.apache.geronimo.home.dir=/usr/local/geronimo-tomcat6-javaee5-2.2.1 -Dfile.encoding=MacRoman -classpath /usr/local/geronimo-tomcat6-javaee5-2.2.1/bin/server.jar org.apache.geronimo.cli.daemon.DaemonCLI --long

 

I’m running on an Apple iMac under OSX 10.6.8. Does anyone know what’s causing this behaviour?

 

Many Thanks,

 

Steve

 

Steve Higham