Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5034

container-edit-jvm-options can not delete a jvm option and it also duplicates all "-D" options

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • jboss-fuse-6.2.1
    • Fabric8 v1
    • None
    • % %
    • Hide

      Same steps as described above.

      Show
      Same steps as described above.
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

    Description

      I have an use case that I need to increase value on "-Xmx" option and remove "-XX:MaxPermSize" option (because I am using JDK 1.8 and the option has been removed from JDK 1.8) for a local child container.

      Here was what I did:

      JBossFuse:karaf@root> container-edit-jvm-options -f child1 
      -Dcom.sun.management.jmxremote -Dorg.jboss.gravia.repository.storage.dir=data/repository -Dzookeeper.url=jluomac:2181 -Dzookeeper.password.encode=true -Dzookeeper.password=ZKENC=YWRtaW4= -Xmx768m -XX:MaxPermSize=256m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dio.fabric8.datastore.importDir=fabric -Dio.fabric8.datastore.felix.fileinstall.filename=file:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/etc/io.fabric8.datastore.cfg -Dio.fabric8.datastore.component.name=io.fabric8.datastore -Dio.fabric8.datastore.gitRemotePollInterval=60000 -Dio.fabric8.datastore.service.pid=io.fabric8.datastore -Densemble.auto.start=false -Dagent.auto.start=true -Djava.util.logging.config.file=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc/java.util.logging.properties -Djavax.management.builder.initial=org.apache.karaf.management.boot.KarafMBeanServerBuilder -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/endorsed:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/endorsed -Djava.ext.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/ext:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/ext:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/ext -Dkaraf.home=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084 -Dkaraf.base=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1 -Dkaraf.data=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/data -Dkaraf.etc=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true
      JBossFuse:karaf@root> container-edit-jvm-options child1 '-Dcom.sun.management.jmxremote -Dorg.jboss.gravia.repository.storage.dir=data/repository -Dzookeeper.url=jluomac:2181 -Dzookeeper.password.encode=true -Dzookeeper.password=ZKENC=YWRtaW4= -Xmx1024m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dio.fabric8.datastore.importDir=fabric -Dio.fabric8.datastore.felix.fileinstall.filename=file:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/etc/io.fabric8.datastore.cfg -Dio.fabric8.datastore.component.name=io.fabric8.datastore -Dio.fabric8.datastore.gitRemotePollInterval=60000 -Dio.fabric8.datastore.service.pid=io.fabric8.datastore -Densemble.auto.start=false -Dagent.auto.start=true -Djava.util.logging.config.file=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc/java.util.logging.properties -Djavax.management.builder.initial=org.apache.karaf.management.boot.KarafMBeanServerBuilder -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/endorsed:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/endorsed -Djava.ext.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/ext:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/ext:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/ext -Dkaraf.home=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084 -Dkaraf.base=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1 -Dkaraf.data=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/data -Dkaraf.etc=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true'
      Operation succeeded. New JVM flags will be loaded at the next start of child1 container
      JBossFuse:karaf@root> container-stop  child1 
      The list of container names: [child1]
      Container 'child1' stopped successfully.
      JBossFuse:karaf@root> container-start child1
      The list of container names: [child1]
      JBossFuse:karaf@root> container-edit-jvm-options -f child1 
      -Dcom.sun.management.jmxremote -Dorg.jboss.gravia.repository.storage.dir=data/repository -Dzookeeper.url=jluomac:2181 -Dzookeeper.password.encode=true -Dzookeeper.password=ZKENC=YWRtaW4= -XX:MaxPermSize=256m -Dcom.sun.management.jmxremote -Dorg.jboss.gravia.repository.storage.dir=data/repository -Dzookeeper.url=jluomac:2181 -Dzookeeper.password.encode=true -Dzookeeper.password=ZKENC=YWRtaW4= -Xmx1024m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dio.fabric8.datastore.importDir=fabric -Dio.fabric8.datastore.felix.fileinstall.filename=file:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/etc/io.fabric8.datastore.cfg -Dio.fabric8.datastore.component.name=io.fabric8.datastore -Dio.fabric8.datastore.gitRemotePollInterval=60000 -Dio.fabric8.datastore.service.pid=io.fabric8.datastore -Densemble.auto.start=false -Dagent.auto.start=true -Djava.util.logging.config.file=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc/java.util.logging.properties -Djavax.management.builder.initial=org.apache.karaf.management.boot.KarafMBeanServerBuilder -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/endorsed:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/endorsed -Djava.ext.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/ext:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/ext:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/ext -Dkaraf.home=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084 -Dkaraf.base=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1 -Dkaraf.data=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/data -Dkaraf.etc=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -Dio.fabric8.datastore.component.name=io.fabric8.datastore -Dio.fabric8.datastore.importDir=fabric -Dio.fabric8.datastore.felix.fileinstall.filename=file:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/etc/io.fabric8.datastore.cfg -Dio.fabric8.datastore.gitRemotePollInterval=60000 -Dio.fabric8.datastore.service.pid=io.fabric8.datastore -Densemble.auto.start=false -Dagent.auto.start=true -Djava.util.logging.config.file=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc/java.util.logging.properties -Djavax.management.builder.initial=org.apache.karaf.management.boot.KarafMBeanServerBuilder -Djava.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/endorsed:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/endorsed:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/endorsed -Djava.ext.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/jre/lib/ext:/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/lib/ext:/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/lib/ext -Dkaraf.home=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084 -Dkaraf.base=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1 -Dkaraf.data=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/data -Dkaraf.etc=/apps/jboss/fuse/6.2.1/fabric/jboss-fuse-6.2.1.redhat-084/instances/child1/etc -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true
      JBossFuse:karaf@root>
      

      You can see that I had passed in the full JVM options to the command "container-edit-jvm-options" for modifying except that I changed "-Xmx768m" to "-Xmx1024m" and removed "-XX:MaxPermSize=256m" because I do not need it anymore. However, after I stop/start the child container, the option "-Xmx768m" was changed to "-Xmx1024m" just fine. But the option "-XX:MaxPermSize=256m" was still there. And the most troublesome was that all of "-D" options were duplicated.

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            rhn-support-qluo Joe Luo
            Roman Jakubco Roman Jakubco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: