We have an monitoring application using SNMP, I have enable SNMP in my tomcat server with following option in bin/setenv.sh
file.
#
# SNMP for Tomcat
#
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.interface=10.101.21.31"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.port=1651"
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.snmp.acl=false"
At tomcat startup no issue at all everything is clean. but when i am stopping tomcat i am getting this error.
[tomcat@webserver1 bin]$ ./catalina.sh stop
JAVA_OPTS: %JAVA_OPTS%
Using CATALINA_BASE: /opt/tomcat7.1
Using CATALINA_HOME: /opt/tomcat7.1
Using CATALINA_TMPDIR: /opt/tomcat7.1/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/tomcat7.1/bin/bootstrap.jar:/opt/tomcat7.1/bin/tomcat-juli.jar
Error: Failed to start SNMP adaptor with address: /10.101.21.31:1651 (Address already in use)
Anyway i can cleanly stop tomcat rather than kill it?