<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Altentee &#187; Performance &#38; Test Automation Experts &#187; JMX</title>
	<atom:link href="http://altentee.com/tag/jmx/feed/" rel="self" type="application/rss+xml" />
	<link>http://altentee.com</link>
	<description>Performance and Test Automation Experts</description>
	<lastBuildDate>Sat, 12 Jun 2010 00:35:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Monitoring Weblogic 9.2 with JMX and JRuby</title>
		<link>http://altentee.com/2008/monitoring-weblogic-92-with-jmx-and-jruby/</link>
		<comments>http://altentee.com/2008/monitoring-weblogic-92-with-jmx-and-jruby/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 00:23:53 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
				<category><![CDATA[90kts]]></category>
		<category><![CDATA[Altentee]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://90kts.com/blog/2008/monitoring-weblogic-92-with-jmx-and-jruby/</guid>
		<description><![CDATA[<p>After getting nowhere with lack luster HP support, I turned to the power of the Open Source community and got a very simple script up and running to remotely monitor Weblogic JVM Performance and JMS queues using JMX and JRuby.</p>
<p>Despite having some initial issues with the code, the author of the jmx4r module turned around [...]]]></description>
			<content:encoded><![CDATA[<p>After getting nowhere with <a href="http://www.sqaforums.com/showthreaded.php?Number=468372">lack luster HP support</a>, I turned to the power of the Open Source community and got a very simple script up and running to remotely monitor Weblogic JVM Performance and JMS queues using JMX and <a href="http://jruby.codehaus.org/Getting+Started">JRuby</a>.</p>
<p>Despite having some initial issues with the code, the author of the <a href="http://jmesnil.net/weblog/2007/06/11/jmx4r-a-jmx-libary-for-jruby/">jmx4r module</a> turned around a fix inside 24 hours so that I could connect to a Weblogic 9.2 server and look at its <a href="http://edocs.bea.com/wls/docs92/wlsmbeanref/core/index.html">domainruntime MBean</a>s. SiteScope can&#8217;t handle domainruntimes of these size (short of being told to &#8216;add more memory&#8217; to a 3GB+ machine!). So exit stage left Mercury, enter stage right JRuby&#8230;<br />
<span id="more-133"></span></p>
<p>This script will enumerate JVM performance and also JMS queue depths in around 65 lines of code and spits those results into a MySQL database using the mysqlimport CLI.<br />
I&#8217;ve <a href="http://90kts.com/blog/2008/formatting-data-for-import-into-loadrunner-analysis/">formatted the output</a> so I can still input the data into LoadRunner Analysis.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
</pre></td><td class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'rubygems'</span>
<span style="color:#CC0066; font-weight:bold;">require</span> <span style="color:#996600;">'jmx4r'</span>
groupid = <span style="color:#996600;">&quot;mycluster&quot;</span>
<span style="color:#6666ff; font-weight:bold;">JMX::MBean</span>.<span style="color:#9900CC;">establish_connection</span> <span style="color:#ff3333; font-weight:bold;">:url</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;service:jmx:rmi:///jndi/iiop://hostname:7001/weblogic.management.mbeanservers.domainruntime&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:username</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;username&quot;</span>, <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;password&quot;</span>
&nbsp;
<span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#996600;">'D:<span style="color:#000099;">\p</span>erf_jvm.csv'</span>, <span style="color:#996600;">'a'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>file<span style="color:#006600; font-weight:bold;">|</span>
   runtime_mbeans = <span style="color:#6666ff; font-weight:bold;">JMX::MBean</span>.<span style="color:#9900CC;">find_all_by_name</span> <span style="color:#996600;">&quot;com.bea:Type=JRockitRuntime,*&quot;</span>
   runtime_mbeans.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span> mbean <span style="color:#006600; font-weight:bold;">|</span>
		now  = <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span>
		date = <span style="color:#996600;">&quot;#{now.year}-#{now.month}-#{now.day}&quot;</span>
		time = <span style="color:#996600;">&quot;#{now.hour}:#{now.min}:#{now.sec}&quot;</span>
&nbsp;
		data  = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span>
		<span style="color:#9966CC; font-weight:bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>mbean.<span style="color:#9900CC;">object_name</span>.<span style="color:#9900CC;">get_key_property</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Name&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> =~ <span style="color:#006600; font-weight:bold;">/</span>server<span style="color:#006600; font-weight:bold;">/</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">then</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> <span style="color:#996600;">&quot;&quot;</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> date
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> time
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> groupid
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">object_name</span>.<span style="color:#9900CC;">get_key_property</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Name&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">used_physical_memory</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">heap_size_max</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">free_physical_memory</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">total_garbage_collection_time</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">total_garbage_collection_count</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">total_nursery_size</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">heap_free_percent</span>
			file.<span style="color:#CC0066; font-weight:bold;">puts</span> data.<span style="color:#9900CC;">compact</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, &quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
		<span style="color:#9966CC; font-weight:bold;">end</span>
   <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
cmd = <span style="color:#996600;">'D:<span style="color:#000099;">\\</span>wamp<span style="color:#000099;">\\</span>bin<span style="color:#000099;">\\</span>mysql<span style="color:#000099;">\\</span>mysql5.0.51a<span style="color:#000099;">\\</span>bin<span style="color:#000099;">\\</span>mysqlimport -h localhost -P 3390 -s -u root --fields-optionally-enclosed-by=&quot;&quot;&quot; --fields-terminated-by=, --lines-terminated-by=&quot;<span style="color:#000099;">\n</span>&quot; --local sensis D:<span style="color:#000099;">\p</span>erf_jvm.csv'</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">%</span>x<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#008000; font-style:italic;">#{cmd}}</span>
cmd = <span style="color:#996600;">'cat D:<span style="color:#000099;">\p</span>erf_jvm.csv &gt;&gt; D:<span style="color:#000099;">\p</span>erf_jvm_archive.csv'</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">%</span>x<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#008000; font-style:italic;">#{cmd}}</span>
<span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">delete</span> <span style="color:#996600;">'D:<span style="color:#000099;">\p</span>erf_jvm.csv'</span>
&nbsp;
&nbsp;
<span style="color:#CC0066; font-weight:bold;">open</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#996600;">'D:<span style="color:#000099;">\p</span>erf_queues.csv'</span>, <span style="color:#996600;">'a'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>file<span style="color:#006600; font-weight:bold;">|</span>
   runtime_mbeans = <span style="color:#6666ff; font-weight:bold;">JMX::MBean</span>.<span style="color:#9900CC;">find_all_by_name</span> <span style="color:#996600;">&quot;com.bea:Type=JMSDestinationRuntime,*&quot;</span>
   runtime_mbeans.<span style="color:#9900CC;">each</span> <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span> mbean <span style="color:#006600; font-weight:bold;">|</span>
		now  = <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span>
		date = <span style="color:#996600;">&quot;#{now.year}-#{now.month}-#{now.day}&quot;</span>
		time = <span style="color:#996600;">&quot;#{now.hour}:#{now.min}:#{now.sec}&quot;</span>
&nbsp;
		data  = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006600; font-weight:bold;">&#93;</span>
		<span style="color:#9966CC; font-weight:bold;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>mbean.<span style="color:#9900CC;">object_name</span>.<span style="color:#9900CC;">get_key_property</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Name&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span> =~ <span style="color:#006600; font-weight:bold;">/</span><span style="color:#9966CC; font-weight:bold;">Module</span><span style="color:#006600; font-weight:bold;">/</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#9966CC; font-weight:bold;">then</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> <span style="color:#996600;">&quot;&quot;</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> date
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> time
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> groupid
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">object_name</span>.<span style="color:#9900CC;">get_key_property</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;Name&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">messages_received_count</span>
			data <span style="color:#006600; font-weight:bold;">&lt;&lt;</span> mbean.<span style="color:#9900CC;">messages_high_count</span>
			file.<span style="color:#CC0066; font-weight:bold;">puts</span> data.<span style="color:#9900CC;">compact</span>.<span style="color:#9900CC;">join</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;, &quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
		<span style="color:#9966CC; font-weight:bold;">end</span>
   <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
cmd = <span style="color:#996600;">'D:<span style="color:#000099;">\\</span>wamp<span style="color:#000099;">\\</span>bin<span style="color:#000099;">\\</span>mysql<span style="color:#000099;">\\</span>mysql5.0.51a<span style="color:#000099;">\\</span>bin<span style="color:#000099;">\\</span>mysqlimport -h localhost -P 3390 -s -u root --fields-optionally-enclosed-by=&quot;&quot;&quot; --fields-terminated-by=, --lines-terminated-by=&quot;<span style="color:#000099;">\n</span>&quot; --local sensis D:<span style="color:#000099;">\p</span>erf_queues.csv'</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">%</span>x<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#008000; font-style:italic;">#{cmd}}</span>
cmd = <span style="color:#996600;">'cat D:<span style="color:#000099;">\p</span>erf_queues.csv &gt;&gt; D:<span style="color:#000099;">\p</span>erf_queues_archive.csv'</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> <span style="color:#006600; font-weight:bold;">%</span>x<span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#008000; font-style:italic;">#{cmd}}</span>
<span style="color:#CC0066; font-weight:bold;">sleep</span> <span style="color:#006666;">10</span>
<span style="color:#CC00FF; font-weight:bold;">File</span>.<span style="color:#9900CC;">delete</span> <span style="color:#996600;">'D:<span style="color:#000099;">\p</span>erf_queues.csv'</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://altentee.com/2008/monitoring-weblogic-92-with-jmx-and-jruby/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring Weblogic using JMX in SiteScope</title>
		<link>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-sitescope/</link>
		<comments>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-sitescope/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 03:45:45 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
				<category><![CDATA[90kts]]></category>
		<category><![CDATA[Altentee]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[sitescope]]></category>

		<guid isPermaLink="false">http://90kts.com/blog/2008/monitoring-weblogic-using-jmx-in-sitescope/</guid>
		<description><![CDATA[<p>Using JMX (Java Management Extensions) it is possible to monitor Managed Beans published by MBean servers. Weblogic (WL) provides MBeans for both admin and managed servers.</p>
<p>You can find out more info about WebLogic MBeans and accessing them with JMX here &#8230;</p>
<p>Following are some augmented instructions for setting up JMX monitors within SiteScope. I used this [...]]]></description>
			<content:encoded><![CDATA[<p>Using JMX (<a href="http://en.wikipedia.org/wiki/Java_Management_Extensions">Java Management Extensions</a>) it is possible to monitor Managed Beans published by MBean servers. Weblogic (WL) provides MBeans for both admin and managed servers.</p>
<p>You can find out more info about WebLogic MBeans and accessing them with JMX <a href="http://edocs.bea.com/wls/docs92/wlsmbeanref/core/index.html">here</a> &#8230;</p>
<p>Following are some augmented instructions for setting up JMX monitors within SiteScope. I used this <a href="http://www.performanceengineer.com/monitoring/monitoring-weblogic-using-jmx">excellent </a>article as a starting point.<br />
<span id="more-121"></span><br />
<strong>Types</strong><br />
There are two types of MBeans which we&#8217;re interested in namely:</p>
<blockquote><p>1. Configuration MBeans, which expose attributes and operations<br />
   for configuring WebLogic Server resources.<br />
2. Runtime MBeans, which provide information about the runtime state of its resources.</p></blockquote>
<p>In terms of performance monitoring we&#8217;re more interested in the latter, but from an overall system level monitoring point of view, sysadmins may also be interested in static config MBeans.</p>
<p>In reality there are 1,000&#8217;s of runtime MBeans available for WebLogic and navigating/finding the correct bean inside SiteScope can be difficult due to it&#8217;s clunky web interface &#8230;</p>
<p>As a starting point refer to the MBean reference previously mentioned to get an overview of runtime beans available. In this case I&#8217;m interested in the JMSRuntime bean &#8230;</p>
<p><strong>Using the WL Scripting Tool</strong><br />
If you are working on the WL server you can use the WL Scripting Tool to browse the available Runtime beans:<br />
<code>D:\Data\bea\wlserver_10.0\server\bin>setWLSEnv.cmd<br />
D:\Data\bea\wlserver_10.0\server\bin>java weblogic.WLST<br />
connect('username','password','t3://host:8003')<br />
serverRuntime()<br />
ls()<br />
cd("JMSRuntime")<br />
ls()<br />
cd("server01_01.jms")<br />
ls()</p>
<p>dr-\-   Connections<br />
dr-\-   JMSServers</p>
<p>-r-\-   ConnectionsCurrentCount                      14<br />
-r-\-   ConnectionsHighCount                         14<br />
-r-\-   ConnectionsTotalCount                        18<br />
-r-\-   HealthState                                  State:HEALTH_OK,ReasonCode:\[\]<br />
-r-\-   JMSServersCurrentCount                       2<br />
-r-\-   JMSServersHighCount                          2<br />
-r-\-   JMSServersTotalCount                         2<br />
-r-\-   Name                                         server01_01.jms<br />
-r-\-   Type                                         JMSRuntime</code></p>
<p>This will help identify the name of the MBean (in this case server01_01.jms) and the indicative path<br />
to that MBean when using JConsole or SiteScope.</p>
<p><strong>Setting up IIOP access on monitored machines</strong><br />
SiteScope relies on the IIOP protocol to talk to the WL server. In order to get remote access with JMX via IIOP you need to provide a default username and password for the IIOP user.</p>
<p>This can be done via the WL admin console as in:<br />
<code>domServiceBus->Environment->Servers->server01_nn->Protocols [tab]\->IIOP->advanced</code></p>
<p>Then provide a default username and password for the IIOP user.</p>
<p>Note: IIOP is already enabled by default, but a username and pwd is not. This change requires a server restart for WL. You must make sure that the username and password is >= 8 digits, otherwise the CORBA connection will fail when using SiteScope.</p>
<p><strong>Testing connectivity from JConsole</strong><br />
Before setting up a SiteScope monitor it is worth using JConsole to familiarize yourself with the published MBeans.<br />
Assuming you have the Java SDK installed, launch JConsole as per the following:<br />
<code>C:\Program Files\Java\jdk1.5.0_14\bin\jconsole.exe \-J-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:60000:500:10</code></p>
<p>Note: you must provide the additional read timeout arguments otherwise you will get a connection error like this:<br />
<code>Unable to retrieve counters: Error receiving browse data: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079696 Maybe; nested exception is: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 208 completed: Maybe</code></p>
<p>To connect to the target server, click on New Connection->advanced and provide the following details:<br />
<code>JMX URL: service:jmx:rmi:///jndi/iiop://hostname:8003/weblogic.management.mbeanservers.runtime<br />
Username: <whatever you set for the IIOP user><br />
Password: <whatever you set for the IIOP user></code></p>
<p>You will then get a tree-like broswer in which you can look at all available MBeans.</p>
<p><strong>Setting up a SiteScope JMX monitor</strong><br />
Before setting up the monitor, make sure you change the following registry key for SiteScope to avoid the aforementioned timeout errors:<br />
<code>@="-server -Xmx256m -showversion -Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10<br />
-Dcatalina.home=\"D:\\SiteScope\\Tomcat\" -Dflipper.param.file=..\\conf\\flipperSiteScope.properties<br />
-Dtopaz.home=.. -cp \"D:\\SiteScope\\Tomcat\\bin\\bootstrap.jar\" org.apache.catalina.startup.Bootstrap start"</code></p>
<p>Note the added parameter argument:<br />
<code>-Dcom.sun.CORBA.transport.ORBTCPReadTimeouts=10:30000:500:10</code></p>
<p>You will need to stop/start the SiteScope windows service for this change to take affect.</p>
<p>Now create a new JMX monitor:<br />
<code>Name: 8003 - Managed server<br />
Frequency: 2 minutes<br />
JMX URL: service:jmx:rmi:///jndi/iiop://host:8003/weblogic.management.mbeanservers.runtime<br />
Domain filter:<br />
Username: weblogic<br />
Password: password</code></p>
<p>Then click Get Counters &#8230;</p>
<p>If you used the WLST you&#8217;d now know what path the MBean exists on. In this case:<br />
<code>com.bea/server01_01/server01_01.jms/JMSRuntime</code></p>
<p>And suggested counters to collect might be:<br />
<code>ConnectionsCurrentCount<br />
ConnectionsHighCount<br />
ConnectionsTotalCount<br />
JMSServersCurrentCount<br />
JMSServersHighCount<br />
JMSServersTotalCount</code></p>
<p>Now you will be able to use SiteScope as the central repository for collecting metrics (long term monitoring). When running a load test scenario, you will be able to poll these same metrics using the SiteScope monitor available to the Controller.</p>
]]></content:encoded>
			<wfw:commentRss>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-sitescope/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Monitoring Weblogic using JMX in LoadRunner</title>
		<link>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-loadrunner/</link>
		<comments>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-loadrunner/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 20:53:31 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
				<category><![CDATA[90kts]]></category>
		<category><![CDATA[Altentee]]></category>
		<category><![CDATA[JMX]]></category>
		<category><![CDATA[loadrunner]]></category>
		<category><![CDATA[weblogic]]></category>

		<guid isPermaLink="false">http://90kts.com/blog/2008/monitoring-weblogic-using-jmx-in-loadrunner/</guid>
		<description><![CDATA[<p>When configuring the WebLogic (JMX) monitor (Add Measurements via the Run tab in Controller) you may be presented with the following error:</p>
<p>Java Virtual Machine Version mismatch: Required version: 1.3</p>
<p>To overcome this try the following steps &#8230;
</p>
<p>Rename the jmxri.jar file to jmxri.bak in the \LoadRunner\classes directory</p>
<p>Copy the weblogic.jar from your application server directory typically from
\bea\wlserver_\server\lib
to the
\LoadRunner\classes [...]]]></description>
			<content:encoded><![CDATA[<p>When configuring the WebLogic (JMX) monitor (Add Measurements via the Run tab in Controller) you may be presented with the following error:</p>
<p><code>Java Virtual Machine Version mismatch: Required version: 1.3</code></p>
<p>To overcome this try the following steps &#8230;<br />
<span id="more-115"></span></p>
<p>Rename the jmxri.jar file to jmxri.bak in the <code><installdir>\LoadRunner\classes directory</code></p>
<p>Copy the weblogic.jar from your application server directory typically from<br />
<code><installdir>\bea\wlserver_<version>\server\lib</code><br />
to the<br />
<code><installdir>\LoadRunner\classes</code> directory</p>
<p>Edit the <code><installdir>\LoadRunner\dat\monitors\WebLogicMon.ini </code><br />
as per the following:</p>
<p><code><br />
[WebLogicMon]<br />
JVM=javaw.exe<br />
JavaVersion=1.5<br />
;JavaVendor=Sun Microsystems Inc.</p>
<p>JVM_CLASSES1=jmxri.jar<br />
JVM_CLASSES2=weblogicmon.jar</p>
<p>JVM_ARG1=-Dweblogic.ThreadPoolSize=20<br />
JVM_ARG2=-Dweblogic.ThreadPoolPercentSocketReaders=90</p>
<p>DetectVersions=0</p>
<p>Weblogic=weblogic.jar<br />
Port=7001</p>
<p>MetricListURL=/?type=0&#038;id=10&#038;host=%h<br />
MetricDataURL=/?type=0&#038;id=11&#038;host=%h<br />
MetricRequestURL=/?type=0&#038;id=12&#038;host=%h<br />
ShutdownHostURL=/?type=0&#038;id=13&#038;host=%h<br />
InitHostURL=/?type=0&#038;id=14&#038;host=%h</p>
<p>MonitorType=WebLogic<br />
DlgTitle=BEA WebLogic Monitor<br />
ExtensionDll=WebLogicMonExt.dll</p>
<p>ActivateCounters=1<br />
QueryLoginInfo=1<br />
RefreshMetricList=1<br />
DefaultPort=1112<br />
SourceHost=localhost<br />
PingHostURL=/?type=0&#038;id=201<br />
</code></p>
<p>Making sure that the JavaVersion and Port match your client/server settings!</p>
<p>Restart the Controller and you should now be able to add the appropriate counters using the WebLogic (JMX) monitor.</p>
]]></content:encoded>
			<wfw:commentRss>http://altentee.com/2008/monitoring-weblogic-using-jmx-in-loadrunner/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
