Highlighted
3993 views

Jboss JMX access in BSM 9.26

Jump to solution

In BSM 9.25, we can access JBoss JMX directly via, for example, Java Jconsole.

We provided URL like this:
service:jmx:rmi:///jndi/rmi://dps:29601/jmxrmi

And was able to run methods in different mbeans:

 

In BSM 9.26 we can't do it anymore. I understand that JMX/RMI ports changed, I tried all ports mentioned in docs, but without success.

Maybe anybody know how to do it in BSM 9.26? Thanks!

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi Konstantin,
you should mention that this requires the installation a Java JDK on the system you run JConsole on, otherwise jconsole.bat will fail as it requires jconsole.exe, jconsole.jar and other files which are not part of the JRE.

Another thing is that you cannot connect to a remote BSM system using default JMX user and password.
You need to add a JBoss user for this, as described (for example) in the manual
Using System Health
  Chapter 1: Setting Up System Health
    How to add a JBoss user

Then it works like a charm:

Installed JDK to c:\program files\Java\jdk1.7.0_79
cd C:\HPBSM\jboss-as\bin
set JAVA_HOME=c:\program files\Java\jdk1.7.0_79
jconsole


Greetings
Siggi

Customer Support
Micro Focus

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

6 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

 

Hi,

Remote access to the JMX console is disabled by default, so it can only be accessed from each server locally.

You can enable remote access from Infrastructure Settings (this is from the Platform Admininstation PDF, pg 95):

1. Select Admin > Platform > Setup and Maintenance > Infrastructure Settings.
2. Select Foundations.
3. Select Security.
4. In the Security-Login table, locate Restrict remote access to JMX console. Change the value to
false.

The port is 29000.

Regards,
Tim

Tim, thank you for reply!

"Restrict remote access to JMX console" is turned off, of course. I can access HTTP JMX console via http://<bsm_srv>:29000.
But I need to access JMX directly (without HTTP), for example via jconsole.exe...

 

0 Likes
Highlighted
Cadet 2nd Class Cadet 2nd Class
Cadet 2nd Class

Depends on which service, it could be one of these REMOTE_JMX_PORT in the startup scripts under <BSM>/bin folder

bus_run.sh:REMOTE_JMX_PORT=29623; export REMOTE_JMX_PORT
odb_run.sh:REMOTE_JMX_PORT=29612; export REMOTE_JMX_PORT
opr-scripting-host_run.sh:REMOTE_JMX_PORT=29628; export REMOTE_JMX_PORT
schedulergw_run.sh:REMOTE_JMX_PORT=29616; export REMOTE_JMX_PORT
scheduler_run.sh:if [ -n "$REMOTE_JMX_PORT" ]; then
scheduler_run.sh: echo "REMOTE_JMX_PORT was override"
scheduler_run.sh: REMOTE_JMX_PORT=29616; export REMOTE_JMX_PORT
wde_run.sh:REMOTE_JMX_PORT=29604; export REMOTE_JMX_PORT

Highlighted

Thank you, brahmasky! But it's JBOSS, and it runs another way.

So I'm anwsering to me by myself 🙂

Now we need to start jconsole with "C:\HPBSM\jboss-as\bin\jconsole.bat"

Tested URL to connect is:

service:jmx:remoting-jmx://dps:4447

Highlighted
Micro Focus Expert
Micro Focus Expert

Hi Konstantin,
you should mention that this requires the installation a Java JDK on the system you run JConsole on, otherwise jconsole.bat will fail as it requires jconsole.exe, jconsole.jar and other files which are not part of the JRE.

Another thing is that you cannot connect to a remote BSM system using default JMX user and password.
You need to add a JBoss user for this, as described (for example) in the manual
Using System Health
  Chapter 1: Setting Up System Health
    How to add a JBoss user

Then it works like a charm:

Installed JDK to c:\program files\Java\jdk1.7.0_79
cd C:\HPBSM\jboss-as\bin
set JAVA_HOME=c:\program files\Java\jdk1.7.0_79
jconsole


Greetings
Siggi

Customer Support
Micro Focus

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

Highlighted

Siggi, thank you for valuable information!

I need to add - added user start working imeediately, no need to restart Jboss.

Regards,
Konstantin

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.