Try: export MAVEN_OPTS="-Xmx2000m -Xms2000m" mvn jetty:run
This should allocate a heap size of 2000M for the Jetty instance. 2009/5/16 Andrew Scherpbier <[email protected]> > Timothy Perrett wrote: > > oh. my. god. How did I miss this point completly - sorry i hadnt made > the link to JVM arguments in my mind! > > You can also do it just on the command line if you dont want it for > all apps: > > mvn jetty:run -Xmx -Xms > > > That didn't actually work for me (Ubuntu 9.04 x86_64, maven 2.0.9). I > couldn't find any way to pass those JVM arguments other than via the > MAVEN_OPTS environment variable. > > --Andrew > > > etc etc > > Cheers, Tim > > On May 16, 2:06 pm, Andrew Scherpbier <[email protected]> > <[email protected]> wrote: > > > You can pass JVM arguments like -Xmx and -Xms to Maven using the > MAVEN_OPTS environment variable. > Since jetty runs as (a?) thread(s?) under the maven process, increasing > maven's heap will increase jetty's heap. > > Under Windows, simply define that environment variable (System > Properties | Advanced | Environment Variables) and restart any CMD you > are using. > > Under linux/os x/etc. define it in your shell startup script (.bashrc > for bash, .cshrc for csh, etc.) > > If you're running bash, you can also simply start maven like this: > "MAVEN_OPTS='-Xmx256m -Xms10m' mvn clean jetty:run" > > You can verify by running this command and then in another terminal > window type "ps auxwww|grep java". Is should show the added arguments to > the java command. (For Windows, download and install procexp.exe from > microsoft and have it show the command line for the java process.) > > Hope this helps! > > --Andrew > > > > Timothy Perrett wrote: > > > Im not familiar with xms and xmx specifically - my suggestion was that if > its possible with jetty, then its probably configurable somehow with the > plugin as its all the same infrastructure just wrapped up in jetty. > > > Perhaps you can explain what it is exactly you want to do? > > > Cheers, Tim > > > On 16/05/2009 00:49, "[email protected]" <[email protected]> > <[email protected]> <[email protected]> > wrote: > > > The jetty.xml sample doesn't seem to include xms and xmx > configuration.http://confluence.atlassian.com/download/attachments/58294274/jetty.xml > > On 5月16日, 上午12時08分, Timothy Perrett <[email protected]> > <[email protected]> wrote: > > > There is a parameter called "jettyConfig" - pass the location of a > jetty.xml > and you can configure it as per normal jetty server. > > > Cheers, Tim > > > On 15/05/2009 16:54, "[email protected]" <[email protected]> > <[email protected]> <[email protected]> > wrote: > > > I checked it and it doesn't seem to mention any Java setting though. > > > On 5月15日, 下午11時47分, Timothy Perrett <[email protected]> > <[email protected]> wrote: > > > Checkout the jetty plugin docs: > > > http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin > > Cheers, Tim > > > On 15/05/2009 16:32, "[email protected]" <[email protected]> > <[email protected]> <[email protected]> > wrote: > > > Hi : > > > I would like to know what's the current setting of xms and xmx in > mvn jetty:run ? > And how to modify them? > > > Thanks- 隱藏被引用文字 - > > > - 顯示被引用文字 -- 隱藏被引用文字 - > > > - 顯示被引用文字 - > > > > > > > -- Lift, the simply functional web framework http://liftweb.net Beginning Scala http://www.apress.com/book/view/1430219890 Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
