Problems to connect Java visualVM to a EC2-instance

Posted by kasten on Server Fault See other posts from Server Fault or by kasten
Published on 2011-03-29T18:42:01Z Indexed on 2013/10/24 9:59 UTC
Read the original article Hit count: 308

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about java