[prev in list] [next in list] [prev in thread] [next in thread]
List: grinder-use
Subject: Re: [Grinder-use] No module named httplib
From: Philip Aston <philipa () mail ! com>
Date: 2010-05-29 10:46:59
Message-ID: 4C00F0A3.80004 () mail ! com
[Download RAW message or body]
Hi Galder,
Usually, the cost of the logging is insignificant compared to the cost
of a network call. The logging cost is *not* measured as part of the
test time. The general answer here is to add more injectors.
Is there a particular reason why the logging cost might be relatively
high for you? E.g. are your network calls unusually cheap (e.g. local),
or is your log file on a shared drive?
In general, I'm trying to reduce the number of options that are
controlled via properties. On the other hand, I agree it would be good
to be able to control the logging level for the http plugin. Can you
open a feature request for this please.
Re: log4j - no way. I'm not a fan and it would add more overhead when
was enabled than the grinder's lightweight logging.
- Phil
On 21/05/10 19:24, Galder Zamarreno wrote:
> Btw, I'm talking about line 1304 in HTTPRequest.java
>
> On 21 May 2010 20:23, Galder Zamarreno<galder@zamarreno.com> wrote:
>
>> After commenting that line and rebuilding grinder, I'm getting a small
>> perf increase in the test. So, someone with committer access should
>> make sure that this logging line is somehow controlled by a system
>> property, or instead use something more traditional like log4j for
>> logging.
>>
>> On 21 May 2010 19:38, Galder Zamarreno<galder@zamarreno.com> wrote:
>>
>>> I got around this issue in two different ways:
>>>
>>> - Using Jython 2.5 which made the test go half as slow!!
>>>
>>> - Transform the code to use grinder's HTTPRequest class which in turns
>>> fills the data log files with plenty of these:
>>>
>>> 5/21/10 7:15:48 PM (thread 0 run 0 test 2):
>>> http://localhost:8080/boo/56-0 -> 200 OK, 1000 bytes
>>>
>>> Is there a way to switch these off??? If you're sending thousands of
>>> requests, this logging only slows down things.
>>>
>>> Cheers,
>>>
>>> On 21 May 2010 16:11, Galder Zamarreno<galder@zamarreno.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I wanna use the httplib python module in one of my Grinder jython
>>>> scripts, but I keep getting this error:
>>>>
>>>> 5/21/10 4:03:51 PM (process dnb.local-0): Error running worker process
>>>> (ImportError: no module named httplib
>>>> File "/Users/z/Infinispan/grinder/rest.py", line 3, in ?)
>>>>
>>>> In the script, I've added:
>>>>
>>>> import httplib
>>>>
>>>> I know httplib is under
>>>> /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py
>>>> and hence it's used if I execute the rest.py via python directly. So,
>>>> what path needs tweaking to make sure this httplib.py is included at
>>>> the grinder runtime?
>>>>
>>>> Cheers,
>>>> --
>>>> Galder ZamarreƱo
>>>> http://galder.zamarreno.com
>>>>
>>>>
>>>
------------------------------------------------------------------------------
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic