Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-2070

[JAVA8 S2I] jstat in container does not work

    XMLWordPrintable

Details

    • CLOUD Maintenance Sprint 14

    Description

      Follows up on CLOUD-1185

      jstat in a container built with the OpenJDK S2I Image does not work

      The problem seems to be specific to openjdk image, as it is not caused by the same problem as CLOUD-1185 (there is no hsperfdata_jboss as in the other cases)

      sh-4.2$ jps
      Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
      sh-4.2$ ps aux
      USER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
      1002970+      1  4.3  0.3 8206112 80556 ?       Ssl  16:02   0:01 java -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/etc/jolokia.properties -XX:+UseParallelGC -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRat
      1002970+    167  0.3  0.0  11772  1728 ?        Ss   16:03   0:00 /bin/sh
      1002970+    217  0.0  0.0  47448  1668 ?        R+   16:03   0:00 ps aux
      sh-4.2$ jstat -gc 1
      Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss
      1 not found
      sh-4.2$ cd /tmp/
      sh-4.2$ ls
      artifacts  hsperfdata_root  ks-script-IBW5wd  scripts  src  yum.log
      sh-4.2$ whoami 
      whoami: cannot find name for user ID 1002970000
      

      Attachments

        Issue Links

          Activity

            People

              wdecoste1@redhat.com William Decoste (Inactive)
              maschmid@redhat.com Marek Schmidt
              Marek Schmidt Marek Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: