Re: Connections don't closing?
On 04/11/05, Fernando Ribeiro <[EMAIL PROTECTED]> wrote: > Palavras de sebb [Fri, Nov 04, 2005 at 02:45:58PM +]: > > On 04/11/05, Fernando Ribeiro <[EMAIL PROTECTED]> wrote: > > > > > > > > > jmeter is very slow, returning time out erros. > > > I don't found the error for this. > > > > Timeout is not due to JMeter. > > > > What is the exact error message? What does jmeter.log say? > > the error > > java.net.ConnectException: Connection timed out at > java.net.PlainSocketImpl.socketConnect(Native Method) at > java.net.PlainSocketImpl.doConnect(Unknown Source) at > java.net.PlainSocketImpl.connectToAddress(Unknown Source) at > java.net.PlainSocketImpl.connect(Unknown Source) at > java.net.Socket.connect(Unknown Source) at > java.net.Socket.connect(Unknown Source) at > sun.net.NetworkClient.doConnect(Unknown Source) at > sun.net.www.http.HttpClient.openServer(Unknown Source) at > sun.net.www.http.HttpClient.openServer(Unknown Source) at > sun.net.www.http.HttpClient. (Unknown Source) at > sun.net.www.http.HttpClient.New(Unknown Source) at > sun.net.www.http.HttpClient.New(Unknown Source) at > sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown > Source) at > sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) > at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) > at > org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:412) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:514) > at > org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:503) > at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:247) at > java.lang.Thread.run(Unknown Source) > The connection timed out, i.e. the remote system did not accept the connection. > > my jmeter.log > > 2005/11/04 16:28:37 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-1 started > 2005/11/04 16:28:37 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-2 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-3 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-4 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-5 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-6 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-7 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-8 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-9 started > 2005/11/04 16:28:38 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-10 started > 2005/11/04 16:33:36 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-3 is done > 2005/11/04 16:33:36 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 2 > 2005/11/04 16:33:47 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-5 is done > 2005/11/04 16:33:47 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 4 > 2005/11/04 16:34:13 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-7 is done > 2005/11/04 16:34:13 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 6 > 2005/11/04 16:34:34 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-10 is done > 2005/11/04 16:34:34 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 9 > 2005/11/04 16:34:50 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-1 is done > 2005/11/04 16:34:50 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 0 > 2005/11/04 16:36:09 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-2 is done > 2005/11/04 16:36:09 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 1 > 2005/11/04 16:36:09 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-9 is done > 2005/11/04 16:36:09 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 8 > 2005/11/04 16:37:40 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-8 is done > 2005/11/04 16:37:40 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 7 > 2005/11/04 16:37:55 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-4 is done > 2005/11/04 16:37:55 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 3 > 2005/11/04 16:38:08 INFO - jmeter.threads.JMeterThread: Thread Thread Group > 1-6 is done > 2005/11/04 16:38:08 INFO - jmeter.engine.StandardJMeterEngine: Ending thread > 5 > 2005/11/04 16:38:08 INFO - jmeter.engine.StandardJMeterEngine: Stopping test > 2005/11/04 16:38:08 INFO - jmeter.engine.StandardJMeterEngine: Notifying > test listeners of end of test > 2005/11/04 16:38:08 INFO - jmeter.gui.util.JMeterMenuBar: > setRunning(false,local) > 2005/11/04 16:38:08 INFO - jmeter.engine.StandardJMeterEngine: Test has ended > > 10 min to 10 threads? 0.o > > > > > Version of JMeter? JVM? OS? What
Re: new HTTPSampleResult() returns null. My Mistake or JMeter's?
On 04/11/05, Alex Eagar <[EMAIL PROTECTED]> wrote: > JMeter v. 2.1.1 with bsh-2.0b4.jar and j2sdk1.4.2_10 > on Windows XP SP2. > > --- The Problem --- > Within a BeanShell Sampler, I have the following: > import > org.apache.jmeter.protocol.http.sampler.HTTPSampleResult; > > HTTPSampleResult res = new HTTPSampleResult(); > > print("res == " + res); > > When run, the terminal prints the following: > res == null > > --- Info Found --- > HTTPSampleResult Constructor Definition: > public HTTPSampleResult() {super();} > > HTTPSamplerResult extends SampleResult > SampleResult Constructor Definition: > public SampleResult() {time = 0;} > > --- Another Problem --- > If the above is my mistake, then the following is not > a problem, but if it is JMeter's mistake then I think > it would be another problem. Please correct my logic > if I'm not seeing how this all works. > > HTTPSampler, method setupConnection(URL u, String > method, HTTPSampleResult res) > The argument res is supposed to get set up but if res > is null, it never happens. > Line 154, the beginning of res setup: > if (res != null) { > > --- Comment/Background --- > I am trying to learn how to use JMeter elements > programmatically from a BeanShell Sampler for more > flexible control. Besides the general increased > flexibility, right now I am trying to make a web > crawler. If you can point me in the direction of > documentation on how to control elements from a > BeanShell Sampler, please tell me; I will appreciate > it very much. BeanShell Sampler was not designed for such usage. Sorry, but I've no idea whether or not this can be made to work. Try checking jmeter.log in case there are any error messages to show why res==null. > Thanks for your time (and for JMeter), > Alex Eagar > > > > > __ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > - > 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: new HTTPSampleResult() returns null. My Mistake or JMeter's?
On 04/11/05, Alex Eagar <[EMAIL PROTECTED]> wrote: > > HTTPSamplerResult extends SampleResult > > SampleResult Constructor Definition: > > public SampleResult() {time = 0;} > > Does it need to call super()? If not, why not? SampleResult does not need to call super() because it does not extend any class (apart from Object) > Alex Eagar > > > > __ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > > - > 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]
JMeter with terminal emulator
Hi All, I'm new to JMeter and would appreciate if someone can give me some ideas on using JMeter with terminal emulator (mainframe green screen). The goal is to write performance tests. regards Sanjay K. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: new HTTPSampleResult() returns null. My Mistake or JMeter's?
--- sebb wrote: > BeanShell Sampler was not designed for such usage. > > Sorry, but I've no idea whether or not this can be > made to work. > > Try checking jmeter.log in case there are any error > messages to show > why res==null. Every other object that I create works just fine. I created some simple classes with inheritance that have constructors that work the same as the source code for HTTPSampleResult and SampleResult and I didn't have any problem. So what is a BeanShell Sampler designed for then? Once I discovered that I could use BeanShells, I got pretty excited. There are some things that I just can't figure out how to with the JMeter GUI. The crawler I'm trying to create is pretty simple. It's just a recursive method that takes two parameters, a URL and an int for depth. It then loads and parses the particular page, and for each link in the page, it calls itself with a depth minus one. If depth equals zero then it doesn't call itself. I could then much more easily check all the links on my page. If you know of an easier way to do this then please tell me. If not, I'm sure I'll figure it out with enough effort. I downloaded Ant today, but I haven't had the time to learn how to use it yet. Is there a way to rebundle one particular jar file without recompiling everything? I want to try to find out at what point things are failing but I can't do that yet because I'm not sure how to edit and compile HTTPSampleResult.java and SampleResult.java. Like I say, I'll figure it eventually, but I'd prefer an easier way than learning recompile everything using Ant (not that that won't be useful in the future). Alex Eagar __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: new HTTPSampleResult() returns null. My Mistake or JMeter's?
Hi Alex, perhaps solves the LinkParser your problem. http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTML_Li nk_Parser With this Pre Processor Element you can parse a retrieved HTML response and follow all links with in the response. I hope this hint will help to sovle your problem. Carsten > -Ursprüngliche Nachricht- > Von: Alex Eagar [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 8. November 2005 01:57 > An: JMeter Users List > Betreff: Re: new HTTPSampleResult() returns null. My Mistake or JMeter's? > > --- sebb wrote: > > BeanShell Sampler was not designed for such usage. > > > > Sorry, but I've no idea whether or not this can be > > made to work. > > > > Try checking jmeter.log in case there are any error > > messages to show > > why res==null. > > Every other object that I create works just fine. I > created some simple classes with inheritance that have > constructors that work the same as the source code for > HTTPSampleResult and SampleResult and I didn't have > any problem. > > So what is a BeanShell Sampler designed for then? Once > I discovered that I could use BeanShells, I got pretty > excited. There are some things that I just can't > figure out how to with the JMeter GUI. The crawler I'm > trying to create is pretty simple. It's just a > recursive method that takes two parameters, a URL and > an int for depth. It then loads and parses the > particular page, and for each link in the page, it > calls itself with a depth minus one. If depth equals > zero then it doesn't call itself. I could then much > more easily check all the links on my page. If you > know of an easier way to do this then please tell me. > If not, I'm sure I'll figure it out with enough > effort. > > I downloaded Ant today, but I haven't had the time to > learn how to use it yet. Is there a way to rebundle > one particular jar file without recompiling > everything? I want to try to find out at what point > things are failing but I can't do that yet because I'm > not sure how to edit and compile HTTPSampleResult.java > and SampleResult.java. Like I say, I'll figure it > eventually, but I'd prefer an easier way than learning > recompile everything using Ant (not that that won't be > useful in the future). > > Alex Eagar > > > > > __ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > - > 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]