You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Stuart Findlay <st...@cp.net> on 2007/09/20 18:00:58 UTC

JSON response data causing loading JMeter process

Hi all

I've been writing a script recently to test our new server application. 
I've been down a few blind alleys investigating an issue where my script 
is loading the 4xCPU SPARC machine it's running on at 95% CPU.

I've now narrowed this problem down to a group of widgets in the server 
app. which are returning 32kB of JSON text and this seems to be 
overloading the HTML Parser code in some way. Strangely the request in 
question only takes about 100ms to execute but disabling it changes the 
CPU usage of the JMeter process from ~96% to ~20%

Has anyone come across any issues like this and (hopefully) resolved them?

Cheers, Stuart



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


Re: JSON response data causing loading JMeter process

Posted by sebb <se...@gmail.com>.
Thanks for the feedback.

Certain features of REs are more expensive than others, so maybe this
is the cause.

If so, then it may be possible to rework the expensive ones.

S.
On 21/09/2007, Stuart Findlay <st...@cp.net> wrote:
> Hi Sebb
>
> I've narrowed down this issue to two RegularExpressionExtractors which
> successfully extract 2 URLS from the page in question. Strangely another
> RegularExpressionExtractor on the same data causes no problems. I'll log
> a bug next week.
>
> Cheers, Stuart
>
>
> Stuart Findlay wrote:
> > No - with regards to Tree View Listener and I just disabled
> > "Downloaded Embedded Resources" with no improvement.
> >
> > There are RegularExpressionExtractors on the offending request but I
> > can't see that causing such a big effect. I'll write a unit test with
> > HTMLParser and see if the problem shows up in isolation.
> >
> > Thanks, Stuart
> >
> >
> > sebb wrote:
> >> Are you using the Tree View Listener? If so, try disabling it.
> >>
> >> Are you using "Download embedded resources" ?
> >>
> >> This is the other area where parsing may take place.
> >>
> >> On 20/09/2007, Stuart Findlay <st...@cp.net> wrote:
> >>
> >>> Hi all
> >>>
> >>> I've been writing a script recently to test our new server application.
> >>> I've been down a few blind alleys investigating an issue where my
> >>> script
> >>> is loading the 4xCPU SPARC machine it's running on at 95% CPU.
> >>>
> >>> I've now narrowed this problem down to a group of widgets in the server
> >>> app. which are returning 32kB of JSON text and this seems to be
> >>> overloading the HTML Parser code in some way. Strangely the request in
> >>> question only takes about 100ms to execute but disabling it changes the
> >>> CPU usage of the JMeter process from ~96% to ~20%
> >>>
> >>> Has anyone come across any issues like this and (hopefully) resolved
> >>> them?
> >>>
> >>> Cheers, Stuart
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: JSON response data causing loading JMeter process

Posted by Stuart Findlay <st...@cp.net>.
Hi Sebb

I've narrowed down this issue to two RegularExpressionExtractors which 
successfully extract 2 URLS from the page in question. Strangely another 
RegularExpressionExtractor on the same data causes no problems. I'll log 
a bug next week.

Cheers, Stuart


Stuart Findlay wrote:
> No - with regards to Tree View Listener and I just disabled 
> "Downloaded Embedded Resources" with no improvement.
>
> There are RegularExpressionExtractors on the offending request but I 
> can't see that causing such a big effect. I'll write a unit test with 
> HTMLParser and see if the problem shows up in isolation.
>
> Thanks, Stuart
>
>
> sebb wrote:
>> Are you using the Tree View Listener? If so, try disabling it.
>>
>> Are you using "Download embedded resources" ?
>>
>> This is the other area where parsing may take place.
>>
>> On 20/09/2007, Stuart Findlay <st...@cp.net> wrote:
>>  
>>> Hi all
>>>
>>> I've been writing a script recently to test our new server application.
>>> I've been down a few blind alleys investigating an issue where my 
>>> script
>>> is loading the 4xCPU SPARC machine it's running on at 95% CPU.
>>>
>>> I've now narrowed this problem down to a group of widgets in the server
>>> app. which are returning 32kB of JSON text and this seems to be
>>> overloading the HTML Parser code in some way. Strangely the request in
>>> question only takes about 100ms to execute but disabling it changes the
>>> CPU usage of the JMeter process from ~96% to ~20%
>>>
>>> Has anyone come across any issues like this and (hopefully) resolved 
>>> them?
>>>
>>> Cheers, Stuart
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>   
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>


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


Re: JSON response data causing loading JMeter process

Posted by Stuart Findlay <st...@cp.net>.
No - with regards to Tree View Listener and I just disabled "Downloaded 
Embedded Resources" with no improvement.

There are RegularExpressionExtractors on the offending request but I 
can't see that causing such a big effect. I'll write a unit test with 
HTMLParser and see if the problem shows up in isolation.

Thanks, Stuart


sebb wrote:
> Are you using the Tree View Listener? If so, try disabling it.
>
> Are you using "Download embedded resources" ?
>
> This is the other area where parsing may take place.
>
> On 20/09/2007, Stuart Findlay <st...@cp.net> wrote:
>   
>> Hi all
>>
>> I've been writing a script recently to test our new server application.
>> I've been down a few blind alleys investigating an issue where my script
>> is loading the 4xCPU SPARC machine it's running on at 95% CPU.
>>
>> I've now narrowed this problem down to a group of widgets in the server
>> app. which are returning 32kB of JSON text and this seems to be
>> overloading the HTML Parser code in some way. Strangely the request in
>> question only takes about 100ms to execute but disabling it changes the
>> CPU usage of the JMeter process from ~96% to ~20%
>>
>> Has anyone come across any issues like this and (hopefully) resolved them?
>>
>> Cheers, Stuart
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>   


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


Re: JSON response data causing loading JMeter process

Posted by sebb <se...@gmail.com>.
Are you using the Tree View Listener? If so, try disabling it.

Are you using "Download embedded resources" ?

This is the other area where parsing may take place.

On 20/09/2007, Stuart Findlay <st...@cp.net> wrote:
> Hi all
>
> I've been writing a script recently to test our new server application.
> I've been down a few blind alleys investigating an issue where my script
> is loading the 4xCPU SPARC machine it's running on at 95% CPU.
>
> I've now narrowed this problem down to a group of widgets in the server
> app. which are returning 32kB of JSON text and this seems to be
> overloading the HTML Parser code in some way. Strangely the request in
> question only takes about 100ms to execute but disabling it changes the
> CPU usage of the JMeter process from ~96% to ~20%
>
> Has anyone come across any issues like this and (hopefully) resolved them?
>
> Cheers, Stuart
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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