Many thanks Guillaume! A follow-up question - how do I achieve the same when starting a child server from the web console?
Cheers, Irad. -----Original Message----- From: Guillaume Nodet [mailto:[email protected]] Sent: 17 November 2010 19:15 To: [email protected] Subject: Re: Set Vm options for child karaf server launched from parent - 2.1.1 If you start those instances using the 'bin/admin start' script or the 'admin:start' command, both accept a "--java-opts" parameter which defaults to "-server -Xmx512M -Dcom.sun.management.jmxremote". On Wed, Nov 17, 2010 at 17:48, Irad Dor <[email protected]> wrote: > Hi, > How can have VM options (specifically -Xmx) to be set at launch time for > spawned child-servers? > > 1. My main karaf server is a service. > 2. Exporting JAVA_MIN_MEM / JAVA_MAX_MEM does not affect the heap size > when I launch the service, and does not affect child servers > 3. These env variables only work when I launch the child server directly > using <child-server>/bin/karaf, but I need it to work when launched from > the parent karaf service. > 4. editing karaf-wrapper.conf only affect the main service, but not the > spawned children. > > Any clue? > > Thanks, > Irad. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

