X

Innovative ideas for every utility

Accessing JMX for Oracle WebLogic 11g

Anthony Shorten
Senior Principal Product Manager

In Oracle Utilities Application Framework V4, we use the latest Oracle WebLogic release (11g). The instructions below illustrate a way of allowing a console like jconsole to remotely monitor and manage Oracle WebLogic using the JMX Mbeans.

Typically management of Oracle WebLogic is done from Oracle Enterprise Manager or the Oracle Weblogic console application but you can also use JMX.

To access the JMX capability for Oracle WebLogic 11g, for an Oracle Utilities Application Framework based product, using a JMX console (such as jconsole) the following process needs to be performed:


  • Enable the JMX Management Server in the Oracle WebLogic console at splapp -> Configuration -> General -> Advanced Settings option. Enable both Compatibility Mbean Server Enabled and Management EJB Enabled (this enables the legacy and new JMX interface). Save the changes This change will require a restart.

  • In the startup of the Oracle WebLogic server in the $SPLSYSTEMLOGS/myserver.log (or %SPLESYSTEMLOGS%\myserver.log on Windows) you will see the BEA-149512 message indicating the Mbean servers have been started. The message will indicate the JMX URL that can be used to access the JMX Mbeans. The URL is in the format:


service:jmx:iiop://host:port/jndi/mbeanserver

where:
host - Oracle WebLogic host name
port - Oracle WebLogic port number
mbeanserver - Mbean Server to access. Valid Values:
weblogic.management.mbeanservers.runtime

weblogic.management.mbeanservers.edit

weblogic.management.mbeanservers.domainruntime


For illustrative purposes we will use the domainruntime Mbean.


  • Ensure that you execute the splenviron[.sh] utility to set the appropriate environment variables for the desired environment.

  • Execute the following jconsole command to initiate the connection to the JMX Mbean server


Windows:
jconsole -J-Djava.class.path=%JAVA_HOME%\lib\jconsole.jar;%WL_HOME%\server\lib\wljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote

Linux/Unix
jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$WL_HOME/server/lib/wljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote



  • You will see a New Connection Dialog. Specify the URL from the previous steps into the Remote process (i.,e. service:jmx:iiop...). The credentials are the credentials specified for the Oracle WebLogic console.

  • You are now able to view the JMX classes available.



Here is an example from my demonstration machine:
Sample WebLogic Statistics

Refer to the Oracle WebLogic Mbean documentation to understand the output.

Join the discussion

