Uploaded image for project: 'WildFly WIP'
  1. WildFly WIP
  2. WFWIP-221

jps can't see server process in Openshift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • OpenShift
    • None
    • Hide

      Either in gui switch to Terminal tab and type `jps` or use remote shell

      oc login 
      oc rsh <pod name> jps -l
      
      Show
      Either in gui switch to Terminal tab and type `jps` or use remote shell oc login oc rsh <pod name> jps -l

      This is somewhat curious issue.

      When pod of app image is deployed (server is started) and switch to terminal in Openshift GUI, doing `jps -l` does nothing although I can see in logs that server is up and I can find java process in /proc/*/cmdline (image has no `ps` utility).

      This happens only in Openshift environment and it is a regression to what was working with latest published CD image.
      Funnily, when I try to run the image in docker and start the server by /opt/eap/bin/openshift-launch.sh, then jps can see the java process.

      # this works fine
      docker run -it docker-registry.upshift.redhat.com/kwills/eap-cd-openshift-rhel8:18.0-EAP7-1216 sh
      sh-4.4$ /opt/eap/bin/openshift-launch.sh &
      sh-4.4$ jps -l
      

              jdenise@redhat.com Jean Francois Denise
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: