Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 85374 invoked from network); 6 Dec 2008 20:17:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Dec 2008 20:17:16 -0000 Received: (qmail 99281 invoked by uid 500); 6 Dec 2008 20:17:27 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 99257 invoked by uid 500); 6 Dec 2008 20:17:27 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 99246 invoked by uid 99); 6 Dec 2008 20:17:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Dec 2008 12:17:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.200.145.38] (HELO omta0102.mta.everyone.net) (216.200.145.38) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Dec 2008 20:15:57 +0000 Received: from dm0205.mta.everyone.net (sj1-slb03-gw2 [172.16.1.96]) by omta0102.mta.everyone.net (Postfix) with ESMTP id B55ED6BF75C for ; Sat, 6 Dec 2008 12:16:43 -0800 (PST) X-Eon-Dm: dm0205 Received: by dm0205.mta.everyone.net (EON-AUTHRELAY2 - 45842c61) id dm0205.4935e545.528795 for ; Sat, 6 Dec 2008 12:16:43 -0800 X-Eon-Sig: AQLCQ0ZJOt2rd/UtQQIAAAAB,0aeebc2d821ff49d4ec3af3cbc49c92a Message-ID: <493ADDA6.5020305@sengsational.com> Date: Sat, 06 Dec 2008 15:16:38 -0500 From: DRS2 Usenet User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: user@geronimo.apache.org Subject: Re: [geronimo] Re: Out of memory during second publish - reproduced References: <4935F737.8020402@sengsational.com> <49382E13.207@gmail.com> <4938A182.9010000@gmail.com> In-Reply-To: <4938A182.9010000@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Tim McConnell wrote: (snip) > 4. Page down in that section and append your VM arguments at the end > -- don't delete those that are already there. I used the same ones > that Kevan used, but I'm using Java 1.5 and I see that you're using > Java 1.6: > > -Xmx512m -XX:MaxPermSize=256m (snip) > Please try this and let me know what happens. I think you'll have > better results now. Meanwhile, I'm going to open a GEP JIRA to > investigate if we can programmatically determine and set the Geronimo > server VM arguments using those already established for Eclipse since > obviously the default values for the server are not always sufficient. > Thanks much. Thanks Tim, That worked great. I'd been using "run configurations" to make the Geronimo JVM settings... never tried double clicking on the server. I've been able to republish many times without error AND without restarting the server (this is really a NICE feature!). > > > Tim McConnell wrote: >> Hi Dale, just a quick note to tell you that I can now reproduce your >> failure. Looking for a resolution, and will let you know what I find >> out..... >> >> DRS2 Usenet wrote: >>> I had already installed jdk1.6.0_06 >>> I had already installed Geronimo: >>> geronimo-tomcat6-javaee5-2.1.3-bin.zip >>> I installed a fresh Ganymede: eclipse-jee-ganymede-SR1-win32.zip >>> Added Geronimo 2.1 plugins from within Eclipse. >>> Then I deployed a web application. The first time, it deploys >>> fine. The second time, I get an out of memory, due to heap space. >>> >>> The web application may be found here: >>> http://www.manning.com/dbrown/SampleApplication.zip >>> >>> 1) Download the source code from above, and unzip. >>> 2) copy Struts2InAction.war to Struts2InAction.zip >>> 3) Unzip the Struts2InAction.zip file to a folder called WebContent >>> and delete Struts2InAction.zip >>> 4) Validate that your WebContent has WEB-INF, index.html, etc. >>> 5) In your Eclipse workspace folder, create a folder called >>> Struts2InAction, and move your WebContent folder into it. >>> 6) Start Eclipse >>> 7) Right-click in Project Explorer, New > Project > Web > Dynamic >>> Web Project (next) >>> 8) Project name: Struts2InAction > select Geronimo 2.1 > (next) >>> 9) Leave Context Root and Content Directory, but change Java Source >>> Directory to WebContent/WEB-INF/src > (finish) >>> 10) Right-click your project > Run As > Run On Server >>> 11) Point browser at http://localhost:8080/Struts2InAction >>> >>> 12) index.html will say "one moment please" while the jsp compiles, >>> then the menu will come-up. >>> 13) Back in Eclipse, edit (for example) >>> WEB-INF/applicationContext.xml with your MySql login and save the file. >>> 14) Wait for the application to republish itself. >>> >>> This is where the error occurs: >>> >>> Deployment failed due to java.lang.OutOfMemoryError: Java heap space >>> >>> I've started Eclipse with -vmargs -Xmx768M and get the same result. >>> Not able to put 1024M in there, for some reason (Eclipse won't even >>> start). >>> >>> --Dale-- >>>