Sai Vamsi,
On 12/8/23 00:43, Bodavula, Sai Vamsi Mohan Krishna (TR Technology) wrote:
Hey Christopher.,
Greetings of the day.
1.
Might I have confused you with posting the arguments directly ., Yeah as i just
shared you the annotations with comments , to state you the stuff i am using.,
But in my deployment ., I am using them in catalina opts., and trying to call
them from values.yaml., which looks like this :
javaVMMemoryArgument: "-Xms2048M -Xmx10240M -XX:+UseStringDeduplication
-XX:+UseContainerSupport -Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.port=49151
-Djava.rmi.server.hostname=lab1workflow4scalsvc2zus1-service.hqm-lab1.svc.cluster.local
"
and I am referring the word "javaVMMemoryArgument" from values yaml and
calling it in Catalina_opts, so that it would fetch all these annotations as
mentioned above, during the deployment. This is my deployment part., where I am referring
to the above values from values.yaml
env:
- name: CATALINA_OPTS
value: {{ .Values.deployment.javaVMMemoryArgument }}
1.
Coming to Process., I have searched for Java process that listens on my
mentioned port ie., 49151, but none of the process is listening to that process.
I even tried with
root@lab1workflow4scalsvc2zus1-deployment-fd64ff775-cwzn6:/# netstat -tulpn |
grep LISTEN
tcp6 0 0 :::10109 :::* LISTEN
1/java
tcp6 0 0 :::9109 :::* LISTEN
1/java
root@lab1workflow4scalsvc2zus1-deployment-fd64ff775-cwzn6:/# netstat -tulpn |
more
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp6 0 0 :::10109 :::* LISTEN
1/java
tcp6 0 0 :::9109 :::* LISTEN
1/java
root@lab1workflow4scalsvc2zus1-deployment-fd64ff775-cwzn6:/# netstat -tulpn |
grep ':443'netstat -tulpn | grep ':443'^C
root@lab1workflow4scalsvc2zus1-deployment-fd64ff775-cwzn6:/# netstat -tulpn |
grep ':49151'
root@lab1workflow4scalsvc2zus1-deployment-fd64ff775-cwzn6:/#
which confirms me that , any of the process is being listening on the port
49151.
2.
I would like to request you to suggest me with a better approach ., where i am
missing anything in this process!
Good question. What is pid #1? Do those port numbers make any sense for
your Tomcat-based service?
Is Tomcat even running? Try 'ps aux | grep catalina' to see if there are
any. Are you launching Tomcat using catalina.sh / startup.sh or similar?
Or are you running Tomcat "embedded" within your own application?
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org