Hi Shiva, thanks for the information. I'm not sure I feel comfortable modifying
a user's eclipse.ini file, especially without their knowledge. What I think we
should do though is include these settings in the release notes for this
release, and possibly on the updated website for the
Apache Geronimo Development Tools Subproject. Does this seem reasonable to you
??
Shiva Kumar H R wrote:
On 9/17/07, *Shiva Kumar H R* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Some more observations while testing Geronimo Eclipse Plugin 2.0.0
(RC3):
a) When defining a new server, "Apache Geronimo v1.2 Server" doesn't
get listed in the list of available servers.
b) Looks like WTP 2.0.1RC2 has solved the problem reported in
GERONIMODEVTOOLS-209 if the HelloWorld WAR's geronimo-web.xml uses
1.1 Geronimo schemas. However, if geronimo-web.xml" is edited to use
2.0 version of Geronimo schemas, then "Run As -> Run on Server"
won't open internal browser.
c) Another very important thing related to "eclipse.ini" settings.
The default contents of "eclipse.ini" is shown below:
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx256m
This is *really* messy. With the default provided settings as above,
my Eclipse crashed about 7 times! with "java.lang.OutOfMemoryError:
PermGen space" errors and I was not at all able to complete the
steps mentioned in
http://cwiki.apache.org/geronimo/java-ee-50-app-development-on-geronimo-simplified-using-eclipse.html
<http://cwiki.apache.org/geronimo/java-ee-50-app-development-on-geronimo-simplified-using-eclipse.html>
However, as suggested by Tim, I created a shortcut to eclipse.exe as
below
"E:\IDEs\eclipse3.3.1_WTP2.0.1RC2_gep2.0rc3\eclipse.exe -vmargs
-Xms256m -Xmx256m -XX:MaxPermSize=128m"
And when I use this shortcut, everything worked great and I was able
to complete
http://cwiki.apache.org/geronimo/java-ee-50-app-development-on-geronimo-simplified-using-eclipse.html
<http://cwiki.apache.org/geronimo/java-ee-50-app-development-on-geronimo-simplified-using-eclipse.html>
in one-go in less than 30 minutes. So the key is to correctly set
"-vmargs -Xms256m -Xmx256m -XX:MaxPermSize=128m" arguments.
We need to figure out how to set these in "eclipse.ini" itself
Found the correct settings. Please see
http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html
<http://blog.xam.dk/archives/68-Eclipse-and-memory-settings.html>
Here is eclipse.ini file contents that works for me for executing all
the steps in the ppt.
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms128m
-Xmx256m
-XX:MaxPermSize=128m
i) Changed -Xms value from 40m to 128m
ii) Added -XX:MaxPermSize=128m at the end of file (looks like this same
value specified before -vmargs is simply ignored!)
Tim,
Can http://people.apache.org/~mcconne/releases/RC3/build.xml
<http://people.apache.org/%7Emcconne/releases/RC3/build.xml> be updated
to automatically update eclipse.ini ?
- Shiva
and recommend them strongly to users in "Release Notes" as well as
in "
http://people.apache.org/~mcconne/releases/RC3/Geronimo_Eclipse_Plugin_2.0.0_Instructions-RC3.txt
<http://people.apache.org/%7Emcconne/releases/RC3/Geronimo_Eclipse_Plugin_2.0.0_Instructions-RC3.txt>"
If we can also update
http://people.apache.org/~mcconne/releases/RC3/build.xml
<http://people.apache.org/%7Emcconne/releases/RC3/build.xml> to
automagically edit eclipse.ini with the correct settings, that would
just be great!
Thanks,
Shiva
On 9/17/07, *Shiva Kumar H R* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Tim,
The "Install prerequisites" section of
http://people.apache.org/~mcconne/releases/RC3/Geronimo_Eclipse_Plugin_2.0.0_Instructions-RC3.txt
<http://people.apache.org/%7Emcconne/releases/RC3/Geronimo_Eclipse_Plugin_2.0.0_Instructions-RC3.txt>
needs following updates:
1) "1 -- Europa (also known as Eclipse 3.3), which is platform
specific"
Need to mention package name as "Eclipse Classic" to avoid
confusions as raised in RC2 voting thread. Also, shouldn't the
version be changed to 3.3.1? Please see
http://www.eclipse.org/eclipse/development/freeze_plan_3_3_1.html
<http://www.eclipse.org/eclipse/development/freeze_plan_3_3_1.html>
So, this could look something like:
"1 -- Eclipse 3.3.1 (Eclipse Classic package of Europa
distribution), which is platform specific"
<http://www.eclipse.org/eclipse/development/freeze_plan_3_3_1.html>
2) "3 -- Data Tools Platform (DTP) 1.5"
Should be "3 -- Data Tools Platform (DTP) 1.5.1"
3) "4 -- Eclipse Modeling Framework (EMF) 2.3"
Should be "4 -- Eclipse Modeling Framework (EMF) 2.3.1"
http://www.eclipse.org/modeling/emf/downloads/?project= lists
emf-sdo-xsd-SDK-M200709120130.zip under 2.3.1 Maintenance Builds
4) "5 -- Graphical Editing Framework (GEF) 3.3"
Should be "5 -- Graphical Editing Framework (GEF) 3.3.1"
http://download.eclipse.org/tools/gef/downloads/index.php
<http://download.eclipse.org/tools/gef/downloads/index.php>
lists GEF-SDK-M20070814-1555.zip under 3.3.1 Stream Maintenance
Builds
5) "That is why this ant script downloads and installs the WTP
2.0.1 RC1 artifacts."
Should be:
"That is why this ant script downloads and installs the WTP
2.0.1 RC2 artifacts."
- Shiva
--
Thanks,
Tim McConnell