On Wed, Sep 9, 2009 at 8:07 AM, measwel <marek_karczew...@yahoo.com.au>wrote:

>
> Hello all,
>
> For a day or two I am a happy user of appfuse basic struts2 with hibernate.
> My setup is:
> - appfuse 2.0.2
> - netbeans 6.7
> - glassfish 3 prelude
> - java se 5 (i cant get 6 on my mac os x 10.4)
>
> I am having some issues that I would appreciate help with:
>
> 1) After subsequent reloads I get a PermGen OOM error from my JVM. I read
> about Jrockit, but it doesnt seem available for mac os. What is the best
> course of action for me to deal with this? As for now, I undeploy the app
> and do a glassfish restart before redeploying to avoid the issue. Needless
> to say, this costs time.
>

You should be able to adjust your JAVA_OPTS environment variable to give
more memory and make this problem less frequent. Here's mine:

-Xms512M -Xmx768M -XX:PermSize=256m -XX:MaxPermSize=512m
-Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled -XX:+UseConcMarkSweepGC


>
> 2) How can I enable hot deployment of both classes and jsp files ?
>

Struts 2 should allow this if you're using the code-behind plugin:

http://cwiki.apache.org/WW/spring-plugin.html

I'd also recommend using "mvn jetty:run" (or glassfish:run if it has a Maven
Plugin). This will monitor your file system for changes so all you have to
do is save a file and reload. If this doesn't work, you could also look at
JavaRebel.

http://www.zeroturnaround.com/javarebel/


>
> 3) Running mvn install takes a lot of time. In which file is specified what
> actions are to be taken with the run? How can I configure different runs
> for
> test / development deploy / production compile?
>

The pom.xml defines everything that happens. Maven's convention is to run
all the tests (including integration tests) when running "mvn install". You
can use "mvn package" to simply create a WAR. Or "mvn package
-Dmaven.test.skip=true" to skip tests. More info at:

http://appfuse.org/display/APF/Maven+2

Matt


> --
> View this message in context:
> http://www.nabble.com/speeding-up-development-cycle-tp25365737s2369p25365737.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to