Sunday, July 1, 2012

Connect to jconsole to a remote server

Recently, I've encountered problem for connecting jconsole to my remote server (it was tomcat server). Locally, it did work but remotely, it didn't,
I used JDK 1.7 (it may be linked ... ) and ubuntu (it may be linked also).

So I've added the following property:
-Djava.rmi.server.hostname=michael-ubu 


and it started working ...

Here's the doc that finally helped me:

http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/javarmiproperties.html


java.rmi.server.hostname
The value of this property represents the host name string that should be associated with remote stubs for locally created remote objects, in order to allow clients to invoke methods on the remote object. The default value of this property is the IP address of the local host, in "dotted-quad" format.






This one also helped me:

I had a similar, if not the same, problem. I could connect to the JMX server if I started jconsole locally on the machine.
It appears the RMI server was not listening on the correct ip. So, as was suggested in this related question, I added the following:
-Djava.rmi.server.hostname=<host ip>
to JAVA_OPTS as well, and then it worked.



4 comments:

Anonymous said...

If you get leg cramps and feel a sudden pain in your leg, often at night, it can be attributed to a muscle or group of muscles suddenly tightening. wrv54g vpn client. It allows you to be flexible in your choices. mac os x vpn log file

Anonymous said...

Compare their prices and printing quality and you should be well on your way to freeing yourself from expensive brochures., vpn port 389. In other words, if there was equal representation from the side of people who had received information about organic product promotions with those ones who had never heard of organic foods. It's this show (and many other "reality" shows like it) that proves that competitiveness (and the fashion industry) is truly the devil's tool. vpn usenet. These are just few of the advantages offered by organic weed prevention. vpn express ipad

Anonymous said...

For those who have preexisting conditions, however, you do have the option of purchasing a policy without a medical exam., top p2p sharing programs. There are indeed cases in which the only intervention that can play is to advise the administrator to install panels as noise if the noise is caused by plants such as boiler or elevator he has no powers to do so. Technology consulting covers the complete process of problem identification, requirement gathering, solution proposal, solution development and delivery. sendto udp. Travel booking refers to online booking for travelling abroad, provided their visas are eligible. universal remote wr7

Anonymous said...

And those who are interested in the other interests can focus on those, too. with the opmn server