Embedded resource is causing a StackOverflowError
Hi, I have a script that's opening multiple url's coming from a csv-file. The HTTP requests have the option retrieve all embedded resources ticked. One of the url's is causing problems: *Running the script from command line* The script ran last night and this morning when I tried to open the jtl-file I received a results file loader error. The JMeter-log from this morning contains the following message: /2011/08/30 07:02:27 WARN - jmeter.reporters.ResultCollector: Failed to load C:\Temp\JMeterLog\20110830_02 BISK048 Intro2 Verkenning.jtl using XStream. Error was: com.thoughtworks.xstream.converters.ConversionException: : markup not allowed inside attribute value - illegal (position: TEXT seen ..._catalogs/masterpage/_la... @513694:149) : : markup not allowed inside attribute value - illegal (position: TEXT seen ..._catalogs/masterpage/_la... @513694:149) Debugging information message : : markup not allowed inside attribute value - illegal (position: TEXT seen ..._catalogs/masterpage/_la... @513694:149) cause-exception : com.thoughtworks.xstream.io.StreamException cause-message : : markup not allowed inside attribute value - illegal (position: TEXT seen ..._catalogs/masterpage/_la... @513694:149) class : org.apache.jmeter.save.TestResultWrapper required-type : org.apache.jmeter.protocol.http.sampler.HTTPSampleResult line number : 513694 --- / The JMeter-log from last night contains the following message: /2011/08/30 03:11:24 ERROR - jmeter.reporters.ResultCollector: Error trying to record a sample com.thoughtworks.xstream.core.TreeMarshaller$CircularReferenceException: at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:83) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at org.apache.jmeter.save.converters.SampleResultConverter.saveSubResults(SampleResultConverter.java:206) at org.apache.jmeter.protocol.http.util.HTTPResultConverter.marshal(HTTPResultConverter.java:71) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38) at com.thoughtworks.xstream.XStream.marshal(XStream.java:837) at org.apache.jmeter.save.SaveService.saveSampleResult(SaveService.java:340) at org.apache.jmeter.reporters.ResultCollector.sampleOccurred(ResultCollector.java:479) at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:87) at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:694) at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:362) at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243) at java.lang.Thread.run(Unknown Source)/ Then I checked the jtl-file and saw that the next httpSample is starting before the previous has ended. Below is that part is the jtl-file: /lt;httpSample t=quot;36quot; lt=quot;36quot; ts=quot;131480886quot; s=quot;truequot; lb=quot;http://urlFiltered/_catalogs/masterpage/_lalt;httpSample t=quot;1836quot; lt=quot;1239quot; ts=quot;131480686quot; s=quot;truequot; lb=quot;/sites/Gerechtshof-Arnhem/Nieuws/Pages/Koffie!.aspxquot; rc=quot;200quot; rm=quot;OKquot; tn=quot;Open pagina vanuit CSV-bestand 1-9quot; dt=quot;textquot; by=quot;29863quot; ng=quot;10quot; na=quot;10quot;gt; assertionResult/ *So what is causing this problem?* I then checked the page that is causing the problem and it contains a embedded resource with the brilliant address /src=file:///P:/Bureaublad/Energiemarktbrenda_1803.jpg/. So besides kicking the editor that created the page I was also wondering if JMeter shouldn't return a Circular Reference error for this embedded resource. *Version info* JMeter version 2.4 r961953 Java version 1.6.0_26 OS Windows XP -- View this message in context: http://jmeter.512774.n5.nabble.com/Embedded-resource-is-causing-a-StackOverflowError-tp4749228p4749228.html Sent from the JMeter - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
I can reproduce the issue using a Switch Controller. I've posted a simple reproducible test plan to the issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 It seems to cause the stack overflow when there's some dodgy BeanShell evaluation, i.e. it works fine if I escape the commas in the ${__BeanShell()} Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:59:42 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: I've added the details to the ticket in Bugzilla, but here it is for convenience: Notes about the test plan schema: 1. All Random Controllers have Ignore sub-controller blocks unchecked 2. All Throughput Controllers are Percent Executions, with siblings adding to 100%. e.g. 4 sibling Throughput Controllers could have Throughput set to 60, 25, 10, 5 respectively. In that case, using the Switch Controller with a suitably chosen value might solve the crash. From some simple tests I had run previously, haveing (for example) 4 Throughput Controllers without a Random Controller as a parent would execute Throughput Controllers in sequence. That's why each set of Throughput Controllers has a Random Controler as a parent. I found that it was convenient just to reference out to the captured traffic using Module Controllers, but if you think this adds too much complexity to the test plan, I will try refactor it. No, that's probably not causing the problem. It's most likely the deep nesting of Random and Throughput Controllers. It would obviously be useful to know where the failure occurs. Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:37:34 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Thanks! That looks far too complicated to use as a test case, however it's still useful to have the information in case simpler test cases don't show the problem. Unfortunately the schematic does not show the Execution Style for the Throughput Controller - which do you use? Also, the Random Controller Ignore sub-controller blocks setting is not shown - which did you use? On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May
Re: StackOverflowError
On 28/05/2009, Noel O'Brien nobr...@newbay.com wrote: I can reproduce the issue using a Switch Controller. I've posted a simple reproducible test plan to the issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 It seems to cause the stack overflow when there's some dodgy BeanShell evaluation, i.e. it works fine if I escape the commas in the ${__BeanShell()} The faulty BeanShell call means the Switch value is treated as a name; it does not find the name, so does not run any samplers. The same happens if the condition is set to xyz for example. The lack of any samples causes a problem for the Thread Group. If you add a sampler after the Switch Controller, the test plan works fine. Whether a similar fix would work for your original test case, I don't know. Might be worth a try if you can work out where the test is failing. Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:59:42 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: I've added the details to the ticket in Bugzilla, but here it is for convenience: Notes about the test plan schema: 1. All Random Controllers have Ignore sub-controller blocks unchecked 2. All Throughput Controllers are Percent Executions, with siblings adding to 100%. e.g. 4 sibling Throughput Controllers could have Throughput set to 60, 25, 10, 5 respectively. In that case, using the Switch Controller with a suitably chosen value might solve the crash. From some simple tests I had run previously, haveing (for example) 4 Throughput Controllers without a Random Controller as a parent would execute Throughput Controllers in sequence. That's why each set of Throughput Controllers has a Random Controler as a parent. I found that it was convenient just to reference out to the captured traffic using Module Controllers, but if you think this adds too much complexity to the test plan, I will try refactor it. No, that's probably not causing the problem. It's most likely the deep nesting of Random and Throughput Controllers. It would obviously be useful to know where the failure occurs. Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:37:34 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Thanks! That looks far too complicated to use as a test case, however it's still useful to have the information in case simpler test cases don't show the problem. Unfortunately the schematic does not show the Execution Style for the Throughput Controller - which do you use? Also, the Random Controller Ignore sub-controller blocks setting is not shown - which did you use? On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps
Re: StackOverflowError
Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel
Re: StackOverflowError
OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel
Re: StackOverflowError
Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel
Re: StackOverflowError
Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter
Re: StackOverflowError
Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same
Re: StackOverflowError
Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional
Re: StackOverflowError
If you want to simulate real production traffic, one option is to use the access log sampler. I wrote that sampler so that I could simulate production traffic. It might be easier than using a test plan that generates random requests. peter On Tue, May 26, 2009 at 12:08 PM, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) Has anyone seen this before? If so what's causing it and is thete a way to work around it? I've tries the test plan with 2.3.3 also, but the same thing happens It's not been reported before, as far as I know. Could you create a Bugzilla issue for it? Please attach a (simple) test plan that exibits the behaiour, and the log from running it. Thanks. -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
Yes, but won't that execute the same requests each iteration (just like the proxy)? What I was trying to achieve was to simulate the randomness of choosing different paths through the client application, which leads to realistic groups of API calls being made to the server Either way I still had to re-organise the requests into Random/Throughput Controllers to simulating random branching with weighting. Regards, Noel - Original Message - From: Peter Lin wool...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:12:37 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError If you want to simulate real production traffic, one option is to use the access log sampler. I wrote that sampler so that I could simulate production traffic. It might be easier than using a test plan that generates random requests. peter On Tue, May 26, 2009 at 12:08 PM, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel
Re: StackOverflowError
actually, the way the access log sampler works is it gets a new request for each thread, so it doesn't repeat the same request in the access log. peter On Tue, May 26, 2009 at 12:32 PM, Noel O'Brien nobr...@newbay.com wrote: Yes, but won't that execute the same requests each iteration (just like the proxy)? What I was trying to achieve was to simulate the randomness of choosing different paths through the client application, which leads to realistic groups of API calls being made to the server Either way I still had to re-organise the requests into Random/Throughput Controllers to simulating random branching with weighting. Regards, Noel - Original Message - From: Peter Lin wool...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:12:37 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError If you want to simulate real production traffic, one option is to use the access log sampler. I wrote that sampler so that I could simulate production traffic. It might be easier than using a test plan that generates random requests. peter On Tue, May 26, 2009 at 12:08 PM, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
Thanks! That looks far too complicated to use as a test case, however it's still useful to have the information in case simpler test cases don't show the problem. Unfortunately the schematic does not show the Execution Style for the Throughput Controller - which do you use? Also, the Random Controller Ignore sub-controller blocks setting is not shown - which did you use? On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty(AbstractTestElement.java:140) at org.apache.jmeter.testelement.AbstractTestElement.getPropertyAsInt(AbstractTestElement.java:183) at org.apache.jmeter.control.ThroughputController.getStyle(ThroughputController.java:109) at org.apache.jmeter.control.ThroughputController.isDone(ThroughputController.java:207) at org.apache.jmeter.control.InterleaveControl.currentReturnedNull(InterleaveControl.java:153) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:94) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next(GenericController.java:146) at org.apache.jmeter.control.InterleaveControl.next(InterleaveControl.java:83) at org.apache.jmeter.control.InterleaveControl.nextIsAController(InterleaveControl.java:95) at org.apache.jmeter.control.GenericController.next
Re: StackOverflowError
I've added the details to the ticket in Bugzilla, but here it is for convenience: Notes about the test plan schema: 1. All Random Controllers have Ignore sub-controller blocks unchecked 2. All Throughput Controllers are Percent Executions, with siblings adding to 100%. e.g. 4 sibling Throughput Controllers could have Throughput set to 60, 25, 10, 5 respectively. From some simple tests I had run previously, haveing (for example) 4 Throughput Controllers without a Random Controller as a parent would execute Throughput Controllers in sequence. That's why each set of Throughput Controllers has a Random Controler as a parent. I found that it was convenient just to reference out to the captured traffic using Module Controllers, but if you think this adds too much complexity to the test plan, I will try refactor it. Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:37:34 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Thanks! That looks far too complicated to use as a test case, however it's still useful to have the information in case simpler test cases don't show the problem. Unfortunately the schematic does not show the Execution Style for the Throughput Controller - which do you use? Also, the Random Controller Ignore sub-controller blocks setting is not shown - which did you use? On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following happens, halting the test: 2009/05/25 16:07:54 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.StackOverflowError at java.util.HashMap.getEntry(HashMap.java:344) at java.util.LinkedHashMap.get(LinkedHashMap.java:280) at java.util.Collections$SynchronizedMap.get(Collections.java:1975) at org.apache.jmeter.testelement.AbstractTestElement.getProperty
Re: StackOverflowError
Another possibility might be the Switch Controller; the logic is then in how the value is calculated. One of the switch entries can be a dummy sample, e.g. Test Action with no wait; this allows the Switch Controller to do nothing. == For a basic server load test, it should be sufficient to just ensure that the overall load is representative. The effect of individual random behaviour on the overall load tends to get less and less as more sessions are used. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Yes, but won't that execute the same requests each iteration (just like the proxy)? What I was trying to achieve was to simulate the randomness of choosing different paths through the client application, which leads to realistic groups of API calls being made to the server Either way I still had to re-organise the requests into Random/Throughput Controllers to simulating random branching with weighting. Regards, Noel - Original Message - From: Peter Lin wool...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:12:37 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError If you want to simulate real production traffic, one option is to use the access log sampler. I wrote that sampler so that I could simulate production traffic. It might be easier than using a test plan that generates random requests. peter On Tue, May 26, 2009 at 12:08 PM, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org -- Regards, Noel - To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org
Re: StackOverflowError
On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: I've added the details to the ticket in Bugzilla, but here it is for convenience: Notes about the test plan schema: 1. All Random Controllers have Ignore sub-controller blocks unchecked 2. All Throughput Controllers are Percent Executions, with siblings adding to 100%. e.g. 4 sibling Throughput Controllers could have Throughput set to 60, 25, 10, 5 respectively. In that case, using the Switch Controller with a suitably chosen value might solve the crash. From some simple tests I had run previously, haveing (for example) 4 Throughput Controllers without a Random Controller as a parent would execute Throughput Controllers in sequence. That's why each set of Throughput Controllers has a Random Controler as a parent. I found that it was convenient just to reference out to the captured traffic using Module Controllers, but if you think this adds too much complexity to the test plan, I will try refactor it. No, that's probably not causing the problem. It's most likely the deep nesting of Random and Throughput Controllers. It would obviously be useful to know where the failure occurs. Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 17:37:34 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Thanks! That looks far too complicated to use as a test case, however it's still useful to have the information in case simpler test cases don't show the problem. Unfortunately the schematic does not show the Execution Style for the Throughput Controller - which do you use? Also, the Random Controller Ignore sub-controller blocks setting is not shown - which did you use? On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=47269 Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:19:36 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Create the Bugzilla issue, re-open and add the attachment. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hmm, doesn't look like attachyments are supported in this mailing list. Is there anywhere else I can put it? Regards, Noel - Original Message - From: Noel O'Brien nobr...@newbay.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 16:12:16 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError Ok, I've replaced it all, see attached Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 15:52:24 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError That's fine - or you could just change the sensitive parts - e.g. use different URLs etc. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I've generated the HTML schema file. Can I send it to you personally, i.e. I don't want to post it publically for security reasons Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 14:56:18 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: StackOverflowError OK, that could be added later. Meanwhile, perhaps you can use the extras/schematic.* files to generate a summary of the test plan that fails and attach that. [There's no schematic.sh version, but it should be obvious what to do if you are not using Windows]. On 26/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi, I find it hard to reproduce with a simple test plan, but I'll try to put something together that will reproduce the issue Regards, Noel - Original Message - From: sebb seb...@gmail.com To: JMeter Users List jmeter-user@jakarta.apache.org Sent: Tuesday, 26 May, 2009 12:21:38 GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: Stac On 25/05/2009, Noel O'Brien nobr...@newbay.com wrote: Hi All, I'm using JMeter (2.3.2) to simulate a traffic model for our application (server) based on the traffic that our client generates. I used the JMeter proxy to sniff the traffic and then to make it more realistic I re-organised the captured samples into a series or Random and Throughput controllers. This works fine until the point in the test plan where the random/throuput controller come into play nad the the following