You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by peter lawrey <pe...@edgeci.com> on 2009/11/27 10:17:33 UTC

How do I set the JVM args for sub-instance of karaf?

We have a number of instances of karaf which are sub-instances of the
main instance.

How do we set command line arguments like `admin:start -o` does?

e.g. 

-Dcom.sun.management.jmxremote.port=9004

 

We want this to be set when the services are restarted automatically.


RE: How do I set the JVM args for sub-instance of karaf?

Posted by peter lawrey <pe...@edgeci.com>.
BTW: The wrapper:install installs an old version of the wrapper which
only supports linux. As we have solaris and linux, I upgraded the
wrapper and changed it to support both OSes.  It does means it's very
manual to set a new server to use the wrapper which is why I would like
to do everything from the main server which is working fine on each
server.

-----Original Message-----
From: Guillaume Nodet [mailto:gnodet@gmail.com] 
Sent: 27 November 2009 13:59
To: users
Subject: Re: How do I set the JVM args for sub-instance of karaf?

So you have created an instance, installed the wrapper feature, and
launched the wrapper:install command from the instance, right ?
If so, you should have a file named
[root]/instances/k1/etc/xxx-wrapper.conf which is the configuration
file for JSW.
Just edit this file and change the properties named
wrapper.java.additional.xxx

On Fri, Nov 27, 2009 at 10:17, peter lawrey <pe...@edgeci.com>
wrote:
> We have a number of instances of karaf which are sub-instances of the
> main instance.
>
> How do we set command line arguments like `admin:start -o` does?
>
> e.g.
>
> -Dcom.sun.management.jmxremote.port=9004
>
>
>
> We want this to be set when the services are restarted automatically.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


RE: How do I set the JVM args for sub-instance of karaf?

Posted by peter lawrey <pe...@edgeci.com>.
Hello,
Thank you for that suggestion.  It may be the best option.

Looking at the code, the java opts can be provided, but I cannot see how
this is done on a restart.

At the moment we are starting the main instance which starts the
sub-instances on reboot.

As we are likely to have a few sub-instance is there any way to use the
mechanism as we want to keep the main server. 

If this cannot be done, how do we stop the main server trying to start
its sub instances? Do we just have ensure the main instance always
starts last?

Peter.

-----Original Message-----
From: Guillaume Nodet [mailto:gnodet@gmail.com] 
Sent: 27 November 2009 13:59
To: users
Subject: Re: How do I set the JVM args for sub-instance of karaf?

So you have created an instance, installed the wrapper feature, and
launched the wrapper:install command from the instance, right ?
If so, you should have a file named
[root]/instances/k1/etc/xxx-wrapper.conf which is the configuration
file for JSW.
Just edit this file and change the properties named
wrapper.java.additional.xxx

On Fri, Nov 27, 2009 at 10:17, peter lawrey <pe...@edgeci.com>
wrote:
> We have a number of instances of karaf which are sub-instances of the
> main instance.
>
> How do we set command line arguments like `admin:start -o` does?
>
> e.g.
>
> -Dcom.sun.management.jmxremote.port=9004
>
>
>
> We want this to be set when the services are restarted automatically.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: How do I set the JVM args for sub-instance of karaf?

Posted by Guillaume Nodet <gn...@gmail.com>.
So you have created an instance, installed the wrapper feature, and
launched the wrapper:install command from the instance, right ?
If so, you should have a file named
[root]/instances/k1/etc/xxx-wrapper.conf which is the configuration
file for JSW.
Just edit this file and change the properties named wrapper.java.additional.xxx

On Fri, Nov 27, 2009 at 10:17, peter lawrey <pe...@edgeci.com> wrote:
> We have a number of instances of karaf which are sub-instances of the
> main instance.
>
> How do we set command line arguments like `admin:start -o` does?
>
> e.g.
>
> -Dcom.sun.management.jmxremote.port=9004
>
>
>
> We want this to be set when the services are restarted automatically.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org