Comments ( 41 )
  • Matt Harding Sunday, May 16, 2010
    Thanks Anthony.
    It's good to see this type of information being advertised for OUAF as JAVA monitoring (but not just jConsole) is really mandatory as OUAF implements more JAVA. From past experience, root cause analysis through monitoring tools like Wily Introscope or Oracle AD4J are a saviour in the production world.
    Note - With the current version of JAVA, Oracle advised that OD4J is not supported. Any recommendations on tools you have come across in use with CC&B for RCA style monitoring (i.e. not just reactive monitoring like what jconsole is used for)?
    Keep up the great work,
    Matt
    ps. Note - I'm not an OUAF expert, but your blogs are great to get an understanding of how things should work.
  • Anthony Shorten Tuesday, May 18, 2010
    Matt thanks for the comments.
    AD4J should be updated soon so that is always an avenue. I have been playing with jvisualvm which is now part of Java 6. The local monitoring seems to work fine though I have been having a little inconsotency with the JMX addon connecting to anything but the basic JVM statistics.
    I hope to play with it a bit more in the coming weeks and may post a blog entry on how to use it.
  • Matt Harding Monday, June 7, 2010
    Thanks for the response Anthony.
    Note - I didn't realise you posted a reply till now (I was googling AD4J and Weblogic and this came up) but just a point that I thought I would get emailed when an update was made to this discussion. Maybe a feature to highlight to the Oracle community owner?
    Cheers,
    Matt
  • IRIS in TIGHTS Monday, July 12, 2010
    This circle of men and women that make the commenting rounds have a range beliefs, a few of which are extremely powerful, but some of which I’m completely sure are precise.
  • JERRIE Wednesday, July 14, 2010
    That is very good that you have broken the complete procedure into easy ways..I wanted this kind of as this for my work too, the info incredibly helpful and quite useful. thx
  • Min Defreece Wednesday, July 21, 2010
    Hi, How is it going? I have to say that i enjoy the special source of content of your blog a great deal, can't help wondering where you get all of this from. Best regards Henrik Hanson
  • Chris G Tuesday, August 24, 2010
    I want to keep up with your blog but don't really know about this RSS thing. Do you know how I can subscribe to it? I really love what you are saying here.
  • For acne Thursday, September 23, 2010
    if you do good you pay, We had small house in Virgo they where wheat as vagggine on a pole
  • For acne Thursday, September 23, 2010
    We are a dreamer, do you often remember when you where the last time in heaven. It is more good if you do some questioning in your body and soul
  • Deeann Greeno Sunday, September 26, 2010
    Thus politically appropriate. MY PARTNER AND I interpreted the record as it not necessarily staying a big deal laughing during a number of colorings. Exactly why cannot most of us point out anything currently without having that becoming hateful, racist, sexist and so forth ....
  • Frances Motten Monday, November 8, 2010
    Thank you for the great content. I am glad I have taken the time to see this.
  • online casino Thursday, December 2, 2010
    MAY BE SHAZAD WAS NOT ONE OF THEM WHO FOLLOW & DOING THIS ACTION FOR MONEY & DEFAME PAKISTAN.HE IS REAL MUSLIM AND HE CAN'T BEAR THEIR EMOTIONS OR IT WAS ONLY AN ALLEGATION.
  • Cherry Freudenburg Monday, December 13, 2010
    Great story:D I will need some time to ponder this stuff.
  • Tales of Pirates Crusader Leveling Guide Wednesday, December 15, 2010
    I love when you talk about this type of stuff in your posts. Perhaps could you continue this?
  • Thomas And Friends Saturday, December 18, 2010
    I thought it was going to be some boring old post, but I'm glad I visited. I will post a link to this page on my blog. I believe my visitors will find that very useful.
  • Joseph Kvaternik Wednesday, December 22, 2010
    really have a point here I'm sure I'm not the only person who think so.
  • highest youtube views ever Thursday, December 23, 2010
    This enables you to inquire why would YouTube implant such a Abbusive system ? and not simply make any view count as a view. The reason is back whenever this system was integrated men and women use to spam views. Continually refreshing the pages to make their view count higher. So YouTube decided  to cut down by generating this system a rather better, Now YouTube solely counts Actual Views.
  • youtube subscribe glitch Monday, December 27, 2010
    There are plenty different factors that will ultimately impact the amount of viewers and subscribers you attract. Numerous of these take on the standard of your content, the way you label your content, and how you market it. Get these 3 issues proper and you will get hits.
  • Auto Mass Traffic Thursday, December 30, 2010
    lqffkakkbrvvcokkjeedlqjhvhknplik
  • Babette Liesch Thursday, December 30, 2010
    My 2011 will be better being aware of that!
  • Mike Miller Sunday, January 2, 2011
    A very informative post indeed with a lot of useful info. i hope i'll find other posts like this in the future. Thanks!
  • Sana Broz Monday, January 3, 2011
    Well written article, well researched and useful for me in the future.I am so happy you took the time and effort to make this. See you around
  • Earth4Energy hoax Monday, January 10, 2011
    Though I was a bit skeptical, I used to be absolutely curious about scaling down my power bill. So I went forward and picked up Earth4Energy just to see what it is actually all about.
  • tytyrtyt Thursday, January 13, 2011
    I regularly read your posts, but don't make any comments, may as well take the first step today. Mary
  • tree climbing spurs Tuesday, January 18, 2011
    I just began getting involved with climbing. Any suggestions on where to begin? (ie. what to beginwith (small and work my way bigger), type of gear etc etc) Much appreciated :-)
  • Raeann Francione Monday, January 24, 2011
    Nice background, your posts were very good to read and it was something related to me.
  • resor erbjudanden Tuesday, January 25, 2011
    Keep up the good work on the blog. Do like it! :p Could use some more frequent updates, but i am sure that you have got better or other stuff to do like we all have to do unfortunately. =)
  • phuket guide Wednesday, January 26, 2011
    keep up the great work on the blog. I like it. Could use some more frequent updates, but i am quite sure you got some better things to do like we all do. =)
  • Sheila Monday, January 31, 2011
    There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game.
  • buy more youtube views Tuesday, February 1, 2011
    The Actual Man or woman Views: the genuine person user has abilities to permit a viewer to watch and touch upon your videos, services so that you understand how the video is faring on especially the reception there is and which sort persons want being improved within the video or what is to become maintained. However you ought to be cautious as a consequence this program is not going to offer instant options to poor performing YouTube videos.
  • rajdy Tuesday, February 1, 2011
    on to you. Im here to help anyone who needs it. Been around these forums a long time.
  • kjs Tuesday, February 1, 2011
    on to you. Im here to help anyone who needs it. Been around these forums a long time.
  • Earth 4 Energy Wednesday, February 2, 2011
    The Earth4Energy book has seventy one pages of by-instructions. All the elements needed, may be found at your community ironmongery shop for under $ There's also by video directions that actually take your hand, and take you step-by-step through the whole process. I am far from being a technological person and I normally get very frustrated working on complicating things. Not only was this easy, but it was moreover kind of fun. It is best have witnessed the faces of my neighbors when I used to be finished!
  • ciekawy artykuł Thursday, February 3, 2011
    Nice but can u write someting more about it?
  • posicionamiento seo Thursday, February 3, 2011
    Unquestionably believe that which you said. Your favorite justification appeared to be on the web the simplest thing to be aware of. I say to you, I certainly get annoyed while people consider worries that they plainly don't know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
  • Aaron Farrugia Thursday, February 3, 2011
    This post is great. Thank you for this post. I like this type of people who share knowledge with others.
  • köpek maması fiyatları Wednesday, April 6, 2011
    great post!
  • Vicky Friday, April 27, 2012

    A very good article indeed! Thanks ACShorten!!!


  • Vis Thursday, August 21, 2014

    Hi Anthony Shorten,

    We are using SPLVERSION=V2.2.0 SP16. We are seeing issues with our RMB batch process (cobjrun) and I was wondering is there any tool that we can use to monitor the cobjrun process. Please advise.


  • guest Friday, July 8, 2016

    Hi Anthony

    I want to add Utilites enviornment in OEM and wan to enabke JMX port for same . Please let me know the steps fir the same .


  • ashorten Monday, October 31, 2016

    The JMX installation is enabled in the configureEnv utility as outlined in the Server Administration Guide. One thing to remember is that the port numbers you use MUST differ per host. You cannot reuse port numbers within a host for more than one process.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.