Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7999771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:35:54+00:00 2026-06-04T15:35:54+00:00

I am running Tomcat 6 on a Linux server in Amazon’s cloud. I am

  • 0

I am running Tomcat 6 on a Linux server in Amazon’s cloud. I am trying to connect to it with VisualVM from my Mac at my office. I have allowed opened up all TCP ports between my desktop and the server, but I am unable to get VisualVM to do anything.

On the linux box, I have started Tomcat with:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9191
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

On my Mac, I launch VisualVM and choose File -> New JMX Connection…

I enter amazonhostname.com:9191 in the box. It says “Adding amazonhostname.com:9191…” and sits there for several minutes before timing out.

From my Mac, I can “telnet amazonhostname.com 9191” just fine, and I tried some other random ports, and they all worked. I’m pretty convinced it’s not a firewall issue, unless I need to open UDP or ICMP or something like that. (Really??)

There is nothing in catalina.log on the server, or the system console on my Mac, related to jmx. netstat on the server shows 9191 and some other ports open on all interfaces.

There is no jstatd on the remote server. Is that a pre-requisite for JMX? (I am totally new to Java and I’m not even sure what those things mean, but I saw it on a blog post somewhere. I’m grasping at straws now.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T15:35:56+00:00Added an answer on June 4, 2026 at 3:35 pm

    Set the hostname property before the VM starts:

    java -Dcom.sun.management.jmxremote \
         -Dcom.sun.management.jmxremote.port=9191 \
         -Dcom.sun.management.jmxremote.authenticate=false \
         -Dcom.sun.management.jmxremote.ssl=false \
         -Djava.rmi.server.hostname=the.public.ip \
         -jar program.jar
    

    Add the relevant rules to your security group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple instances of tomcat 6 running on the same server (Linux) and
I am running Tomcat 5.54 app server from Eclipse Indigo under Windows 7 Ultimate.
I'm trying to setup josso on an apache tomcat server running on windows. I've
I have a new tomcat application server running on tomcat 6, java 6 (openjdk),
I have an application running in cluster mode (two nodes) under tomcat/Linux. Unfortunately I've
I've a java web application running on an Tomcat server(Linux). In the production environment
I'm running Tomcat 6.0.18 on Linux. I have a JSP that uses a bean
I am running Tomcat 5.5.4 and have a servlet running with no problems. However,
I am running Tomcat Apache server for solr and I my web interface is
We have an application running on Tomcat 6.0.32 and using JSSE (Java 1.6.0_26) for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.