jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanton W Derry <de...@cpt.com>
Subject Re: jmeter.control.GenericController: StackOverflowError detected
Date Tue, 10 Jul 2012 02:55:32 GMT
Problem solved, increased ThreadStackSize to 4096

On 7/6/12 4:14 PM, Stanton W Derry wrote:
> Yes, the main thread group.
> Yes, happens every time even with one thread
> Probably not, as the response size can be upwards of 1.7m on a HTTP 
> request in the main thread group
> Will try suggestion on If controllers
>
> What is interesting, I don't see the issue in windows when running in 
> gui mode, only on Linux in non-gui.
>
> Have tried 2.5.1 and 2.7 on both systems
> JVM - Windos - build 1.6.0_31-b05, Linux - build 1.6.0_13-b03 - have 
> no control over the versions installed
>
> Stan
>
> On 7/6/12 3:57 PM, sebb wrote:
>> On 6 July 2012 23:50, Stanton W Derry<derry@cpt.com>  wrote:
>>> This is the outline of the Test Plan:
>>>
>>> TestPlan
>>>    - Setup Thread Group - 1 thread
>>>        Header Mgr
>>>        Cookie Mgr
>>>        Transaction Controller
>>>          HTTP Request
>>>            Regular Expression Extractor
>>>          Loop Controller - Base on REE_matchNr (always between 1 and 8)
>>>            HTTP Request
>>>              Regular Expression Extractor
>>>              BeanShell PostProcessor - creates properties from matched
>>> extractions
>>>    - Thread Group
>>>        Header Mgr
>>>        Cookie Mgr
>>>        Once Only Controller
>>>          HTTP Request - sets cookies
>>>        Transaction Controller
>>>          IF Controller - JMeterThread.last_sample_ok
>>>            HTTP Request
>>>          IF Controller - Is request to be processed test
>>>            IF Controller - JMeterThread.last_sample_ok
>>>               HTTP Request
>>>      Constant Throughput Timer - 960 tpm
>> Which thread group causes the problem?
>> I assume it's the main one, but that's only a guess.
>>
>> Does it happen every time?
>>
>> Can you provide a test case that uses a public site?
>> If so, please create a Bugzilla and attach the plan.
>>
>> It looks like you could try replacing the If Controllers with Test
>> Action - stop thread on error.
>>
>>
>>> On 7/6/12 3:31 PM, sebb wrote:
>>>> On 6 July 2012 22:51, Stanton W Derry<derry@cpt.com>   wrote:
>>>>
>>>>> Running with both 2.5.1 and 2.7, encounter
>>>>>
>>>>>    WARN  - jmeter.control.GenericController: StackOverflowError 
>>>>> detected
>>>>>
>>>>>
>>>>> then the stack trace below and the thread dies.  I've changed the JVM
>>>>> ThreadStackSize=2048 and still have the issue.  Response to the HTTP
>>>>> samplers is quite large 250k+.
>>>>>
>>>>> Any thoughts on how to solve this?
>>>>>
>>>>> Thanks in advance,
>>>>> Stan
>>>>>
>>>>> 2012/07/06 17:08:46 ERROR - jmeter.threads.JMeterThread: Test failed!
>>>>> java.lang.StackOverflowError
>>>>>           at java.io.BufferedWriter.write(BufferedWriter.java:202)
>>>>>           at java.io.Writer.write(Writer.java:140)
>>>>>           at java.io.PrintStream.write(PrintStream.java:475)
>>>>>           at java.io.PrintStream.print(PrintStream.java:619)
>>>>>           at java.io.PrintStream.println(PrintStream.java:756)
>>>>>           at
>>>>>
>>>>> org.apache.log.util.DefaultErrorHandler.error(DefaultErrorHandler.java:42)

>>>>>
>>>>>           at
>>>>> org.apache.log.Hierarchy$InnerErrorHandler.error(Hierarchy.java:266)
>>>>>           at
>>>>>
>>>>> org.apache.log.output.AbstractTarget.processEvent(AbstractTarget.java:112)

>>>>>
>>>>>           at org.apache.log.Logger.fireEvent(Logger.java:632)
>>>>>           at org.apache.log.Logger.output(Logger.java:607)
>>>>>           at org.apache.log.Logger.output(Logger.java:590)
>>>>>           at org.apache.log.Logger.warn(Logger.java:205)
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:190)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.next(GenericController.java:148)

>>>>>
>>>>>           at
>>>>> org.apache.jmeter.control.LoopController.next(LoopController.java:108)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:195)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.next(GenericController.java:148)

>>>>>
>>>>>           at
>>>>> org.apache.jmeter.control.LoopController.next(LoopController.java:108)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.LoopController.nextIsNull(LoopController.java:130)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.next(GenericController.java:143)

>>>>>
>>>>>           at
>>>>> org.apache.jmeter.control.LoopController.next(LoopController.java:108)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:195)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.next(GenericController.java:148)

>>>>>
>>>>>           at
>>>>> org.apache.jmeter.control.LoopController.next(LoopController.java:108)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:195)

>>>>>
>>>>>           at
>>>>>
>>>>> org.apache.jmeter.control.GenericController.next(GenericController.java:148)

>>>>>
>>>>>           ....
>>>>>
>>>>>
>>>> Looks like it may be a loop in the code.
>>>> Try simplifying the test plan.
>>>>
>>>>
>>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message