Hi Gasius,

You can use the admin:change-opts command to change it.

For instance:

karaf@root> admin:change-opts instance "-XX:MaxPermSize=256 -Xmx1024m"

When you use the client or admin script, it will use the JAVA_OPTS in the instance.properties populated by the command.

Regards
JB

On 05/07/2012 09:30 PM, gasius wrote:
Hi,

I need to customize JAVA_OPTS (define classes for
javax.xml.parsers.DocumentBuilderFactory,
javax.xml.transform.TransformerFactory, javax.xml.parsers.SAXParserFactory)
when starting Karaf instances. There are no problems to customize Java
options for the root instance by editing scripts in bin directory. But our
applications are served on child instances and I found that editing of
scripts in bin directory has no impact. Is there some way to add any extra
Java options ar change current (for example memory allocation) when starting
child instances?

BR,
gasius

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Customizing-JAVA-OPTS-of-child-instance-tp3969455.html
Sent from the Karaf - User mailing list archive at Nabble.com.

--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to