RE: Hi All, What to do in the beginning
Thanks Mike & Stuart for your replies. So its pretty clear that for the purpose of finding the bottle neck in an application we need to load the app by Jmeter and use the Profiling tool for finding the bottleneck. So I will start loading a Java app with Jmeter. Yes, I can write Java classes. So, let me know where and what do I have to do to understand how to write a sampler and samplercontroller. How does Jmeter help me in doing so? Can I subclass these from Jmeter and start writing my code? Please give me a brief outline and I will start with this. in fact Mike has already done this JProbe+Jmeter thing. So I will need to follow the steps. I couldnt get the JProbe licence. I got the OptimizeIt licence though. So I will be usimg Jmeter+OptimizeIt. Thanks again and keep writing, Soumya(Som) -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 9:51 AM To: [EMAIL PROTECTED] Subject: Re: Hi All, What to do in the beginning On Friday 15 June 2001 13:42, Stuart Skinner wrote: > Hi souyma > > As far as i'm aware JMeter won't do this sort of thing for you. JMeter is > capable of showing how your application will scale under load but it will > give you little indication as to where bottelnecks that prevent scaling > occur. You should look into using a profiling tool such as OptimizeIt or > JProbe (possibly in conjunction with JMeter to load the system whilst > testing). This is correct. I have used JMeter to load a system while running JProbe to find where bottlenecks were. JMeter is perfect for that purpose. However, JMeter currently only supports http, JDBC, and FTP (and somewhere I have SMTP classes lying around that I haven't merged yet). However, if you can write java, it's not so hard to add your own classes to do new stuff. You would have to write, at a minimum, a sampler (which does the actual calling of your java objects), a controller (which would hold configuration information and create Entry's to be "executed" by your sampler), and a GUI for your controller. Most likely, you'd also have to create some ConfigElement classes for greater flexibility. It's not as hard as it sounds once you understand what a SamplerController does, and what a Sampler does. Is this something you want to tackle? If so, I'm willing to help. -Mike > > Stu > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 2:32 PM > To: [EMAIL PROTECTED] > Subject: RE: Hi All, What to do in the beginning > > > How you all doing? I have pinpointed my requirements for now with Jmeter. I > gotto test Java applications(lets for now say its not an web app). For > example suppose a Java app is having n number of objects. How, by using > Jmeter I can understand which object is creating the bottleneck in the > entire app? > > If somebody is giving me a testscript, pls. briefly explain how to connect > that with Jmeter and run. As I told earlier I am not very good in J2EE > technologies.I dont know XML. I will learn the relevant parts for testing > Jmeter. > > Thanks and looking forward to hear. > > Soumya Bhattacharyya > > > > > -----Original Message----- > From: Mike Stover [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 12, 2001 2:51 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Hi All, What to do in the beginning > > On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > > Hi All, > > > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > > requirement is to test JMS framework as is the web services framework. I > > am > > > basically a TOOL developer who knows Java but is not very thourough in > > J2EE > > > stuff(just learning). > > > > I have gone thru the info that was available on the net about Jmeter. Its > > theoritically fine, but I think I need more info to start taking the > > first steps. For eg. I would like to do the following first : > > > > 1. Test a database > > Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into > the problem as I have no use for such database testing, but I would be glad > to point you in the right direction. Here, for example is a testscript > that > demostrates how you would setup jmeter to test a database (you'll have to > sub > in appropriate values - but load it first and change the values in JMeter): > > > > > > > > type="org.apache.jmeter.protocol.jdbc.control.JdbcTestSample" > name="Database Testing"> > > > root > 192.168.1.1 > mysql > org.gjt.mm.mysql.Driver > root > > > > 1000 > 10 &g
Re: Hi All, What to do in the beginning
On Friday 15 June 2001 13:42, Stuart Skinner wrote: > Hi souyma > > As far as i'm aware JMeter won't do this sort of thing for you. JMeter is > capable of showing how your application will scale under load but it will > give you little indication as to where bottelnecks that prevent scaling > occur. You should look into using a profiling tool such as OptimizeIt or > JProbe (possibly in conjunction with JMeter to load the system whilst > testing). This is correct. I have used JMeter to load a system while running JProbe to find where bottlenecks were. JMeter is perfect for that purpose. However, JMeter currently only supports http, JDBC, and FTP (and somewhere I have SMTP classes lying around that I haven't merged yet). However, if you can write java, it's not so hard to add your own classes to do new stuff. You would have to write, at a minimum, a sampler (which does the actual calling of your java objects), a controller (which would hold configuration information and create Entry's to be "executed" by your sampler), and a GUI for your controller. Most likely, you'd also have to create some ConfigElement classes for greater flexibility. It's not as hard as it sounds once you understand what a SamplerController does, and what a Sampler does. Is this something you want to tackle? If so, I'm willing to help. -Mike > > Stu > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 15, 2001 2:32 PM > To: [EMAIL PROTECTED] > Subject: RE: Hi All, What to do in the beginning > > > How you all doing? I have pinpointed my requirements for now with Jmeter. I > gotto test Java applications(lets for now say its not an web app). For > example suppose a Java app is having n number of objects. How, by using > Jmeter I can understand which object is creating the bottleneck in the > entire app? > > If somebody is giving me a testscript, pls. briefly explain how to connect > that with Jmeter and run. As I told earlier I am not very good in J2EE > technologies.I dont know XML. I will learn the relevant parts for testing > Jmeter. > > Thanks and looking forward to hear. > > Soumya Bhattacharyya > > > > > -----Original Message----- > From: Mike Stover [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 12, 2001 2:51 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Hi All, What to do in the beginning > > On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > > Hi All, > > > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > > requirement is to test JMS framework as is the web services framework. I > > am > > > basically a TOOL developer who knows Java but is not very thourough in > > J2EE > > > stuff(just learning). > > > > I have gone thru the info that was available on the net about Jmeter. Its > > theoritically fine, but I think I need more info to start taking the > > first steps. For eg. I would like to do the following first : > > > > 1. Test a database > > Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into > the problem as I have no use for such database testing, but I would be glad > to point you in the right direction. Here, for example is a testscript > that > demostrates how you would setup jmeter to test a database (you'll have to > sub > in appropriate values - but load it first and change the values in JMeter): > > > > > > > > type="org.apache.jmeter.protocol.jdbc.control.JdbcTestSample" > name="Database Testing"> > > > root > 192.168.1.1 > mysql > org.gjt.mm.mysql.Driver > root > > > > 1000 > 10 > > > > Sql Query > select * from tablename > > > Sql Query > select column1,column2 from table2 where > column1='foo' > > > > > > > > > > > > > > > name="Graph > > Results"/> > > > > > > > > > When this gets run, I think an error occurs (people out there have reported > errors, I don't know if they've fixed them or not). > > > 2. Test a java object > > Not supported, but you could fairly easily write your own controllers to do > it. The tricky part comes in when you decide you want to write as few > custom > controllers as possible to test as many different and varied objects as > possible. > > > 3. Test a Servlet > > As in HTTP testing? JMeter does this pretty well. Again, I could send you > a > script to get you started. Let me know if that's necessary. > &
RE: Hi All, What to do in the beginning
Hi souyma As far as i'm aware JMeter won't do this sort of thing for you. JMeter is capable of showing how your application will scale under load but it will give you little indication as to where bottelnecks that prevent scaling occur. You should look into using a profiling tool such as OptimizeIt or JProbe (possibly in conjunction with JMeter to load the system whilst testing). Stu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Hi All, What to do in the beginning How you all doing? I have pinpointed my requirements for now with Jmeter. I gotto test Java applications(lets for now say its not an web app). For example suppose a Java app is having n number of objects. How, by using Jmeter I can understand which object is creating the bottleneck in the entire app? If somebody is giving me a testscript, pls. briefly explain how to connect that with Jmeter and run. As I told earlier I am not very good in J2EE technologies.I dont know XML. I will learn the relevant parts for testing Jmeter. Thanks and looking forward to hear. Soumya Bhattacharyya -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:51 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Hi All, What to do in the beginning On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > Hi All, > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > requirement is to test JMS framework as is the web services framework. I am > basically a TOOL developer who knows Java but is not very thourough in J2EE > stuff(just learning). > > I have gone thru the info that was available on the net about Jmeter. Its > theoritically fine, but I think I need more info to start taking the first > steps. For eg. I would like to do the following first : > > 1. Test a database Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into the problem as I have no use for such database testing, but I would be glad to point you in the right direction. Here, for example is a testscript that demostrates how you would setup jmeter to test a database (you'll have to sub in appropriate values - but load it first and change the values in JMeter): root 192.168.1.1 mysql org.gjt.mm.mysql.Driver root 1000 10 Sql Query select * from tablename Sql Query select column1,column2 from table2 where column1='foo' When this gets run, I think an error occurs (people out there have reported errors, I don't know if they've fixed them or not). > 2. Test a java object Not supported, but you could fairly easily write your own controllers to do it. The tricky part comes in when you decide you want to write as few custom controllers as possible to test as many different and varied objects as possible. > 3. Test a Servlet As in HTTP testing? JMeter does this pretty well. Again, I could send you a script to get you started. Let me know if that's necessary. > > I would like to have an initial idea how to test them stepwise. So, if > someone has some time and let me know how to go about it, will feel great. Well, keep asking questions, and I'll see what I can do. > > Thanks, > > Som > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Stover [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi All, What to do in the beginning
How you all doing? I have pinpointed my requirements for now with Jmeter. I gotto test Java applications(lets for now say its not an web app). For example suppose a Java app is having n number of objects. How, by using Jmeter I can understand which object is creating the bottleneck in the entire app? If somebody is giving me a testscript, pls. briefly explain how to connect that with Jmeter and run. As I told earlier I am not very good in J2EE technologies.I dont know XML. I will learn the relevant parts for testing Jmeter. Thanks and looking forward to hear. Soumya Bhattacharyya -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:51 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Hi All, What to do in the beginning On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > Hi All, > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > requirement is to test JMS framework as is the web services framework. I am > basically a TOOL developer who knows Java but is not very thourough in J2EE > stuff(just learning). > > I have gone thru the info that was available on the net about Jmeter. Its > theoritically fine, but I think I need more info to start taking the first > steps. For eg. I would like to do the following first : > > 1. Test a database Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into the problem as I have no use for such database testing, but I would be glad to point you in the right direction. Here, for example is a testscript that demostrates how you would setup jmeter to test a database (you'll have to sub in appropriate values - but load it first and change the values in JMeter): root 192.168.1.1 mysql org.gjt.mm.mysql.Driver root 1000 10 Sql Query select * from tablename Sql Query select column1,column2 from table2 where column1='foo' When this gets run, I think an error occurs (people out there have reported errors, I don't know if they've fixed them or not). > 2. Test a java object Not supported, but you could fairly easily write your own controllers to do it. The tricky part comes in when you decide you want to write as few custom controllers as possible to test as many different and varied objects as possible. > 3. Test a Servlet As in HTTP testing? JMeter does this pretty well. Again, I could send you a script to get you started. Let me know if that's necessary. > > I would like to have an initial idea how to test them stepwise. So, if > someone has some time and let me know how to go about it, will feel great. Well, keep asking questions, and I'll see what I can do. > > Thanks, > > Som > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Stover [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi All, What to do in the beginning
Hi, At 11:48 AM -0400 6/13/01, [EMAIL PROTECTED] wrote: >Hey Mike, > >Thanks for responding. Send me if you have something for HTTP testing. Right >now what I need is something that I can do with Jmeter so that I see it >alive, in other words I wana see Jmeter doing something. > >After downloading, I have run the Jmeter batch from >Jmeter\jakarta-jmeter\bin. It opens an Applet which shows Root with Test >Plan and Work bench as explained in the Jmeter site. But what now? What do I >have to do now to do HTTP testing. Can I do simple stuff by adding >controllers to the threadgroup and hitting Start in Run yep. >or do I have to >write code or what? That's the thing bothering me. In other words I need to >see Apache Jmeter doing something, ie running some simple test cases and >showing me some test results. Thats where I am stuck. This is the minimal set of steps, I think... (Linux, if you care) 1. cd to jakarta-jmeter\bin 2. ./jmeter & {execute it from the current directory} 3. right-click test plan add ThreadGroup 4. toggle open the test plan 5. right-click ThreadGroup add Timer -> constant timer 6. toggle ThreadGroup; select constant timer 7. Set the time delay between: the completion of one series, and the start of the next series. 8. right-click ThreadGroup add controler -> Web testing 9. Select (*) HTTP; www.ibm.com and "/" for path (no quotes) 10. right-click ThreadGroup add Listner -> Graph Results 11. Select Graph results. 12. Menu -> Run -> Start Should start outputting. 13. Menu -> Run -> Stop All the rest are variations on the theme :-) Especially you can add more URL hits ti the existing "web testing" object. Bruce -- Bruce Barrett [EMAIL PROTECTED] SW QA Manager - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi All, What to do in the beginning
Hey Mike, Thanks for responding. Send me if you have something for HTTP testing. Right now what I need is something that I can do with Jmeter so that I see it alive, in other words I wana see Jmeter doing something. After downloading, I have run the Jmeter batch from Jmeter\jakarta-jmeter\bin. It opens an Applet which shows Root with Test Plan and Work bench as explained in the Jmeter site. But what now? What do I have to do now to do HTTP testing. Can I do simple stuff by adding controllers to the threadgroup and hitting Start in Run or do I have to write code or what? That's the thing bothering me. In other words I need to see Apache Jmeter doing something, ie running some simple test cases and showing me some test results. Thats where I am stuck. Thanks again, Soumya -Original Message- From: Mike Stover [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 2:51 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Hi All, What to do in the beginning On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > Hi All, > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > requirement is to test JMS framework as is the web services framework. I am > basically a TOOL developer who knows Java but is not very thourough in J2EE > stuff(just learning). > > I have gone thru the info that was available on the net about Jmeter. Its > theoritically fine, but I think I need more info to start taking the first > steps. For eg. I would like to do the following first : > > 1. Test a database Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into the problem as I have no use for such database testing, but I would be glad to point you in the right direction. Here, for example is a testscript that demostrates how you would setup jmeter to test a database (you'll have to sub in appropriate values - but load it first and change the values in JMeter): root 192.168.1.1 mysql org.gjt.mm.mysql.Driver root 1000 10 Sql Query select * from tablename Sql Query select column1,column2 from table2 where column1='foo' When this gets run, I think an error occurs (people out there have reported errors, I don't know if they've fixed them or not). > 2. Test a java object Not supported, but you could fairly easily write your own controllers to do it. The tricky part comes in when you decide you want to write as few custom controllers as possible to test as many different and varied objects as possible. > 3. Test a Servlet As in HTTP testing? JMeter does this pretty well. Again, I could send you a script to get you started. Let me know if that's necessary. > > I would like to have an initial idea how to test them stepwise. So, if > someone has some time and let me know how to go about it, will feel great. Well, keep asking questions, and I'll see what I can do. > > Thanks, > > Som > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Stover [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi All, What to do in the beginning
On Tuesday 12 June 2001 14:33, [EMAIL PROTECTED] wrote: > Hi All, > > I have been assigned to learn and use Jmeter for my corporation. Ultimate > requirement is to test JMS framework as is the web services framework. I am > basically a TOOL developer who knows Java but is not very thourough in J2EE > stuff(just learning). > > I have gone thru the info that was available on the net about Jmeter. Its > theoritically fine, but I think I need more info to start taking the first > steps. For eg. I would like to do the following first : > > 1. Test a database Ok, JMeter supports JDBC, but it's currently broken. I haven't looked into the problem as I have no use for such database testing, but I would be glad to point you in the right direction. Here, for example is a testscript that demostrates how you would setup jmeter to test a database (you'll have to sub in appropriate values - but load it first and change the values in JMeter): root 192.168.1.1 mysql org.gjt.mm.mysql.Driver root 1000 10 Sql Query select * from tablename Sql Query select column1,column2 from table2 where column1='foo' When this gets run, I think an error occurs (people out there have reported errors, I don't know if they've fixed them or not). > 2. Test a java object Not supported, but you could fairly easily write your own controllers to do it. The tricky part comes in when you decide you want to write as few custom controllers as possible to test as many different and varied objects as possible. > 3. Test a Servlet As in HTTP testing? JMeter does this pretty well. Again, I could send you a script to get you started. Let me know if that's necessary. > > I would like to have an initial idea how to test them stepwise. So, if > someone has some time and let me know how to go about it, will feel great. Well, keep asking questions, and I'll see what I can do. > > Thanks, > > Som > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mike Stover [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]