Hi Saurabh, Thanks for your reply. I have installed swiRstatdSampler and swiRstatdGraph based on the instructions given in the website. But the problem is i can see rstatd-sampler option in the Add->Sampler drop down list and *i cannot see rstatd-graph option in the Add->Listener drop down list.* And to worsen the situation there is no exception thrown in the logs when i start Jmeter.
To make it more clear from my side, let me jot down the installation steps i have performed to install both the sampler and visualiser *swiRstatdSampler:* 1) put the jar file "oncrpc.jar" into directory "$JMETER_HOME/lib/ext" 2) put the jar file "swiRstatdSampler.jar" into directory "$JMETER_HOME/lib/ext" 3) I unzipped the ApacheJmeter_core.jar using *jar -xf ApacheJMeter_core.jar * and edited the file *org/apache/jmeter/resources/messages.properties* by adding the following text. rstatd_sampler_title=rstatd: sampler rstatd_sampler_host=server rstatd_sampler_timeout=timeout rstatd_sampler_result_format=result format rstatd_sampler_test_connection=test connection rstatd_sampler_success_title=success rstatd_sampler_success_message=got data from rstatd server rstatd_sampler_error_title=error rstatd_sampler_output_title=rstatd: results writer rstatd_sampler_output_file=filename rstatd_sampler_output_browse=browse rstatd_sampler_output_format=output format rstatd_sampler_output_limit=data file limit rstatd_visualizer_simple_text_title=rstatd: text visualizer rstatd_visualizer_simple_text_load=load data rstatd_visualizer_table_title=rstatd: table visualizer rstatd_visualizer_table_load=load rstatd_visualizer_table_warnings=warnings rstatd_visualizer_table_scrolling=scrolling Then i zipped the jar using following command *jar cvf ApacheJMeter_core.jar META-INF org* (which i copied in the JMETER_HOME/lib/ext/). *swiRstatdGraph:* 1) put the jar file "swiRstatdGraph.jar" into directory "$JMETER_HOME/lib/ext" 2) I unzipped the ApacheJmeter_core.jar using *jar xf ApacheJMeter_core.jar*and edited the file *org/apache/jmeter/resources/messages.properties* by adding the following text. rstatd_graph_title=rstatd: graph rstatd_graph_limit=limit rstatd_graph_limit_set=set limit rstatd_graph_config_colors=colors rstatd_graph_load=load rstatd_graph_dialog_colors_title=configure colors for CPU states rstatd_graph_dialog_colors_ok=ok rstatd_graph_dialog_colors_cancel=cancel rstatd_graph_dialog_colors_label_system=system rstatd_graph_dialog_colors_title_system=select color for cpu system rstatd_graph_dialog_colors_label_user=user rstatd_graph_dialog_colors_title_user=select color for cpu user rstatd_graph_dialog_colors_label_idle=idle rstatd_graph_dialog_colors_title_idle=select color for cpu idle rstatd_graph_dialog_colors_label_nice=nice rstatd_graph_dialog_colors_title_nice=select color for cpu nice Then i zipped the jar using following command *jar cvf ApacheJMeter_core.jar META-INF org* (which i copied in the JMETER_HOME/lib/ext/). Please let me know where i'm going wrong. Thanks for your time. Regards, Prasanna On Tue, May 4, 2010 at 9:15 AM, Saurabh Gupta <[email protected]>wrote: > Hi Prasanna, > > First you need to verify whether rstatd service running on linux or not ? > If > not running, you need to run the service. > > > *Installation of rstatd Daemon Sampler in JMeter* > ========================================================= > > *http://swirstatdsample.sourceforge.net/index.html* > > > *1.* Go to directory *JMETER_HOME/lib/ext* and make sure below files are > present in it. > > > - ApacheJMeter_core.jar *(Take backup of this file)* > - messages.properties > - swiRstatdSampler.jar > > *2.* Copy required libraries into "lib"-directory: > > > - jdom-1.0.jar > - jorphan.jar > - logkit-1.2.jar > - oncrpc.jar > > > * > Steps to create script > ================*= > > 1. Start jmeter > 2. Create new "Test Plan", > 3. Add "Thread Group" and set "Loop Count" to 50, > 4. Add "rstatd: sampler" and set address of "server" and "output format" > to "object", > 5. Add "Constant Timer" and set "Thread delay" to 1000 milliseconds (1 > second), > 6. Add "rstatd: text visualizer". > 7. Don't forget to save the test plan :-) > 8. Start "Test Plan" and watch results in* "rstatd: text visualizer*" > > Hope it may resolve your problem. > > Good Day > > On Sun, May 2, 2010 at 12:44 PM, prasanna bhat <[email protected] > >wrote: > > > Hi guys, > > > > Can someone please provide me to right pointers. your time and help is > > greatly appreciated. > > > > Thanks, > > Prasanna > > > > On Fri, Apr 30, 2010 at 7:21 PM, prasanna bhat <[email protected] > > >wrote: > > > > > Hi, > > > > > > I'm now getting a problem installing swiRstatdGraph in JMeter. I have > > > followed all the instructions given in the web link ( > > > http://swirstatdgraph.sourceforge.net/installation.html). However > there > > is > > > no exception found in the logs. And also i didn't get any problem > > installing > > > the swiRstatdSampler, its also showing up in the samplers list. > > > > > > If anyone has used this sampler and have it running. please help me. > > > > > > Thanks, > > > Prasanna > > > > > > > > > > > > > > > On Fri, Apr 30, 2010 at 6:09 PM, prasanna bhat < > [email protected] > > >wrote: > > > > > >> Hi guys, > > >> > > >> I had missed copying a jar. Sorry for the post. > > >> > > >> Thanks, > > >> Prasanna > > >> > > >> > > >> On Fri, Apr 30, 2010 at 5:43 PM, prasanna bhat < > > [email protected]>wrote: > > >> > > >>> Hi, > > >>> > > >>> I'm trying to install the rstatd sampler to JMeter. I followed the > > >>> instructions given in the website ( > > >>> http://swirstatdsample.sourceforge.net/installation.html). The > > >>> application throws the following exceptions: > > >>> > > >>> 2010/04/30 16:48:41 WARN - jmeter.util.JMeterUtils: ERROR! Resource > > >>> string not found: [rstatd_title] java.util.MissingResourceException: > > Can't > > >>> find resource for bundle java.util.PropertyResourceBundle, key > > rstatd_title > > >>> at java.util.ResourceBundle.getObject(ResourceBundle.java:374) > > >>> at java.util.ResourceBundle.getString(ResourceBundle.java:334) > > >>> at > > >>> > > > org.apache.jmeter.util.JMeterUtils.getResStringDefault(JMeterUtils.java:425) > > >>> at > > >>> org.apache.jmeter.util.JMeterUtils.getResString(JMeterUtils.java:388) > > >>> at > > >>> > > > org.apache.jmeter.gui.AbstractJMeterGuiComponent.getStaticLabel(AbstractJMeterGuiComponent.java:329) > > >>> at > > >>> > > > org.apache.jmeter.gui.AbstractJMeterGuiComponent.createTitleLabel(AbstractJMeterGuiComponent.java:167) > > >>> at > > >>> > > > org.apache.jmeter.gui.AbstractJMeterGuiComponent.makeTitlePanel(AbstractJMeterGuiComponent.java:265) > > >>> at > > >>> > > > de.simpleworks.jmeter.protocol.rstatd.gui.RstatdSamplerGui.createGUI(Unknown > > >>> Source) > > >>> at > > >>> > > de.simpleworks.jmeter.protocol.rstatd.gui.RstatdSamplerGui.<init>(Unknown > > >>> Source) > > >>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > >>> Method) > > >>> at > > >>> > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > >>> at > > >>> > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > >>> at > java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > >>> at java.lang.Class.newInstance0(Class.java:355) > > >>> at java.lang.Class.newInstance(Class.java:308) > > >>> at > > >>> > > > org.apache.jmeter.gui.util.MenuFactory.initializeMenus(MenuFactory.java:418) > > >>> at > > >>> org.apache.jmeter.gui.util.MenuFactory.<clinit>(MenuFactory.java:147) > > >>> at > > >>> > > > org.apache.jmeter.control.gui.WorkBenchGui.createPopupMenu(WorkBenchGui.java:84) > > >>> at > > >>> > > > org.apache.jmeter.gui.tree.JMeterTreeNode.createPopupMenu(JMeterTreeNode.java:111) > > >>> at > > >>> > org.apache.jmeter.gui.action.EditCommand.doAction(EditCommand.java:44) > > >>> at > > >>> > > > org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:80) > > >>> at > > >>> > > > org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42) > > >>> at > > >>> org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:59) > > >>> at > > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) > > >>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) > > >>> at > > >>> > > > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) > > >>> at > > >>> > > > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) > > >>> at > > >>> > > > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) > > >>> at > > >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > > >>> at > > >>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > > >>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > > >>> > > >>> 2010/04/30 16:48:41 WARN - jmeter.gui.util.MenuFactory: Missing jar? > > >>> Could not create > > de.simpleworks.jmeter.protocol.rstatd.gui.RstatdSamplerGui. > > >>> java.lang.NoClassDefFoundError: org/acplt/oncrpc/OncRpcException > > >>> 2010/04/30 16:48:41 INFO - jmeter.util.BSFTestElement: Registering > > >>> JMeter version of JavaScript engine as work-round for BSF-22 > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Cannot find .className property for htmlParser, using default > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Parser for text/html is > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Parser for application/xhtml+xml is > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Parser for application/xml is > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Parser for text/xml is > > >>> 2010/04/30 16:48:41 INFO - > > jmeter.protocol.http.sampler.HTTPSamplerBase: > > >>> Parser for text/vnd.wap.wml is > > >>> org.apache.jmeter.protocol.http.parser.RegexpHTMLParser > > >>> 2010/04/30 16:48:42 INFO - jmeter.gui.util.MenuFactory: Skipping > > >>> org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui > > >>> 2010/04/30 16:48:42 INFO - jmeter.gui.util.MenuFactory: Skipping > > >>> org.apache.jmeter.protocol.http.modifier.gui.UserParameterModifierGui > > >>> 2010/04/30 16:48:42 INFO - jmeter.protocol.http.sampler.HTTPSampler: > > >>> Maximum connection retries = 10 > > >>> 2010/04/30 16:48:42 INFO - jmeter.protocol.http.sampler.HTTPSampler: > > >>> Connection and read timeouts are available on this JVM > > >>> 2010/04/30 16:48:42 WARN - jmeter.gui.util.MenuFactory: Missing jar? > > >>> Could not create org.apache.jmeter.visualizers.MailerVisualizer. > > >>> java.lang.NoClassDefFoundError: javax/mail/MessagingException > > >>> 2010/04/30 16:48:42 INFO - jmeter.samplers.SampleResult: Note: > Sample > > >>> TimeStamps are START times > > >>> 2010/04/30 16:48:42 INFO - jmeter.samplers.SampleResult: > > >>> sampleresult.default.encoding is set to ISO-8859-1 > > >>> > > >>> Can you please help me to point out where i'm going wrong?? > > >>> > > >>> Thanks, > > >>> Prasanna > > >>> > > >>> > > >> > > > > > > > > > -- > Thanks, > Saurabh >

