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

[JAVA8 S2I] jstat in container does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JAVA8 1.3.0.GA
    • JAVA8 1.2.0.GA
    • Java S2I
    • redhat-openjdk-18-tech-preview-openjdk18-openshift-1.2-4

    • CLOUD Maintenance Sprint 14

      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
      

              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

                Created:
                Updated:
                Resolved: