• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Issue after issue with jboss remote connection and jconsole

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I come in peace (and desperation!) and really need your assistance. I am going to cram this post with as much information as possible so hopefully some one can help because my friend and I have spent 2 days trying to solve this to no avail

Problem description: Unable to remote connect to JBoss EAP 6.2 with JConsole. The box is running on my local network which my friend remotes via ssh too. Operating System is Fedora 20

What have we tried: Everything! In all seriousness we have tried a multitude of things. Firstly here is our standalone.conf and standalone.xml files. As you can see in the standalone.conf we have a range of JAVA_OPT variables commented out, we have tried so many different combinations now that we don't know which are needed and which are not.

Standalone.conf





Standalone.xml



Potentially we thought it might be a networking issue as well, seeing as when we run i get the local network ip address of the box 192.168.0.<value> but in /etc/hosts we have


127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6




Failing this, i thought maybe if i could connect via code then it might prove its possible in which case we can persevere with jconsole. Alas I am getting errors although slightly better than I had hoped



The above throws the following exception :



Thats pretty much what we have tried, I am not sure what is relevant and what is not anymore - we are lost in trying to get this too work and would seriously appreciate some help.

Thanks for your time

 
Greenhorn
Posts: 3
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Lozza,

I am in almost the same situation, have you been able to make any progress on this?

btw. I'd like to use (or to be more specific, show my colleagues how to do so) it with JConsole, VisualVM and MissionControl, which should if it works on one of them be good for all of them.... well, knock on wood.....

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Arend, welcome to CodeRanch!

I thought I would reply to Lozza's question but then I noticed that the configurations in the startup script seem to have too many changes and also there wasn't the exact error message/log in the post.

Can one of you try it against a clean installation and explain how exactly you are trying to connect JConsole and what exactly fails? Also please tell us the exact WildFly/AS7 version in use.
 
Arend Vogtländer
Greenhorn
Posts: 3
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jaikiran Pai wrote:Arend, welcome to CodeRanch!

I thought I would reply to Lozza's question but then I noticed that the configurations in the startup script seem to have too many changes and also there wasn't the exact error message/log in the post.

Can one of you try it against a clean installation and explain how exactly you are trying to connect JConsole and what exactly fails? Also please tell us the exact WildFly/AS7 version in use.



Hi Jaikiran,

meanwhile i have had a bit of luck, getting at least a local connection to JBoss, although not as eöegant as i would like to.
My scenario is that i have a JBoss running as windows service, and as i understood a bunch of differend descriptions in the web, there is the first problem.
To establish a loval connection, the service and the monitoring tool have to be run by the same user. Sounds pretty easy, but runas just didn't work. That might be because of the fact, that the JBoss seems to be not manageable, if started as a service. The dirty workaround was to stop the service and start it inside the console by hand. Well at least i get a pretty glimpse of what i would get, if the whole connection issue is solved :-)

btw. i use JBoss EAP 6.2, which is a part of a bundled installation in one of our products.

Now for the remote connection...

despite of having the often proposed parameters set, the named tools constantly fail to configure/establish jmx connections.
as i understood it, the first step would be just to establish a unsecured connection without authentication, as it is the simplest startingpoint.
i guess there could be a problem with this, as JBoss wants it's management to be accessed by known users.
in later scenarios i surely would want to have secure connections and authenticated users, to have a basis to provide proper monitoring and analysis capabilities to our customers.

so far my trial'n'error knowledge, I'll have to set up a fresh environment in a bit, and will then be more detailed about what exactly i configure and in which way it fails.

thanks anyhow and a good day to all of you,
arend
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After seeing few more similar posts in other JBoss forums too, I decided to write about this today. Here's an explanation of what it takes to getting remote JMX access to WildFly (and JBoss AS7) http://jaitechwriteups.blogspot.com/2014/12/remote-jmx-access-to-wildfly-or-jboss.html
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic