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

[6.2.1.069] Container-edit-jvm-options not working

XMLWordPrintable

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

      Execute following steps:

      1. container-create-child root testcontainer
      2. verify the default setting of Xmx (default value is Xmx768)

      JBossFuse:karaf@root> exec ps aux | grep testcontainer | grep Xmx
      

      3. execute

      JBossFuse:karaf@root> container-edit-jvm-options testcontainer "-Xmx1024m"
      Operation succeeded. New JVM flags will be loaded at the next start of testcontainer container
      

      4. Check fuse_home/instances/instance.properties - it says

      ...
      item.1.loc = /home/avano/work/jboss-fuse-6.2.1.redhat-069/instances/testcontainer
      item.1.pid = 1797
      item.1.opts = -Xmx1024m
      

      5. Restart container as the fuse says
      6. Verify the Xmx setting again - it is not changed (still default value Xmx768M)
      7. Instance.properties is restored and the edited setting is not present:

      ...
      item.1.loc = /home/avano/work/jboss-fuse-6.2.1.redhat-069/instances/testcontainer
      item.1.pid = 2327
      item.1.opts = -server -Dcom.sun.management.jmxremote -Dorg.jboss.gravia.repository.storage.dir=data/repository -Dzookeeper.url=\"10.40.3.175:2181\" -Dzookeeper.password.encode=\"true\" -Dzookeeper.password=\"ZKENC=YWRtaW4=\" -Xmx768m -XX:MaxPermSize=256m -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass -Dio.fabric8.datastore.gitRemotePollInterval=60000 -Dio.fabric8.datastore.importDir=fabric -Dio.fabric8.datastore.felix.fileinstall.filename=file:/home/avano/work/jboss-fuse-6.2.1.redhat-069/etc/io.fabric8.datastore.cfg -Dio.fabric8.datastore.service.pid=io.fabric8.datastore -Dio.fabric8.datastore.component.name=io.fabric8.datastore
      

            pantinor@redhat.com Paolo Antinori
            avano@redhat.com Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: