Re: How to start jenkins service with increased java heap memory

> Hello,
>
> I would like to ask you how to start jenkins service with increased
> java heap memory
> I would like to start jenkins with this java setting but my jenkins is
> running as a windows service.
>
> Is it possible to start jenkins service with these parameters -Xms512m
> -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>
> Thank you for your help.
>
> Vladimir

Re: How to start jenkins service with increased java heap memory

> Can't you open the services panel (run -> services.msc) and change the service start command to add these 2 additionnal parameters ?
>
> Richard
>
>
>
> On 2012-03-25, at 08:17, zakyn <[hidden email]> wrote:
>
>> Hello,
>>
>> I would like to ask you how to start jenkins service with increased
>> java heap memory
>> I would like to start jenkins with this java setting but my jenkins is
>> running as a windows service.
>>
>> Is it possible to start jenkins service with these parameters -Xms512m
>> -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>>
>> Thank you for your help.
>>
>> Vladimir

Re: How to start jenkins service with increased java heap memory

In your Jenkins home directory there should be a file named config.xml.
In that file you can add configuration options for your service,
environment variables etc.
In the line with the startup command for Jenkins just add your parameters.

> Hi Richard,
>
> I have tried that but after computer restart the parameters were not
> there not at all :(
>
> Vladimir
>
>
>
>
>
> 2012/3/25 Richard Lavoie <[hidden email]>:
>> Can't you open the services panel (run -> services.msc) and change the service start command to add these 2 additionnal parameters ?
>>
>> Richard
>>
>>
>>
>> On 2012-03-25, at 08:17, zakyn <[hidden email]> wrote:
>>
>>> Hello,
>>>
>>> I would like to ask you how to start jenkins service with increased
>>> java heap memory
>>> I would like to start jenkins with this java setting but my jenkins is
>>> running as a windows service.
>>>
>>> Is it possible to start jenkins service with these parameters -Xms512m
>>> -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>>>
>>> Thank you for your help.
>>>
>>> Vladimir

Re: How to start jenkins service with increased java heap memory

> In your Jenkins home directory there should be a file named config.xml.
> In that file you can add configuration options for your service,
> environment variables etc.
> In the line with the startup command for Jenkins just add your parameters.
>
> Regards,
> Manuel
>
> On Sun, Mar 25, 2012 at 18:00, Vladimir Zak <[hidden email]> wrote:
>> Hi Richard,
>>
>> I have tried that but after computer restart the parameters were not
>> there not at all :(
>>
>> Vladimir
>>
>>
>>
>>
>>
>> 2012/3/25 Richard Lavoie <[hidden email]>:
>>> Can't you open the services panel (run -> services.msc) and change the service start command to add these 2 additionnal parameters ?
>>>
>>> Richard
>>>
>>>
>>>
>>> On 2012-03-25, at 08:17, zakyn <[hidden email]> wrote:
>>>
>>>> Hello,
>>>>
>>>> I would like to ask you how to start jenkins service with increased
>>>> java heap memory
>>>> I would like to start jenkins with this java setting but my jenkins is
>>>> running as a windows service.
>>>>
>>>> Is it possible to start jenkins service with these parameters -Xms512m
>>>> -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>>>>
>>>> Thank you for your help.
>>>>
>>>> Vladimir

Question is here, does it make sense to put the heap size with -Xms to
512 megs. Puttimg the value too high will eventually result in the
exact opposite behaviour as wanted. I have one server running with
assigned memory of 21 gigabyte but the heap size is 256meg and running
fine. Bringing the heap size higher did result in performance loss and/
or even java to fail at runtime.

> Hi,
>
> Thank you for a help but I am not able to find the any startup command
> for jenkis.
> Could you please add here the small snippet of xml file?
>
> Thanks.
>
> Vladimir
>
> 2012/3/25 Manuel Doninger <[hidden email]>:
>
>
>
>
>
>
>
> > In your Jenkins home directory there should be a file named config.xml.
> > In that file you can add configuration options for your service,
> > environment variables etc.
> > In the line with the startup command for Jenkins just add your parameters.
>
> > Regards,
> > Manuel
>
> > On Sun, Mar 25, 2012 at 18:00, Vladimir Zak <[hidden email]> wrote:
> >> Hi Richard,
>
> >> I have tried that but after computer restart the parameters were not
> >> there not at all :(
>
> >> Vladimir
>
> >> 2012/3/25 Richard Lavoie <[hidden email]>:
> >>> Can't you open the services panel (run -> services.msc) and change the service start command to add these 2 additionnal parameters ?
>
> >>> Richard
>
> >>> On 2012-03-25, at 08:17, zakyn <[hidden email]> wrote:
>
> >>>> Hello,
>
> >>>> I would like to ask you how to start jenkins service with increased
> >>>> java heap memory
> >>>> I would like to start jenkins with this java setting but my jenkins is
> >>>> running as a windows service.
>
> >>>> Is it possible to start jenkins service with these parameters -Xms512m
> >>>> -Xmx2048m ? Does it mean that java for jenkins will use this setting?
>
> >>>> Thank you for your help.
>
> >>>> Vladimir