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]>
> 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]> 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]>
>>> wrote:
>>>
>>>
>>>
>>>
>>>
>>>       
>>>> I checked it and it doesn't seem to mention any Java setting though.
>>>>         
>>>> On 5月15日, 下午11時47分, Timothy Perrett <[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]>
>>>>> 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- 隱藏被引用文字 -
>>>>>>             
>>>>> - 顯示被引用文字 -- 隱藏被引用文字 -
>>>>>           
>>> - 顯示被引用文字 -
>>>       
>
>
>
> >   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to