Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to profile a AWS EC2 instance via visualVM.

The instance is in a securitygroup which allows all connections and i'm runing jstatd with a

grant codebase "file:${java.home}/../lib/tools.jar" {
     permission java.security.AllPermission;
};

policy on it.

When i try to connect from my local machine with visulVM nothing happens. When i use jps i get the following response

$ jps -l -m -v rmi://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
Error communicating with remote host: Connection refused to host: xxx.xxx.xxx.xxx; nested exception is: 
java.net.ConnectException: Connection timed out

But i can ssh into the instance and use jps locally.

Has anyone a pointer in which direction i can debug further?

share|improve this question
add comment

1 Answer 1

Is it possible that the port that jps uses is blocked by either your ISP or Amazon? Also, I'm assuming that the communication between your VisualVM and the JVM is pretty "chatty". So maybe this sort of operation can't be done reliably over a WAN.

HTH!

Tom Purl

share|improve this answer
    
Amazon only blocks what you tell it to block and i have checked the ports at which jstat listens (1099 and a randomly generated port) with nmap. They are open from my end. It migth be possible that i must open a Port in my local firewall. I already tried opening the randomport and 1099 but without success. –  kasten Mar 31 '11 at 9:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.