• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application Status on Tomcat

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I've several applications deployed on Tomcat. Tomcat is running on AIX. I don't have wget command to list out the applications & their status.

1. Is there any command to find the port # on which Tomcat is running, given the PID?

2. Is there any command to list out the applications & their status (running or not) deployed on Tomcat?

I'm sorry if my question is too generic.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat runs on about 5 ports. One for http (8080), one for https (8443), one for control (8005) and one for the proxy tunnel used by related systems such as apache httpd (8009).

Yes, that's only 4. Check the server.xml file, because I'm too lazy.

Obviously, since server.xml defines these ports you can always look at it, but there's a way to determine what process owns what port(s) via an OS inquiry. In linux, it's "netstat -lnp". It may be the same in AIX, although I'm not sure.

There are several ways to find out what's running in Tomcat. You can use J2EE management API (I think it's JSR-88), JMX, or the Tomcat management webapp, which can be run as an actual GUI app or invoked as a web service. There's probably 1 or 2 more that I can't remember.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic