56:user or thread group session as a programmer i immediately understand what thread group means but i must confess that i always rename as something like users or service subscribers in my test plans session seems very abstract to me unless you specify what kind of session it is e g load session or meter session what about something like load injectors or traffic generators or load units bruno oliver rossmueller wrote on wed 22 jan 2003 jordi salvat i alabart wrote many people confuse both concepts they launch 100 threads requesting pages with 1 second pauses bringing their server to its knees and state that the system can t withstand 100 users although given they re confused anyway it wouldn t make much harm anyone has a better idea loser group and number of losers i m not sure it is less confusing but what about session losergroup 96:there is a standard panel that gets plugged into the gui of every listener it sthe file panel class rather than make one listener capable of csv formatting why not make them all capable i would suggest making a new panel maybe called logging panel and enhance it to provide this choice mike on 31 jan 2003 at 8 32 kcas 360commerce com wrote currently out listeners output xml i would like to provide an alternative output format for example comma separated values csv let s call this proposed listener a delimited values writer because we ll be nice and let the user choose a delimiter separator besides a comma i d like to make up some initial simple requirements we can expand on them later here is what i propose the delimited values writer will be added to the tree just like every other listener the ui will allow the user to enter a string to use as a delimiter allow the user to enter a file to which the values will be written allow the user to specify whether he wants the column names to appear as the first line of the output file the ui will not display results as they arrive the output file by default the fields written will be the same as those which are currently written to xml by default the fields written will occur in the same order as those which are currently written to xml the fields to be written can be specified in the jmeter properties file comments suggestions etc are appreciated keith michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 filepanel loggingpanel delimitedvalueswriter delimitedvalueswriter mstover_ya 150:hi i am trying to create my owm post processor jmeter 2 01 i ve created a new class that extends abstract test element and implements post processor a also created a gui class that implements abstract post processor gui now i wanted to add a title and some label variables to messages properties when i tried to rebuild the apachejmeter core jar i got an error on pkcs12 key store apparently jbuilder can not find the following imports import iaik pkcs pkcs12 pkcs12 import iaik pkcs pkcs12 key bag import iaik pkcs pkcs12 certificate bag import iaik pkcs pkcs parsing exception import iaik pkcs pkcs exception import iaik x509 chain verifier import iaik utils util now i ve added all libraries in the lib directorty from j meter to my project and still it can not find these imports can someone tell me which jar i need thx babette abstracttestelement postprocessor abstractpostprocessorgui apachejmeter_core pkcs12keystore keybag certificatebag pkcsparsingexception pkcsexception chainverifier 152:the webservice sampler uses apache soap the soap api requires the message meet soap requirements the soap xml rpc may be able to handle it peter sonam chauhan sona ce com au wrote hi guys the main reason i suggested enhancing the http sampler instead was so it can post complex documents like the one below it is not a xml document and the content type is not text xml correct me if i am wrong but i think none of the current samplers http soap and webservices samplers can post this document message id 3296 devsvr2 in ce com au date tue 13 jan 2004 13 50 47 1100 gmt 11 00 mime version 1 0 content type multipart related boundary part 187 175861948 1073962247153 content id c5732f42 78e6 1000 93a0 ac1001760001 x date sent 13 jan 2004 13 50 47 gmt 11 00 reference id x document type error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type error ns urn x error error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type catalog doctype peter thanks the dec 29 cvs didn t have the webservices sampler but the 1 9 1 stable release has an alpha version of your webservices sampler with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 2 29 pm to j meter developers list subject re suggestion for enhancing http request sampler hi sonam please take a look at the webservices sampler it uses apache soap driver it can read xml envelope from text area a file or randomly select files from a directory it s been tested with net webservices peter sonam chauhan sona ce com au wrote well i may be missing something so do correct me however if all that soap sampler does is 1 set content type text xml 2 post contents of it s textbox with no parameters it would be better to bundle that functionality into the http sampler because a the http sampler is more mature as you said b it has more functionality for e g redirects keep alives though i don t know if these are applicable to xml pos ts the other point i had was certain http pos ts are impossible both with the http sampler and the soap sampler for e g the multipart mime http posts like the one commerce one envelope i mentioned below if the http sampler could load the actual body of the post from a textbox or a file then in combination with the http header manager it could do anything with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from jordi salvat i alabart mailto jsal atg com sent tuesday 13 january 2004 10 49 am to j meter developers list subject re suggestion for enhancing http request sampler why can t we keep this function with the soap sampler i agree the soap sampler is poor and buggy it needs to be improved but i m not in favour of piling up all functionalities into one single infinitely complex component salut jordi en na sonam chauhan ha escrit the normal http sampler seems incapable of posting xml documents using the process below it falls down in point 2 1 the http content type is set to text xml 2 the http request body contains the document itself no post parameters are used however the soap xml rpc request sampler seems to handle this process well the normal http sampler can be made more generic by allowing it to post the contents of a file or a textbox without post parameters in this case there would be no need of the soap xml rpc request sampler is this correct also the above would make possible certain complex http requests that currently are impossible with j meter for e g commerce one marketsite envelopes that have multiple content parts with no post parameters with regards sonam chauhan to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org message truncated do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus part_187_175861948 referenceid _part_187_175861948 _part_187_175861948 jmeter posts posts commerceone jmeter jmeter commerceone 173:i don t think your proposed interface naming scheme is any better to read take the visualizer for example well the name says everything needed it is a visualizer and i really would hate to read every time i need a visualizer that i would need a i visualizer and the objects i instantiate are graph visualizer objects and so on i like it that way i consider that to be much more readable than any other thing i also do not like attributes to be named b is option checked boolean values i item count int values and so forth older projects here at work used to use this naming scheme uagh i also do not think a interface should always be an adjective adjectives are useful for well flags like cloneable and the like but for real life objects at least objects which represent objects in the real world well these are objects and therefore should be substantives visualizable would sound strange wouldn t it though this are just my personal preferences i am indeed a bit harsh on this issue i m sorry it s just that i m so glad this has vanished here at work that i d be quite unhappy seeing this naming scheme return at j meter greetings wolfram ivisualizer graphvisualizer bisoptionchecked iitemcount jmeter 176:on 20 jan 2004 at 2 13 jerry pulley wrote hi mike first the infinite recursion issue i ve pasted in a simple controller and gui that demonstrates the issue with next returning null if it is a bug in j meter 1 9 1 the reason none of the component unit tests found it is probably that it requires the cooperation of the loop controller in the thread group the component unit tests seem to focus on their components outside the framework i don t know enough about j meter to write a unit test that exercises the entire framework like that so i just made a demo instead set up a thread group with the default properties and add a null controller it ll dump the call stack at the 5th iteration that should be enough to see what s happening before it blows the stack when i traced it in a debugger the problem seemed to be in the loop controller generic controller interaction this should probably be looked at with a currently active developer not me currently unfortunately so i m copying this to the developer list as well at any rate once i saw what was going on i was able to deal with that issue by hacking a null sampler with a trivial sample that still left the question of why my triggered controller behaved as it did if it had n subelements all n executed the first time it was triggered but only n 1 executed on all subsequent triggerings my unit tests exercised it as far as i understand the various j meter contracts but i was missing the reinitialization behavior your comment about re initialize led me to try calling the generic controller version of it and that solved the issue thank you very much having to return the null sampler instead of null is keeping generic controller from re initialize ing so for the moment i m calling it directly i used to understand j meter ok but things have changed since 1 7 are there any good writeups on the generic controller and thread group algorithms not really the intent was to write the generic controller in such a way that each method used was self explanatory and easily overridden to provide modified behavior after many total rewrites of this controller it s apparent the effort is still a failure and probably the only recourse is to sit down and write out documentation that fully explains the necessary behavior of a j meter controller i doubt any developers are going to jump up to do this however it really is the type of thing a newcomer might do to get initially involved in theproject if they were interested mike thnx jp p s sorry for the long post i get so excited when things start working null controller package net jpulley jmeter19 controller import org apache jmeter control generic controller import org apache jmeter samplers sampler public class null controller extends generic controller private int call count public sampler next if call count 5 thread dump stack return null null controller gui package net jpulley jmeter19 controller import java awt border layout import org apache jmeter control gui abstract controller gui import org apache jmeter testelement test element public class null controller gui extends abstract controller gui public null controller gui init public string get static label return null controller public test element create test element null controller ctlr new null controller configure test element ctlr return ctlr public void modify test element test element element configure test element element private void init set layout new border layout set border make border add make title panel border layout north end demo heh might as well put in the relevant parts of the stack trace java lang exception stack trace at java lang thread dump stack thread java 1064 at net jpulley jmeter19 controller null controller next null controller java 11 org apache jmeter control generic controller next isa controller generic controller java 190 org apache jmeter control generic controller next generic controller java 151 org apache jmeter control loop controller next is null loop controller java 169 org apache jmeter control generic controller next generic controller java 141 org apache jmeter control generic controller next isa controller generic controller java 194 org apache jmeter control generic controller next generic controller java 151 org apache jmeter control loop controller next is null loop controller java 169 org apache jmeter control generic controller next generic controller java 141 org apache jmeter control generic controller next isa controller generic controller java 194 org apache jmeter control generic controller next generic controller java 151 org apache jmeter control loop controller next is null loop controller java 169 org apache jmeter control generic controller next generic controller java 141 org apache jmeter control generic controller next isa controller generic controller java 194 org apache jmeter control generic controller next generic controller java 151 at org apache jmeter threads thread group next thread group java 133 at org apache jmeter threads j meter thread run j meter thread java 270 at java lang thread run thread java 534 java lang stack overflow error on mon 2004 01 19 at 10 43 msto apache org wrote the semantics of the next method are supposed to be like so returns sampler sampler is intended to be executed returns null is done false this should indicate the the controller has finished a full round of iteration and the test should move on to the next controller if the test runs another iteration the controller should be ready for everything to begin again this is why the next is null method calls reinitialize yessss returns null is done true the controller has finished entirely and should not be run again indeed it is generally dropped from the test entirely if returning null and not setting is done to true is causing a problem that sounds like either 1 you next method is getting into and infinite recursive loop when called subsequently aftering returning a null if you haven t explicitly looked into this possibility ie written some unit tests for it i consider this most likely 2 j meter has been changed in some way since i last looked at it that has introduced a bug because this was not a problem previously i think this is unlikely since this particular bug would be very noticeable in nearly all tests mike snip michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 jmeter threadgroup jmeter threadgroup nullcontroller loopcontroller genericcontroller nullsampler jmeter reinitialize genericcontroller nullsampler genericcontroller reinitialize jmeter genericcontroller threadgroup genericcontroller jmeter nullcontroller genericcontroller nullcontroller genericcontroller callcount callcount dumpstack nullcontrollergui borderlayout abstractcontrollergui testelement nullcontrollergui abstractcontrollergui nullcontrollergui getstaticlabel testelement createtestelement nullcontroller nullcontroller configuretestelement modifytestelement testelement configuretestelement setlayout borderlayout setborder makeborder maketitlepanel borderlayout dumpstack nullcontroller nullcontroller genericcontroller nextisacontroller genericcontroller genericcontroller genericcontroller loopcontroller nextisnull loopcontroller genericcontroller genericcontroller genericcontroller nextisacontroller genericcontroller genericcontroller genericcontroller loopcontroller nextisnull loopcontroller genericcontroller genericcontroller genericcontroller nextisacontroller genericcontroller genericcontroller genericcontroller loopcontroller nextisnull loopcontroller genericcontroller genericcontroller genericcontroller nextisacontroller genericcontroller genericcontroller genericcontroller threadgroup threadgroup jmeterthread jmeterthread stackoverflowerror isdone nextisnull isdone isdone jmeter mstover_ya 186:jordi thanks for pointing out those comments it s good to have the discussion regardless of what the final outcome ends up being first of all i don t disagree with your points but i d like to dig in a bit deeper so regarding 1 are you aware of examples where this would be a problem i can think of a couple of hypothetical ones but i don t have any real evidence one way or the other i don t recall any complaints about this on jmeter user for the release 1 8 where j meter did require 1 4 i just remember several questions about what jdk level was required since the error message you got when using an older jdk wasn t at all obvious one possible solution not sure yet if it s practical as i just thought of it what if we allowed the java sampler to run in a separate jvm which had looser requirements perhaps this would mean running a remote j meter engine on the same system as the main jvm and running the threads with that or maybe this could be supported by an even more generic sampler which starts up a process a new jvm a c program whatever with some parameters indicating the number of threads etc and let that process handle the data collection perhaps dumping the results to a socket or a file or something obviously that would require some changes to the sampler infrastructure but that s probably undergoing some changes anyway maybe these things are more trouble than they are worth right now i m just trying to get an idea of exactly what the problem is so we can consider alternative solutions or maybe that s more trouble then it s worth as you mentioned perhaps consulting jmeter user wouldn t be a bad idea regarding 2 in the recent past i don t think i ve logged on to a system that doesn t have a 1 4 jdk six months from now it should be even more universal if we had to run on just any person s system i could see this as being a problem but since j meter is presumably being run mainly by java developers i would expect that a recent jdk should be available personally i would be surprised to find less than 4 different jd ks on my system at any given time a quick count reveals at least 7 right now perhaps a couple of duplicates and there are probably a couple others that i forgot to count but maybe i m not normal jeremy jordi salvat i alabart wrote hi jeremy the points i made in http nagoya apache org wiki apachewiki cgi j meter development requirements for supporting even 1 2 are still valid 1 the java sampler runs the code being load tested in the same jvm and may require a specific jvm or may have similar portability requirements 2 i want it to be quickly installable on any system i work with and being able to use whatever jvm is already available saves one installation step ok i m too lazy i would agree to move all but 1 4 1 to a should requirement if it were not for reason 1 in other words if we consider the java sampler a relevant functionality which we may want to drop since 95 of users of j meter seem to be using it for http testing we should support any jdk we believe is still in use for products in active development maybe we should run a poll in j meter user jmeter jmeter jmeter jdks jmeterdevelopment jmeter jmeter 195:i ve discovered a possible work round for the different sample element names just assume that all the immediate children of testelement are samples not sure if this would work with all possible output files but the approach looks promising so i m no longer proposing changing the names i still think it s worth changing the encoding of strings to use the xstream default see the separate e mail about that s on 7 2 05 sebb seb gmail com wrote i ve just discovered that the latest version of xstream 1 1 2 does the required escaping for string attributes i d still like to fix the sample result element names s on 7 2 05 sebb seb gmail com wrote i ve been trying to update the jmeter results xsl stylesheets in the extras directory to work with the new test result outout format this is proving rather messy so i m wondering if the output format could be changed one problem is the escaping of attribute string values the original implementation used standard xml constructs lt quot etc and did not escape spaces whereas the current implementation uses url encoder encode this means that the xsl stylesheet now has to decode de escape the strings before display whereas previously the browser would do the decoding automatically the escaping needed is not very complicated quot etc i ve not yet found a way to access the code that currently does it but it can be recreated fairly easily another problem is that there are now two different sample elements sample and http sample whereas previously there was only sample result this means that walking the tree to find the samples is quite a bit more complicated as one has to check for two different types of element if we ever introduce more sample result classes the problem will just get worse so i d like to suggest that we revert to using just sample result this would mean a bit more work when unmarshalling the xml as the appropriate result class would have to be determined prior to creating it thoughts sebastian urlencoder httpsample sampleresult sampleresult 202:hi guys currently i am trying to use j meter to measure j boss messaging s performance when i set the communication style into request response j meter shows errors in the report from the log i see that the problem lies in these lines files org apache jmeter protocol jms sampler receiver if reply getjms correlationid null log warn received message with correlation id null discarding message else message admin get admin put reply reply getjms correlationid reply i don t know it is done in activemq but in j boss messaging the message producer will not set message s correlation id automatically so if you want to set correlation id in j boss messaging you need to use method setjms correlationid string correlationid since in jms specification it is not specified that that the content of jms correlation id will automatically be filled with message id i think it is better to change the correlation id with message id if reply getjms messageid null log warn received message with message id null discarding message else message admin get admin put reply reply getjms messageid reply this way we can make sure that the test will run for any jms provider the change has been made in my local computer and it works for j boss messaging i would like to hear you opinion about this matter should i change the source in svn or has anyone problem with the change thank you for your attention best regards hendra jmeter jboss jmeter getjmscorrelationid messageadmin getadmin putreply getjmscorrelationid jboss jboss setjmscorrelationid getjmsmessageid messageadmin getadmin putreply getjmsmessageid jboss 209:i fixed the bugs i had found including this one but i still believe there is place for more mostly in the not per user case now i would like to in this order consider removing the total executions mode it works now but i really can t see a relevant use for it and it makes it more difficult to understand the role of the component although the behaviour in this particular mode is easy to explain in relation to the once only controller it s an n times only controller i m 1 on this but still open to discussion consider removing the not per user function i really really can t think of a use for it it s definitely useless in percent executions mode where it would amount to roughly the same thing as per user and the total executions mode sounds pretty useless by itself even more combined with not per user i m definitely 1 on this and 2 if we decide to remove the total executions mode rename the component and the throughput parameter i can t find a good name run sometimes controller is the best i ve found and it sounds like a bad joke to me i would however wait until we ve closed the two issues above before deciding if we remove the total execution mode percentage would be a good name for the parameter salut jordi en na bugz apache org ha escrit do not reply to this email but please post your bug related comments through the web interface available at http nagoya apache org bugzilla show bug cgi id 23027 any reply made to this message will not be collected and inserted in the bug database http nagoya apache org bugzilla show bug cgi id 23027 throughput controller still executes when set to 0 0 percent jsal atg com changed what removed added status new resolved resolution fixed additional comments from jsal atg com 2003 12 30 10 36 fixed in cvs show_bug show_bug 279:tried changing the code as suggested and it does not break any existing tests but that does not mean it is correct try using the user parameters pre processor instead of udv that seems to work without needing the fix s on 11 05 07 vladimir sitnikov sitn gmail com wrote hi i ve created a test like loop 4 iterations http sampler 1 user defined variable j 1 while javascript j 4 http sampler 2 user defined variable j intsum j 1 http sampler 3 here while controller emulates for j in 1 3 loop the thing is every even time j meter rejects entering into while controller i am afraid i am completely unfamiliar with j meter code however it looks like there is a workaround that works fine for me see a patch bellow another point is when i substitute while controller with loop 1000 if controller condition http sampler 2 j meter works fine for me that means there is no error in the test plan please confirm whether this code change is ok or not while controller java original 2007 05 11 19 18 32 000000000 0400 while controller java 2007 05 11 19 18 32 000000000 0400 110 11 110 11 if current 0 in the middle of the loop return super next re initialize don t even start the loop must be start of loop if end of loop false return super next ok to continue re initialize don t even start the loop return null __javascript __intsum whilecontroller jmeter whilecontroller jmeter whilecontroller ifcontroller jmeter whilecontroller java_original whilecontroller reinitialize endofloop reinitialize 331:hi i received a null pointer exception after starting j meter bin jmeter when i click on the root node null pointer j meter tree listener update menu item java lang null pointer exception at org apache jmeter gui j meter menu bar set edit remove enabled j meter menu bar java 201 at org apache jmeter gui main frame set edit remove enabled main frame java 119 at org apache jmeter gui tree j meter tree listener update main menu j meter tree listener java 370 at org apache jmeter gui tree j meter tree listener mouse pressed j meter tree listener java 252 at java awt awt event multicaster mouse pressed awt event multicaster java 221 at java awt component process mouse event component java 3712 at java awt component process event component java 3544 at java awt container process event container java 1164 at java awt component dispatch event impl component java 2593 at java awt container dispatch event impl container java 1213 at java awt component dispatch event component java 2497 at java awt lightweight dispatcher retarget mouse event container java 2451 at java awt lightweight dispatcher process mouse event container java 2210 at java awt lightweight dispatcher dispatch event container java 2125 at java awt container dispatch event impl container java 1200 at java awt window dispatch event impl window java 914 at java awt component dispatch event component java 2497 at java awt event queue dispatch event event queue java 339 at java awt event dispatch thread pump one event for hierarchy event dispatch thread java 131 at java awt event dispatch thread pump events for hierarchy event dispatch thread java 98 at java awt event dispatch thread pump events event dispatch thread java 93 at java awt event dispatch thread run event dispatch thread java 85 this patch at least removes the error message if not the root cause index src org apache jmeter gui j meter menu bar java rcs file home cvspublic jakarta jmeter src org apache jmeter gui j meter menu bar java v retrieving revision 1 18 diff u r1 18 j meter menu bar java src org apache jmeter gui j meter menu bar java 15 mar 2002 12 36 08 0000 1 18 src org apache jmeter gui j meter menu bar java 16 apr 2002 14 48 09 0000 198 7 198 7 menu item is disabled then we also need to disable the edit menu the java look and feel guidelines say to disable a menu if all menu items are disabled if edit add is enabled if edit add null edit add is enabled edit menu set enabled false cu marcel jmeter jmetertreelistener updatemenuitem nullpointerexception jmetermenubar seteditremoveenabled jmetermenubar mainframe seteditremoveenabled mainframe jmetertreelistener updatemainmenu jmetertreelistener jmetertreelistener mousepressed jmetertreelistener awteventmulticaster mousepressed awteventmulticaster processmouseevent processevent processevent dispatcheventimpl dispatcheventimpl dispatchevent lightweightdispatcher retargetmouseevent lightweightdispatcher processmouseevent lightweightdispatcher dispatchevent dispatcheventimpl dispatcheventimpl dispatchevent eventqueue dispatchevent eventqueue eventdispatchthread pumponeeventforhierarchy eventdispatchthread eventdispatchthread pumpeventsforhierarchy eventdispatchthread eventdispatchthread pumpevents eventdispatchthread eventdispatchthread eventdispatchthread jmetermenubar jmetermenubar jmetermenubar jmetermenubar jmetermenubar edit_add isenabled edit_add edit_add isenabled editmenu setenabled 377:i m embarking on some j meter development and just got the latest from cvs it builds fine but when i run it i get the following error java lang reflect invocation target exception javax xml parsers factory configuration error provider org apache xerces jaxp sax parser factory impl not found at javax xml parsers sax parser factory new instance sax parser factory java 141 at org apache jmeter util j meter utils clinit j meter utils java 100 at org apache jmeter j meter initialize properties j meter java 194 at org apache jmeter j meter start j meter java 139 at java lang reflect method invoke native method at org apache jmeter new driver main new driver java 152 i m puzzled why it can t find sax parser factory impl which is in the same jar as sax parser factory which it obviously found thanks for the help jeff jmeter invocationtargetexception factoryconfigurationerror saxparserfactoryimpl saxparserfactory newinstance saxparserfactory jmeterutils jmeterutils jmeter initializeproperties jmeter jmeter jmeter newdriver newdriver saxparserfactoryimpl saxparserfactory 382:the jdbc worked ok for me though i am having other problems i can t start test stop and then start again under certain conditions but that has to do with other things not jdbc me neither ctrl c will kill it though also it would be nice to be able to load a different test plan without having to close down and re start i know that you are actively working on this stuff so this is just a comment the drag n drop stuff is pretty cool can you be more specific about your problem by adding debug statements i was able to see that the user parameters were not getting to the db connection manager the problem seemed to be that these values were not getting set in the jdbc sampler i thought that something like the following might be the problem diff u jdbc sampler java jdbc sampler java wip jdbc sampler java tue may 28 14 20 03 2002 jdbc sampler java wip thu may 23 15 26 07 2002 100 8 100 9 public void add custom test element test element element system out println jdbc sampler element element if element instanceof sql config element instanceof pool config element instanceof db config element instanceof db config element instanceof config test element this merge in element i tried an ftp test plan which also had problems with the user parameters here s a partial stack trace the test plan is attached martin living j meter jakarta jmeter bin jmeter log4j error no appenders could be found for category org apache jmeter util class finder log4j error please initialize the log4j system properly running the test found 1 threadgroups notifying test listeners 3 no such file or directory number of threads 1 starting a thread tree list org apache jmeter threads thread group d9e279 thread thread group1 started something unusual has occured to cause the driver to fail please report this exception exception java sql sql exception no postgres username specified in startup packet stack trace java sql sql exception no postgres username specified in startup packet at org postgresql connection open connection connection java 170 at org postgresql driver connect driver java 122 at java sql driver manager get connection driver manager java 512 at java sql driver manager get connection driver manager java 171 at org apache jmeter protocol jdbc util db connection manager setup db connection manager java 152 at org apache jmeter protocol jdbc util db connection manager get key db connection manager java 124 at org apache jmeter protocol jdbc sampler jdbc sampler get key jdbc sampler java 263 at org apache jmeter protocol jdbc sampler jdbc sampler sample jdbc sampler java 149 at org apache jmeter threads j meter thread run j meter thread java 114 at java lang thread run thread java 536 end of stack trace at org postgresql driver connect driver java 131 at java sql driver manager get connection driver manager java 512 at java sql driver manager get connection driver manager java 171 at org apache jmeter protocol jdbc util db connection manager setup db connection manager java 152 at org apache jmeter protocol jdbc util db connection manager get key db connection manager java 124 at org apache jmeter protocol jdbc sampler jdbc sampler get key jdbc sampler java 263 at org apache jmeter protocol jdbc sampler jdbc sampler sample jdbc sampler java 149 at org apache jmeter threads j meter thread run j meter thread java 114 at java lang thread run thread java 536 connection object e something unusual has occured to cause the driver to fail please report this exception exception java sql sql exception no postgres username specified in startup packet dbconnectionmanager jdbcsampler jdbcsampler jdbcsampler java_wip jdbcsampler jdbcsampler java_wip addcustomtestelement testelement jdbcsampler sqlconfig poolconfig dbconfig dbconfig configtestelement mergein jmeter classfinder threadgroup sqlexception sqlexception openconnection drivermanager getconnection drivermanager drivermanager getconnection drivermanager dbconnectionmanager dbconnectionmanager dbconnectionmanager getkey dbconnectionmanager jdbcsampler getkey jdbcsampler jdbcsampler jdbcsampler jmeterthread jmeterthread drivermanager getconnection drivermanager drivermanager getconnection drivermanager dbconnectionmanager dbconnectionmanager dbconnectionmanager getkey dbconnectionmanager jdbcsampler getkey jdbcsampler jdbcsampler jdbcsampler jmeterthread jmeterthread connectionobject sqlexception 403:the change is simple but i question the value of removing it altogether my preference is to err on the side of flexible in this case since entering the proxy is a minor inconvience in my mind from past experience in previous jobs vpn access sometimes use proxies and explicitly block access and are very restrictive i never used the vpn myself but my co workers used it frequently with lots of complaints in a situation like that always using the proxy would prevent users from setting one sampler to use proxy and one without for example when my coworkers logged into the vpn they still had unlimited access to the internet through their broadband to the internet in this particular case there were proxies between vpn and the stagging network some of the applications use external webservices if my coworkers wanted to quickly verify the third party webservice is working correctly and test a webservice in the stagging environment it wouldn t work i cc ed this dicussion to jmeter dev also i ll see what the other developers think for now i m inclined to keep the proxy fields as is and require users enter the host and port i hope it s not too inconvienant requiring host and port entry peter lin peter reid pete telecom co nz wrote i can t answer the question will you change the sampler to just pick up the command line argument do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus 413:this email is autogenerated from the output from http cvs apache org builds gump 2003 02 24 jakarta jmeter html buildfile build xml assume libs present clean check libs ssl message iaik message echo classes for iaik i sa si lk not found in classpath mail message report missing libs init compile jorphan mkdir created dir home rubys jakarta jakarta jmeter build jorphan javac compiling 20 source files to home rubys jakarta jakarta jmeter build jorphan compile core mkdir created dir home rubys jakarta jakarta jmeter build core javac compiling 165 source files to home rubys jakarta jakarta jmeter build core javac note some input files use or override a deprecated api javac note recompile with deprecation for details compile components mkdir created dir home rubys jakarta jakarta jmeter build components javac compiling 57 source files to home rubys jakarta jakarta jmeter build components compile functions mkdir created dir home rubys jakarta jakarta jmeter build functions javac compiling 7 source files to home rubys jakarta jakarta jmeter build functions javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 12 package org mozilla javascript does not exist javac import org mozilla javascript context javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 13 package org mozilla javascript does not exist javac import org mozilla javascript java script exception javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 14 package org mozilla javascript does not exist javac import org mozilla javascript scriptable javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 50 cannot resolve symbol javac symbol class context javac location class org apache jmeter functions java script javac context cx context enter javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 50 cannot resolve symbol javac symbol variable context javac location class org apache jmeter functions java script javac context cx context enter javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 53 cannot resolve symbol javac symbol class scriptable javac location class org apache jmeter functions java script javac scriptable scope cx init standard objects null javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 56 cannot resolve symbol javac symbol variable context javac location class org apache jmeter functions java script javac result str context to string result javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 60 cannot resolve symbol javac symbol class java script exception javac location class org apache jmeter functions java script javac catch java script exception e javac javac home rubys jakarta jakarta jmeter src functions org apache jmeter functions java script java 63 cannot resolve symbol javac symbol variable context javac location class org apache jmeter functions java script javac context exit javac javac note home rubys jakarta jakarta jmeter src functions org apache jmeter functions regex function java uses or overrides a deprecated api javac note recompile with deprecation for details javac 9 errors build failed file home rubys jakarta jakarta jmeter build xml 189 compile failed see thecompiler error output for details total time 13 seconds isasilk javascript javascript javascriptexception javascript javascript javascript javascript javascript javascript javascript initstandardobjects javascript javascript resultstr tostring javascript javascriptexception javascript javascriptexception javascript javascript regexfunction 419:3 if we use lazy instantiation for these fields should the corresponding get methods return null if the fields haven t been set or should they return an empty list set i would prefer null but the calling code has to be able to handle this i can make sure that any calling code in j meter will handle this properly but this change could break any user written code that might rely on getting back a non null reference so maybe it would be better to return an empty list set for now and then next time we have a significant api change we can make this change as well i m for null user written code shouldn t be a concern here we re on a major development phase now if it s user written it can be user fixed too can t it if you introduce new bugs well we ll fix them could be a good idea to do a quick review of all code calling those methods and ascertain how it will behave 4 today s sample result isn t thread safe so i assume my new modifications don t have to be thread safe either i haven t studied the code enough to determine whether or not j meter allows sample result to be accessed concurrently by more than one thread sample results are designed to be created and populated by one single thread once this has happened other threads may access them but read only so it shouldn t be a problem my lazy instantiation code will probably be less thread safe than the existing code so it could possibly break something that works today i can make it thread safe if it needs to be but i won t add the extra overhead if it s not necessary go for it performance and heap memory usage is one of the big problems of j meter now so any step we take to improve that is very welcome a related issue is all that cloning of test elements that s happening behind the scenes i ve not yet had time to actually measure but i have a feeling that it is tremendously expensive not the cloning itself but cleaning up all the garbage afterwards anyone got figures salut jordi jmeter sampleresult jmeter sampleresult sampleresults jmeter 449:please send the code out way even better as an attachment to an enhancement request in bugzilla i ll make sure to review and commit it salut jordi en na dolf smits ha escrit hi all as promised also my setup forr an foreach controller give it some input variable which consists of several variables each extended with a number eg input vaibale searchlink you need to have defined searchlink 1 searchlink 2 etc it will se these values successive and place them in the output variable i made the patch from the level core org apache jmeter control so the following keys need to be added to the messages properties as well foreach controller title for each controller foreach input name of input variable foreach return name of return variable hope people are interested and someone will commit i will provide detailed usermanual in that case greetings dolf smits searchlink_1 searchlink_2 foreach_controller_title foreach foreach_input foreach_return 459:on wed 2007 07 11 at 11 40 0100 sebb wrote what is the recommended way of building test cases and testing the source distribution see above thanks for taking the time to look at this sorry it did not run smoothly my apologies it was a classic rtfm case anyways things look better but i am still getting 3 test failures java there were 3 failures java 1 bsh1 org apache jmeter functions package test junit framework assertion failed error bean shell not present java at org apache jmeter functions package test bsh1 package test java 221 java at sun reflect native method accessor impl invoke0 native method java at sun reflect native method accessor impl invoke native method accessor impl java 39 java at sun reflect delegating method accessor impl invoke delegating method accessor impl java 25 java at org apache jorphan test all tests main all tests java 214 java 2 testsendpostdata fileasbody org apache jmeter protocol http sampler post writer test junit framework assertion failed error all bytes were equal java at org apache jmeter protocol http sampler post writer test check arrays have different content post writer test java 836 java at org apache jmeter protocol http sampler post writer test testsendpostdata fileasbody post writer test java 203 java at sun reflect native method accessor impl invoke0 native method java at sun reflect native method accessor impl invoke native method accessor impl java 39 java at sun reflect delegating method accessor impl invoke delegating method accessor impl java 25 java at org apache jorphan test all tests main all tests java 214 java 3 test timerbsh org apache jmeter timers package test junit framework assertion failed error expected 60 but was 0 java at org apache jmeter timers package test test timerbsh package test java 47 java at sun reflect native method accessor impl invoke0 native method java at sun reflect native method accessor impl invoke native method accessor impl java 39 java at sun reflect delegating method accessor impl invoke delegating method accessor impl java 25 java at org apache jorphan test all tests main all tests java 214 java failures java tests run 1286 failures 3 errors 0 oleg oleg 1 the release candidate looks ok proceed with releasing it 1 there is a problem please indicate what it is there have been quite a few major updates since 2 2 so i think it would be prudent to release 2 3 initially as a release candidate a full release can follow in a month or so sebb at apache dot org packagetest assertionfailederror beanshell packagetest packagetest nativemethodaccessorimpl nativemethodaccessorimpl nativemethodaccessorimpl delegatingmethodaccessorimpl delegatingmethodaccessorimpl alltests alltests testsendpostdata_fileasbody postwritertest assertionfailederror postwritertest checkarrayshavedifferentcontent postwritertest postwritertest testsendpostdata_fileasbody postwritertest nativemethodaccessorimpl nativemethodaccessorimpl nativemethodaccessorimpl delegatingmethodaccessorimpl delegatingmethodaccessorimpl alltests alltests testtimerbsh packagetest assertionfailederror packagetest testtimerbsh packagetest nativemethodaccessorimpl nativemethodaccessorimpl nativemethodaccessorimpl delegatingmethodaccessorimpl delegatingmethodaccessorimpl alltests alltests 469:i had a quick need to integrate jmeter with a database for persistence purposes i used hibernate and a slightly modified version of the sample result as the persistence class i also created persistence classes for storing the testplan and runlog combinations i noticed in the jmeter propteries there is an option for db output but it does not appear to be implemented is anyone working on this is there interest in using the hibernate solution i have implemented thanks mike sampleresult 533:i ve been steadily working on the reporting component the last few days i was thinking of making an interface named report writer and have an abstract base implementation like the rest of jmeter public interface report writer public abstract class abstract report writer some other random thoughts about writing reports 1 is it desirable to have the report writers use external header footer files if so what the preferred embodiment 2 i was thinking html reports should support the ability to use a server side include like shtml what do people think 3 the kind of report designers i was thinking of would provide to basic format at the start csv and html 4 a report could have multiple summary tables and charts for example say i want one chart of all the max min average times and a second table for error rate req sec and kb sec peter lin reportwriter reportwriter abstractreportwriter reportwriters 619:can jmeter make a transaction is it posible to make many transaction do you yahoo tired of spam yahoo mail has the best spam protection around http mail yahoo com 622:i tried just now and it was ok could always add the tutorial as a local attachment s on tue 14 dec 2004 09 12 13 0500 peter lin wool gmail com wrote i tried to add a the tutorial to the wiki last night and this morning but it looks like web cvs is down i was going to link from wiki to web cvs for the tutorial can other s access web cvs peter 636:on 26 02 2009 kennyld kld3 earthlink net wrote it s totally bogus i ve got it at the top of the thread group and have tried all possible defaults default compatibility etc it s http not https it will not forward the jsessionid period no sendy nyit nine no way ain t happening am i missing something obvious which version of j meter can you see the set cookie headers in the tree view listener do the cookie paths agree with the subsequent requests are any cookies being sent what if you add a manual cookie to the manager are you using redirect automatically if so some cookies may not be seen view this message in context http www nabble com cookie manager does not work tp22235082p22235082 html sent from the j meter dev mailing list archive at nabble com to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org jmeter jmeter 652:hi peter thanks for all your inputs sorry man the commerceone document i included in the message below isn t soap or even xml at all it s an older mime lookalike type of format used by most commerce one marketsites i didn t mean to imply that the webservices sampler or the soap xml rpc samplers should be able to handle that document they shouldn t i was pointing out that no current j meter sampler could post that document and an enhancement to the regular http sampler would enable that document and any other document to be posted by the regular http sampler with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent wednesday 14 january 2004 2 14 pm to j meter developers list subject re suggestion for enhancing http request sampler i took a quick look at commerce one docsoap sample if the soap service you re trying to test is similar to the examples in commerce one docsoap then it probably isn t going to work for one thing commerce one uses env envelope the sample they provide is this env envelope env header manifest xmlns rrn org soapextensions schemas highperformancesoap manifest v1 0 ma nifest x sd xmlns xsi http www w3 org 2001 xml schema instance xmlns c1man rrn org soapextensions schemas highperformancesoap manifest v 1 0 mani fest xsd root reference f2dc4b1a 787f 1000 a558 0a0a02770001 actor publicid com commerceone web service mustunderstand 1 reference id f2dc4b1a 787f 1000 a558 0a0a02770001 part name order location c1man href envelope body order container body part info doc id publicid org xcbl schemas xcbl35 order content type text xml xml info doc schema publiccid org xcbl schemas xcbl35 order xsd doc schema schema language http www w3c org 2001 xml schema schema language prolog cdata xml version 1 0 prolog xml info part description xml lang us en order 35 sample part description part info reference manifest env header env body env body env envelope i ve never tried using a message like this but apache soap probably isn t going to work with it their approach looks similar to some of the webservices examples in the java web services development pack jwsdp i m going to guess that to get it to work the sampler would have to use the standard jwsdp tools keep in mind there s a wide variety of soap services and many of them are not compatible in fact webservices built with net jwsdp and ibm webservices take lots of work to get them to work together in any case if you provide more information i can help you figure out what is wrong peter lin sonam chauhan sona ce com au wrote thanks peter i just tried the soap sampler with that document but the receiving server spits out an error possibly because of incorrect http header used by soap sampler the document isn t really xml unfortunately i can t find out exactly what s wrong since view results tree only shows http response headers does anyone know offhand of a j meter debug level that dumps http request headers to jmeter log i tried jmeter ljmeter debug but it only dumps the request body not the request headers it would be better if the http sampler added the facility to submit the contents of a textbox or a file in combination with the http header manager any kind of http post would be possible including the document below a commerce one envelope with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 10 10 pm to j meter developers list subject re suggestion for enhancing http request sampler the webservice sampler uses apache soap the soap api requires the message meet soap requirements the soap xml rpc may be able to handle it peter sonam chauhan sona ce com au wrote hi guys the main reason i suggested enhancing the http sampler instead was so it can post complex documents like the one below it is not a xml document and the content type is not text xml correct me if i am wrong but i think none of the current samplers http soap and webservices samplers can post this document message id 3296 devsvr2 in ce com au date tue 13 jan 2004 13 50 47 1100 gmt 11 00 mime version 1 0 content type multipart related boundary part 187 175861948 1073962247153 content id c5732f42 78e6 1000 93a0 ac1001760001 x date sent 13 jan 2004 13 50 47 gmt 11 00 reference id x document type error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type error ns urn x error error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type catalog doctype peter thanks the dec 29 cvs didn t have the webservices sampler but the 1 9 1 stable release has an alpha version of your webservices sampler with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 2 29 pm to j meter developers list subject re suggestion for enhancing http request sampler hi sonam please take a look at the webservices sampler it uses apache soap driver it can read xml envelope from text area a file or randomly select files from a directory it s been tested with net webservices peter sonam chauhan sona ce com au wrote well i may be missing something so do correct me however if all that soap sampler does is 1 set content type text xml 2 post contents of it s textbox with no parameters it would be better to bundle that functionality into the http sampler because a the http sampler is more mature as you said b it has more functionality for e g redirects keep alives though i don t know if these are applicable to xml pos ts the other point i had was certain http pos ts are impossible both with the http sampler and the soap sampler for e g the multipart mime http posts like the one commerce one envelope i mentioned below if the http sampler could load the actual body of the post from a textbox or a file then in combination with the http header manager it could do anything with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from jordi salvat i alabart mailto jsal atg com sent tuesday 13 january 2004 10 49 am to j meter developers list subject re suggestion for enhancing http request sampler why can t we keep this function with the soap message truncated do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus commerceone jmeter jmeter commerceone commerceone commerceone v1_0 xmlschema 1_0 rootreference webservice partname partinfo docid contenttype xmlinfo docschema docschema schemalanguage xmlschema schemalanguage xmlinfo partdescription partdescription partinfo webservices jmeter commerceone jmeter part_187_175861948 referenceid _part_187_175861948 _part_187_175861948 jmeter posts posts commerceone jmeter 679:on wed 2005 07 27 at 20 19 0200 sergei riaguzov wrote on 7 27 05 michael stover msto apache org wrote it s been around for a while i would say it s probably time to start using the http sampler2 in production settings but is it stable what does it lack to stop being alpha version it lacks someone making an executive decision to change the name if you don t use a listener that stores the response the response will be discarded pretty quick i ve looked quickly into the code and it seems that http sample result or some similar class i don t remember the name right now object which is saved in j meter thread is then given as a parameter to notify listeners and some other methods i also found out that there is always a previous http sample result saved in thread context why all the response body is taken by http method get response body and then given as a parameter to http sample result set response data as an array of bytes in size assertion the size of the data is checked as this array length and it appears that this bunch of data in http sample result this array of bytes with response may be providing to memory usage when there are about 1000 thread downloading a page of 50 kb simultaniously for example do you think that changing it a little may improve memory usage maybe it would make sense to remove all the links to this data as soon as possible if there s no need in regular expressions checking and listeners like that throwing away data or never downloading it would surely save on memory but that data is very often used either to check it against assertions or to parse information from it for the next sample also actually downloading every byte is an important part of the process in terms of performance testing 1000 threads is probably beyond the reach of most client machines mike j meter does not do ip spoofing thanx for the answer httpsampler2 httpsampleresult jmeterthread notifylisteners httpsampleresult threadcontext responsebody httpmethod getresponsebody httpsampleresult setresponsedata sizeassertion httpsampleresult jmeter 682:okay i figured it out linked list is not serialized and with multiple threads writing to the queue concurrently it takes next to no time for the internal linked list to become unstable i resolved this by replacing it with a vector which is serialized this may cause some internal bottlenecks but these can easily be circumvented by adding multiple thread groups with few threads i ll follow up if i see any significant problems with this modification original message from jamie davidson mailto jami bridgewatersystems com sent may 24 2001 4 46 pm to jmet jakarta apache org subject thread group sample queue woes i think that i have figured out the out of memory errors that i have been recently enjoying with j meter 1 6alpha on solaris 2 7 with java 1 3 apparently the linked list class has a flaw in it or perhaps my knowledge of the linked list is lacking as i said i am a relative newbie in this development area seems that when the sample is done the size of the queue is big i would have expected it to be zero or close to zero some further investigation turned up the following it appears that the linked list can get into a state where it throw a no such element exception when remove first is called even when the list is not empty to test this i changed the sample queue class a bit private class sample queue extends thread private linked list occurredq new linked list public sample queue debug println sample queue created public synchronized void sample occurred sample event e occurredq add last e this notify public long size return occurredq size public void run debug println event queue has started running debug min priority sample event event null long sample 1 long iteration 1 long exception 1 while true if iteration 1000 0 debug println processing iteration iteration of the event queue debug min priority get the first available item in the queue try event sample event occurredq remove first if sample 1000 0 debug println samples processed sample debug min priority catch no such element exception nseex if occurredq is empty debug println no such element exception thrown when queue not empty queue size occurredq size debug min priority if exception 1000 0 debug println exception exception has occurred debug min priority nseex print stack trace wait for samples continue catch exception ex ex print stack trace exception continue try if event null iterator iter listeners iterator while iter has next sample listener iter next sample occurred event iter remote listeners iterator while iter has next try remote sample listener iter next sample occurred event catch exception ex ex print stack trace else wait for samples catch throwable ex ex print stack trace this yield private synchronized void wait for samples try this wait catch exception ex ex print stack trace note that the i found that a few samples would be taken and then i would start to get a stream of no such element exception thrown when queue is not empty queue size 516 once this occurs the items in the queue are never retrieved and the queue continues to grow even with a 1 gb heap it does not take long before we run out of system resources at 900 sample events per second i am doing the majority of my work on a sun enterprise 420r with 4 450m hz cp us and 2 gb ram perhaps these issues are not as visible on machines with smaller horsepower can anyone please either a clear up any misconceptions that i may have regarding the use of the java linked list or b please suggest an alternate solution to the use of the linked list in this implementation thanks in advance jamie jamie davidson product verification specialist bridgewater systems corporation 555 legget drive suite 800 tower a kanata ontario k2k 2x3 phone 613 591 6655 fax 613 591 6656 linkedlist threadgroup samplequeue jmeter linkedlist thelinkedlist linkedlist nosuchelementexception removefirst samplequeue samplequeue linkedlist linkedlist samplequeue samplequeue sampleoccurred sampleevent addlast min_priority sampleevent min_priority sampleevent removefirst min_priority nosuchelementexception isempty nosuchelementexception min_priority min_priority printstacktrace waitforsamples printstacktrace hasnext samplelistener sampleoccurred remotelisteners hasnext remotesamplelistener sampleoccurred printstacktrace waitforsamples printstacktrace waitforsamples printstacktrace nosuchelementexception sampleevents 450mhz cpus linkedlist linkedlist 690:on 27 04 2009 sebb seb gmail com wrote on 27 04 2009 roge lhsystems com roge lhsystems com wrote many thanks for your answer i will describe our problem in another way our jmeter script has a general timeout of 10 minutes and we call the jmeterscript by nagios the jmeter script makes some http request and some sq lrequests when everything runs fine nagios will show the results when a http request hangs because there is no answers from the server ourjmeter script timed out and there will be no information of each check fornagios only the information that the script timed out but we need theinformation for the checks so we would like to implement a timeout to each request inside the jmeterscript for example the normal duration for an http request would be between 3and 10 sec so we will set the timeout to 30 sec if a timeout occurs the jmeterscript should write an error timeout message into the jtl file jmeter ltest jtl that will be read by nagios is this possible or must this be implemented into jmeter by our self we will try to implement it and give it to the community to have it in everynew version i have just added some code to j meter that allows samplers including http to be interrupted when using the menu stop command this allows an entire test plan to be stopped abruptly e g by adding a parallel thread group with a test action sampler if you want to try this it is in the current nightly code it would certainly be useful to add individual timeouts to samplers this should be fairly easy for some samplers but others may be harder to implement if you do have some suggested fixes please provide them as bugzilla patches thanks note that the j meter property httpclient timeout works with the http client sampler and soap xml rpc i have not tested connection timeout but it should work just enable httpclient parameters and add http connection timeout integer nnnn to it you can define the socket timeout there as well instead of using httpclient timeout i ve not looked into whether it is possible to apply timeouts to jdbc statements j meter already supports connection timeout via the jdbc config element kind regards and thanks for an answer roger steen sitz der gesellschaft corporate headquarters lufthansa systems business solutions gmbh raunheim registereintragung registration amtsgericht darmstadt 83850 geschaeftsfuehrung management board bernd appel urspr ngliche nachricht von sebb mailto seb gmail com gesendet donnerstag 23 april 2009 16 38 an j meter developers list betreff re timeout problems for http soapxml and sql requests on 23 04 2009 roge lhsystems com roge lhsystems com wrote we are using jmeter 2 3 1 for application testing current version is 2 3 2 for testing http request we need to set a timeout for example 20 sec in the file jmeter properties we found set the socket timeout or use the parameter http socket timeout httpclient timeout 0 0 no timeout we have set httpclient timeout 2 or to 10 but we got no timeout which http sampler are you using the above settings only apply to the http client one in the j meter api we found set timeout string http jakarta apache org jmeter api org apache jmeter protocol http sa mpler web service sampler html set timeout 28java lang string 29 method in class org apache jmeter protocol http sampler web service sampler http jakarta apache org jmeter api org apache jmeter protocol http sa mpler web service sampler html is it possible to set a timeout for a http sql and soap request in the gui and in the jmx file we didn t found any entry is there any timeout control under development not at present or is there any other way to implement set a specific timeout for a request i don t think so feel free to open a bugzilla enhancement request with details of what you want thanks for help roger steen sitz der gesellschaft corporate headquarters lufthansa systems business solutions gmbh raunheim registereintragung registration amtsgericht darmstadt 83850 geschaeftsfuehrung management board bernd appel to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org sqlrequests jmeter jmeter httpclient jmeter businesssolutions amtsgerichtdarmstadt jmeter httpclient jmeter settimeout webservicesampler settimeout webservicesampler webservicesampler businesssolutions amtsgerichtdarmstadt 785:thanks very much but please could i ask you to re submit the patches via bugzilla it s much easier to keep track of things that way once you have created the bugzilla issue you can re open it and attach the patches to it thanks s on 08 03 06 sumit shah sha yahoo inc com wrote dear j meter developers i have two patches that i would like to submit that gives you the options of sending a soap action header from the soap xml rpc request sampler i realize that you can send this header using the http header manager config element however this should make it easier to send it from one screen there are two patches to enable this functionality one patch is for soap sampler java and the other is for soap sampler gui java please use as you see fit also i have attached one more patch this is to http sampler java in our own usage sometimes the call to conn get response code woiuld return 1 for no apparent reason when in fact the response code was 200 we could not pin down the source of this problem and had to hadd the following lines to parse the http response message and use that as the response code if error level 1 try int code integer parse int res get response message substring 0 3 res set response code integer to string code res set successful 200 code code 399 catch exception e res set successful false obviously this is a hack but i m sending this out in case anyone else runs across this and wants to see how we worked around it thanks sumit jmeter soapaction soapsampler soapsamplergui httpsampler getresponsecode responsecode errorlevel parseint getresponsemessage setresponsecode tostring setsuccessful setsuccessful 827:yeah this could be improved i ve pretty much switched to using user defined variables for all my universal values as that s so much simpler i think however that wouldn t be useful for the http https switch unless that field was made into a text field which wouldn t be very nice mike on 2 aug 2002 at 2 41 jordi salvat i alabart wrote hi i was thinking about creating an enhancement request for this but maybe it s worth discussing first http request defaults currently has the following properties which aren t actually used anywhere protocol http or https method get or post path actuall it can be used but it s pretty useless follow redirects use keep alive it would be very convenient to be able to use the default value for the protocol in this way you could create and test a script on http which is easier to intercept by a proxy etc and then easily switch it to https one way would be to convert this field into a select menu offering options http and https on the configuration element plus a third option use default on the http samplers the method is something which is specific to each request doesn t make much sense to define a default for it i d rather remove it from the http request defaults element the path would be very easy to make useful actually there was a request for this a few days ago in the user s list just prepend it to any http sampler path that doesn t start with a slash i have my doubts on follow redirects i guess it s pretty much like method not worth defining a default for it opinions what about use keep alive would it be useful to be able to define a default for it so that you can switch it on and off for the whole script in a single shot salut jordi michael stover msto apache org yahoo im mstover ya icq 152975688 keepalive httpsampler keepalive mstover_ya 839:the correct way is private static logger log logging manager get logger for class note that in org apache jmeter testelement property i did make the logger in abstract property a protected element and it was a mistake to do so it should be changed but then all the property classes would need these lines added to them gosh aspects would be nice for this if only i dared use them mike on 18 aug 2003 at 19 45 jeremy arnold wrote hello i mostly stayed on the side lines a little while back when some of you guys were making changes to the logging system so now i d like to check what is the correct way to define a logger my guess is private static logger log logging manager get logger for class am i close do we still use hierarchy get default hierarchy get loger for xxx in some places jeremy http xirr com jeremy a michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 loggingmanager getloggerforclass abstractproperty loggingmanager getloggerforclass getdefaulthierarchy getlogerfor jeremy_a mstover_ya 842:this email is autogenerated from the output from http cvs apache org builds gump 2003 05 01 jakarta jmeter html build results exceed maximum length please see url above for details last 50 lines of build output follows javadoc this sentence is different from what would be generated using breakiterator javadoc javadoc home rubys jakarta jakarta jmeter src protocol jdbc org apache jmeter protocol jdbc control gui jdbc test sample gui java 78 warning created is an unknown tag javadoc home rubys jakarta jakarta jmeter src protocol jdbc org apache jmeter protocol jdbc control gui jdbc test sample gui java 89 warning the first sentence is interpreted to be javadoc generating home rubys jakarta jakarta jmeter docs api org apache jmeter protocol jdbc control gui jdbc test sample gui html javadoc to do constructor description javadoc this sentence is different from what would be generated using breakiterator javadoc javadoc home rubys jakarta jakarta jmeter src protocol jdbc org apache jmeter protocol jdbc sampler jdbc sampler java 83 warning created is an unknown tag javadoc home rubys jakarta jakarta jmeter src protocol java org apache jmeter protocol java config java config java 78 warning created is an unknown tag javadoc generating home rubys jakarta jakarta jmeter docs api stylesheet css javadoc 1166 warnings all docs test java setting up logging props using file jmeter properties java initializing properties jmeter properties java setting j meter home home rubys jakarta jakarta jmeter bin java f f java java time 29 303 java there were 2 failures java 1 test processing org apache jmeter control interleave control test junit framework assertion failed error expected 14 but was 2 java at org apache jmeter control interleave control test test processing interleave control java 259 java at sun reflect native method accessor impl invoke0 native method java at sun reflect native method accessor impl invoke native method accessor impl java 39 java at sun reflect delegating method accessor impl invoke delegating method accessor impl java 25 java at org apache jorphan test all tests main all tests java 157 java 2 test processing org apache jmeter control once only controller test junit framework assertion failed error expected 15 but was 3 java at org apache jmeter control once only controller test test processing once only controller java 123 java at sun reflect native method accessor impl invoke0 native method java at sun reflect native method accessor impl invoke native method accessor impl java 39 java at sun reflect delegating method accessor impl invoke delegating method accessor impl java 25 java at org apache jorphan test all tests main all tests java 157 java failures java tests run 76 failures 2 errors 0 dist mkdir created dir home rubys jakarta jakarta jmeter dist tar building tar home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 tar gzip building home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 tgz zip building zip home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 zip tar building tar home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 javadoc tar gzip building home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 javadoc tgz zip building zip home rubys jakarta jakarta jmeter dist jakarta jmeter 20030501 javadoc zip build successful total time 1 minute 49 seconds jdbctestsamplegui jdbctestsamplegui jdbctestsamplegui todo jdbcsampler javaconfig jmeter testprocessing interleavecontrol assertionfailederror interleavecontrol testprocessing interleavecontrol nativemethodaccessorimpl nativemethodaccessorimpl nativemethodaccessorimpl delegatingmethodaccessorimpl delegatingmethodaccessorimpl alltests alltests testprocessing onceonlycontroller assertionfailederror onceonlycontroller testprocessing onceonlycontroller nativemethodaccessorimpl nativemethodaccessorimpl nativemethodaccessorimpl delegatingmethodaccessorimpl delegatingmethodaccessorimpl alltests alltests 886:on tue 21 dec 2004 15 43 02 0500 peter lin wool gmail com wrote forwarded message from anil philip anil openwave com date tue 21 dec 2004 14 41 23 0600 subject how to use j meter to test a corba server to peter lin wool gmail com jmet jakarta apache org peter can you please post this for me in the jmeter dev list i tried to subscribe to it but have not gotten any reply from the list daemon perhaps try again hello i am trying to use j meter to test a corba server i am wondering whether to use a sampler or java request or test bean or some other as the corba client samplers do the work of a test results are returned as test samples which can then be checked using assertions or displayed or saved using listeners a java request is one example of a sampler however it doesn t communicate externally it just creates a sample from the data in the gui some samplers that communicate externally are http request ftp request access log tcp etc the actual input data values should be read from property files methods to be executed should be selected from the gui the documentation is not clear and these terms are unfamiliar eg logic controller sampler i have read some of the articles and parts of the manual see above it should become clearer when you have read all the manual and the wiki and tried some of the examples the orb i am using is the one bundled with the sun jdk i can write the corba client and know some swing and java a what approach is recommended you could start by writing a simple standalone client program that sends a message to the corba server and prints out some of the response no need for swing here just java this could then be turned into a bean shell script which would integrate the code into j meter there would be no need to write any swing code as the bsh sampler gui already exists or you could write your own sampler b can anyone give their input as to how to go about the approach recommended in a there are some example bean shell scripts in the extras directory i think the simplest sampler to start from is probably the tcp sampler just copy the tcp sampler java and tcp sampler gui java files to new names and implement the sample method by plugging in your client code you don t need the tcp client impl java files they are a way of decoupling the sampler from the tcp implementation thanks anil jmeter jmeter javarequest testbean javarequest beanshell jmeter beanshell tcpsampler tcpsamplergui tcpclient 905:users there is a new unstable release 1 7 2 it seems pretty solid so far and i have more confidence in it at this point than the previous production release 1 7 developers power users i ve made a first pass at the gui elements related to the new functions there is a brief doc page about functions only in cvs not on website user defined variables can be created in the test plan gui element and a dialog can assist you in generating the correct syntax for your function calls the dialog is available from the options menu currently there is only one function implemented but it s an interesting one creating new functions should be easy and fun hint hint you don t need to write any gui code just follow the directions in the java docs for the org apache jmeter functions function interface also org apache jmeter functions abstract function which you may wantto extend michael stover msto apache org yahoo im mstover ya icq 152975688 testplan javadocs abstractfunction mstover_ya 924:on 29 06 2009 milamber mila gmail com wrote hello i have not found a way automatically discover results renderers java doesn t made this j meter has a class finder which it uses for finding things such as functions thus i have added a new parameter in jmeter properties results render list to get a list of renders to instantiate i hope it is the best way this will do fine for now i can replace it with the class finder later now i will pass to separate the standard result view tree right side in 5 renderer text html only html with resources xml json in attachment new draft s patch thanks for your comments please could you add the patches to a bugzilla enhancement request it s easier to keep track of them that way for brand new source files just add the file patches should be in unified diff format milamber le 27 06 2009 13 54 milamber a ecrit hello now renderes can have own i18n resources for against i have left resources messages of standard elements html json xml in the main messages properties i also propose a new package named display some explanation here and a new draft patch http www milamberspace net jmeter display new view results tree draft html thank you for your comments milamber le 27 06 2009 07 50 milamber a ecrit hello thanks for your comments they is good ideas the development of this new features is on a good way i have created a new listener view results base to manage the left pane results tree and call methods to control the display of right pane i m using a interface that be implement by results viewer if you want see you find a draft patch in attachment now i have some works find a way to have a specific messages properties i18n for a render i will work that today but if you have some advices they are welcome find a way to automatically discover all renderers which implements the interface results render perhaps i need some help separating for html html with dr xml json i thought too add a document stats render to have some statistics of data response like number s characters number s spaces md5 hash sha1 hash milamber le 27 06 2009 00 49 sebb a ecrit on 20 06 2009 milamber mila gmail com wrote hello here some screen captures to view my proposal design to have a listener view full results extensible http www milamberspace net regexp tester view results tree proposal design html if you want you are invited to give your comments looks very neat i think a drop down is what is wanted here however it might be clearer if the drop down was used instead of the text html xml json checkboxes so the list would be text html xml json amf3 regex tester perhaps the download embedded resources option should be another entry i e text html html with embedded resources xml the option only applies to html anyway milamber le 16 06 2009 00 23 milamber a ecrit le 16 06 2009 00 11 sebb a ecrit on 15 06 2009 milamber mila gmail com wrote thanks for your response thus there are two ways if i correctly understand 1 modify view results full visualizer for find specific classes in classpath like menu generator in j meter to add one or more panes in this listener yes that s what i meant j meter already has utils for finding classes 2 or create a new visulizer with capitalization on view results full visualizer some copy paste and add a new action result to test regexp or amf visualizer yes that s another possibility some questions to find the best way in 2 the new visualizer regexp show tree results left and only the regexp tester right no necessary to have the 2 first tabs sample result and request yes you can add just output you want no need to add tabs that aren t used in 1 possibly better way to split the view results full visualizer in two classes one are base left tree and sample result and the second is the two others pane in my opinion 1 is more sexy way more flexible one unique listener to helper creating script potentially several render tester in future but with lots of new tabs it could become a bit awkward might need to find a better method of organising the display 2 is more simple to do which way i beginning i don t think there is a best way both have advantages and both have disadvantages but i prefer option 1 ok i try to do option 1 in first step i will work to find a good improved gui in view results full visualizer for add one or more external visualizer i will propose some screens captures if you get stuck on the dynamic aspects i can probably help with that thank i will send mail if i need help a milamber thanks milamber le 15 06 2009 19 22 sebb a ecrit on 14 06 2009 milamber mila gmail com wrote hello i have developed a small extension to j meter for add a tab in view results tree listener which permit to test a regular expression on response data and view all matches this extension in to help jmeter s user to test their regexp without a running test this requirement because i give some trainings on j meter and students aren t regexp s hackers you can view some screen captures and a add patch in this link http www milamberspace net regexp tester regexp tester introduction html looks to be a very useful extension to make this extension i needed replace some private fields and methods to protected variables and methods in org apache jmeter visualizers view results full visualizer i don t create a new bugzilla because i have some questions it is possible to integrate this extension in main j meter yes potentially need a vote or some process to pass there s no formal process if not it s possible to valide the private protected changes in trunk this changes to permit to extented this listener rapidly i would like too add a amf viewer without integrate in trunk extending the class to add a single extra pane works but is not scalable i think it might be better to enhance view results full visualizer so that it can process external panes the other approach would be to create a new visualizer this might be a better approach for amf some guidance are welcome i can answer questions if need i can create a new buzilla if it s better thanks milamber to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org index bin jmeter properties bin jmeter properties revision 789164 bin jmeter properties working copy 54 6 54 12 xml parser org apache xerces parsers sax parser results render configuration must implements org apache jmeter display interfaces results render results render list org apache jmeter display results results render standard org apache jmeter display results results render text org apache jmeter display results results render regexp org apache jmeter display results results render simple text ssl configuration index src components org apache jmeter display interfaces results render java src components org apache jmeter display interfaces results render java revision 0 src components org apache jmeter display interfaces results render java revision 0 0 0 1 49 licensed to the apache software foundation asf under one or more contributor license agreements see the notice file distributed with this work for additional information regarding copyright ownership the asf licenses this file to you under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license package org apache jmeter display interfaces import javax swing j tabbed pane import org apache jmeter samplers sample result interface to results render public interface results render public void clear data public void init public void setup tab pane public void set right side j tabbed pane right side public void show render public void set sampler result sample result sample public string to string index src jmeter classfinder results_render_list classfinder new_view_results_tree_draft viewresultsbase resultsrender regexp_tester view_results_tree_proposal_design viewresultsfullvisualizer jmeter jmeter viewresultsfullvisualizer viewresultsfullvisualizer viewresultsfullvisualizer jmeter jmeter regexp_tester regexp_tester_introduction viewresultsfullvisualizer jmeter viewresultsfullvisualizer saxparser resultsrender results_render_list resultsrenderstandard resultsrendertext resultsrenderregexp resultsrendersimpletext resultsrender resultsrender resultsrender jtabbedpane sampleresult resultsrender cleardata setuptabpane setrightside jtabbedpane rightside showrender setsamplerresult sampleresult tostring if index length 0 index delete 0 tab length pretty append nl append index append current char i int j i while j json length character is whitespace json char at j j if j json length json char at j pretty append non nls 1 i j 1 misparse false else if value or pair find i value or pair group length 0 pretty append nl append index append value or pair group i value or pair end misparse false else if misparse pretty append nl append parse failed from pretty append current char i misparse true nl n non nls 1 return pretty to string private static class localhtml editor kit extends html editor kit private static final long serial versionuid 3399554318202905392l private static final view factory default factory new localhtml factory public view factory get view factory return default factory private static class localhtml factory extends javax swing text html html editor kit html factory provide dummy implementations to suppress download and display of related resources fram es imag es todo create better dummy displays todo suppress link somehow public view create element elem object o elem get attributes get attribute style constants name attribute if o instanceof html tag html tag kind html tag o if kind html tag frame return new component view elem else if kind html tag img return new component view elem return super create elem a dom tree panel for to display response as tree view author a href mailto d ma mdl com dave maung a todo implement to find any nodes in the tree using tree path private static class dom tree panel extends j panel private static final long serial versionuid 6871690021183779153l private j tree domj tree public dom tree panel org w3c dom document document super new grid layout 1 0 try node first element get first element document default mutable tree node top new xml default mutable tree node first element domj tree new j tree top domj tree get selection model set selection mode tree selection model single tree selection domj tree set shows root handles true j scroll pane domj scroll pane new j scroll pane domj tree domj tree set autoscrolls true this add domj scroll pane tool tip manager shared instance register component domj tree domj tree set cell renderer new dom tree renderer catch sax exception e log warn e skip all dtd nodes all prolog nodes they dont support in tree view we let user to insert them however in dom tree view we dont display it param root return private node get first element node parent node list child nodes parent get child nodes node to return parent must return a valid node or may generate an npe for int i 0 i child nodes get length i node child node child nodes item i to return child node if child node get node type node element node break return to return this class is to view as tooltext this is very useful when the contents has long string and does not fit in the view it will also automatically wrap line for each 100 characters since tool tip support html author a href mailto d ma mdl com dave maung a private static class dom tree renderer extends default tree cell renderer private static final long serial versionuid 240210061375790195l public component get tree cell renderer component j tree tree object value boolean sel boolean expanded boolean leaf int row boolean phas focus super get tree cell renderer component tree value sel expanded leaf row phas focus default mutable tree node value tree node default mutable tree node value set tool tip text gethtml value tree node to string br 100 non nls 1 return this get the html param str param separator param max char return private string gethtml string str string separator int max char string buffer str buf new string buffer html body bgcolor yellow b non nls 1 char chars str to char array for int i 0 i chars length i if i max char 0 i 0 str buf append separator str buf append encode chars i str buf append b body html non nls 1 return str buf to string private string encode char c string to return string value of c switch c case non nls 1 to return lt non nls 1 break case non nls 1 to return gt non nls 1 break case non nls 1 to return apos non nls 1 break case non nls 1 to return quot non nls 1 break return to return protected void show image icon image image label set icon image results scroll pane set viewport view image label private static void show error message dialog string message string title int message type j option pane show message dialog null message title message type public synchronized void set right side j tabbed pane side right side side public synchronized void set sampler result sample result sample sample result sample public string to string todo i18n return standard results index src components org apache jmeter display results results render text java src components org apache jmeter display results results render text java revision 0 src components org apache jmeter display results results render text java revision 0 0 0 1 328 licensed to the apache software foundation asf under one or more contributor license agreements see the notice file distributed with this work for additional information regarding copyright ownership the asf licenses this file to you under the apache license version 2 0 the license you may not use this file except in compliance with the license you may obtain a copy of the license at http www apache org licenses license 2 0 unless required by applicable law or agreed to in writing software distributed under the license is distributed on an as is basis without warranties or conditions of any kind either express or implied see the license for the specific language governing permissions and limitations under the license package org apache jmeter display results import java awt border layout import java awt color import java awt component import java awt event action event import java awt event action listener import java text date format import java text simple date format import java util date import javax swing border factory import javax swing icon import javax swing image icon import javax swing j editor pane import javax swing j label import javax swing j panel import javax swing j scroll pane import javax swing j tabbed pane import javax swing j text area import javax swing j text pane impor currentchar iswhitespace charat charat valueorpair valueorpair valueorpair valueorpair currentchar tostring localhtmleditorkit htmleditorkit serialversionuid viewfactory defaultfactory localhtmlfactory viewfactory getviewfactory defaultfactory localhtmlfactory htmleditorkit htmlfactory frames images getattributes getattribute styleconstants nameattribute componentview componentview treepath domtreepanel jpanel serialversionuid jtree domjtree domtreepanel gridlayout firstelement getfirstelement defaultmutabletreenode xmldefaultmutabletreenode firstelement domjtree jtree domjtree getselectionmodel setselectionmode treeselectionmodel single_tree_selection domjtree setshowsroothandles jscrollpane domjscrollpane jscrollpane domjtree domjtree setautoscrolls domjscrollpane tooltipmanager sharedinstance registercomponent domjtree domjtree setcellrenderer domtreerenderer saxexception domtreeview getfirstelement nodelist childnodes getchildnodes toreturn childnodes getlength childnode childnodes toreturn childnode childnode getnodetype element_node toreturn domtreerenderer defaulttreecellrenderer serialversionuid gettreecellrenderercomponent jtree phasfocus gettreecellrenderercomponent phasfocus defaultmutabletreenode valuetreenode defaultmutabletreenode settooltiptext valuetreenode tostring maxchar maxchar stringbuffer strbuf stringbuffer tochararray maxchar strbuf strbuf strbuf strbuf tostring toreturn valueof toreturn toreturn toreturn toreturn toreturn showimage imagelabel seticon resultsscrollpane setviewportview imagelabel showerrormessagedialog messagetype joptionpane showmessagedialog messagetype setrightside jtabbedpane rightside setsamplerresult sampleresult sampleresult tostring resultsrendertext resultsrendertext resultsrendertext borderlayout actionevent actionlistener dateformat simpledateformat borderfactory imageicon jeditorpane jlabel jpanel jscrollpane jtabbedpane jtextarea jtextpane 961:except i don t yet agree with the last point i think it can be done without requiring that on 29 jan 2003 at 1 26 oliver rossmueller wrote as mentioned in a prior message i would like to discuss potential implementations of this feature in this thread so here is what has to be done from my point of view to get full advantage of this switch load test plans without creating gui components change the way the j meter gui works by not creating gui components but test elements from the add menu by operating on test elements and not gui components adapt all gui components because they have to update the test elements directly instead of using create test element oliver michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 jmeter createtestelement mstover_ya 1009:hello i don t have a strong opinion about this although personally i like log4j however my general opinion is that using commons logging is great for library code since this makes it possible to use the same logging setup for several libraries used by one application but when working with a particular application there doesn t seem to be a lot of benefit in being able to use multiple different logging systems it doesn t have to interoperate so as long as it has the basic functionality then the exact logging system in use doesn t matter much so i don t see a big need to switch to commons logging for j meter but i could be convinced otherwise for making changes to the call to get logger for for all of the classes it might be easier for one of the committers to do this directly rather than dealing with patches i would be willing to do this part of it if you d like although it may take me a few days to get through it my wife and i just had a baby about a week ago pictures up at http xirr com jeremy a family kajsa html and we have family here and things jeremy bazley sebastian wrote yes thanks agreed that would simplify rationalise the logging using avalon logkit but it would not allow the use of log4j or java 1 4 logging without edit recompile afaik for most source files the changes to convert to commons logging would be very similar to those needed to tidy up the logging categories which is why i thought it might be useful to consider but i am happy to stick with log kit if everyone else is one could always do the commons logging change later it would be simple using eclipse i would like to be able to change the logging level without having to edit the properties file i can contribute a patch to add a command line option to do this calling the logging manager method i ll try and get some patches out this weekend the changes to get logger for could be done as one or more patch files which is easiest for the commiters one giant patch one per file or perhaps one per functional area core protocol etc by the way logging manager seems to be in jorphan jar which strikes me as a bit odd jmeter getloggerfor jeremy_a logkit loggingmanager getloggerfor loggingmanager 1022:hi i havn t get any answer from jmeter user list so i post my problem here olger forwarded message date wed 1 feb 2006 16 01 39 0200 eet from lauri kimmel olg ut ee to jmet jakarta apache org subject simple plugin example needed hi i need to write jmeter plugin for testing one particular tcp protocoll and server one good and simple example would be helpful i found one tutorial at http svn apache org viewcvs cgi checkout jakarta jmeter trunk xdocs extending jmeter tutorial pdf but it s not very helpful i got some null pointer exceptions when i added my plugin to thread group eg exception in thread awt event queue 0 java lang null pointer exception at org apache jmeter gui tree j meter tree node get name j meter tree node java 142 at org apache jmeter gui tree j meter cell renderer get tree cell renderer component j meter cell renderer java 37 olger jmeter_tutorial nullpointerexceptions threadgroup eventqueue nullpointerexception jmetertreenode getname jmetertreenode jmetercellrenderer gettreecellrenderercomponent jmetercellrenderer 1028:actually there s a static string split string string in org apache jorphan util j orphan utils salut jordi en na bazley sebastian ha escrit twas i that added the code that uses split all it s doing is prettyfying the classpath so i ll remove it unless until the dependency can be fixed indeed perhaps there should be a split method in jorphan to allow for jdk 1 3 support but i ll do the quick fix first must remember to do a full ant build from time to time s original message from peter lin mailto jmw0 yahoo com sent 23 january 2004 16 04 to j meter developers list subject re testing latest snap shot release candidate i just updated from cvs and there might be a build problem when i do a plain build it first tries to build jorphan but all tests uses j meter utils split peter lin jordi salvat i alabart jsal atg com wrote i ve been using j meter a lot recently and except for some quirks with test beans i m working on not yet on cvs it is far better than 1 9 1 i suggest each of us does a walk through bugzilla try to fix any relatively easy bugs we find and we create a rc real soon now who has the time to be release manager this time michael can you do this for us please salut jordi en na peter lin ha escrit when we re ready to package a release candidate i will run a 48 hour test on my lan at home my plan is to get the latest stable release of tomcat 5 and try to simulate two days of traffic hopefully there won t be any bugs i ll probably post the results on tomcat user and jmeter user mailing list peter lin do you yahoo yahoo site builder free web site building tool try it do you yahoo yahoo site builder free web site building tool try it jorphanutils jmeter alltests jmeterutils jmeter testbeans sitebuilder sitebuilder 1061:hi folks please don t be daunted by the size of this post skip to the very last paragraph for the meat of the problem i ve been trying to extend j meter to analyze the performance of a legacy system access library i ve been writing i called it ecs i wrote a generative controller a configuration element corresponding gu is and a sampler things look fine when adding my ecs controller a thread group but when i try to run it i get the following output in the root log after outfitting generic controller with log4j statements it was at 08 39 12 that i selected run root log start near end of log debug 11 08 08 38 51 jmeter ecs generative controller start ecs generative controller debug 11 08 08 38 51 com bofa ecs jmeter ecs config start ecs config debug 11 08 08 38 51 com bofa ecs jmeter ecs config end ecs config debug 11 08 08 38 51 jmeter ecs generative controller end ecs generative controller debug 11 08 08 39 12 eter control generic controller loop controller clearing subcontrollers debug 11 08 08 39 12 eter control generic controller ecs testing clearing subcontrollers debug 11 08 08 39 12 eter control generic controller loop controller controller added debug 11 08 08 39 12 eter control generic controller loop controller got a sub controller iterator at local scope debug 11 08 08 39 12 eter control generic controller loop controller cloning controller element debug 11 08 08 39 12 jmeter ecs generative controller start clone debug 11 08 08 39 12 jmeter ecs generative controller start ecs generative controller debug 11 08 08 39 12 com bofa ecs jmeter ecs config start ecs config debug 11 08 08 39 12 com bofa ecs jmeter ecs config end ecs config debug 11 08 08 39 12 jmeter ecs generative controller end ecs generative controller debug 11 08 08 39 12 com bofa ecs jmeter ecs config start clone debug 11 08 08 39 12 com bofa ecs jmeter ecs config start ecs config debug 11 08 08 39 12 com bofa ecs jmeter ecs config end ecs config debug 11 08 08 39 12 com bofa ecs jmeter ecs config end clone debug 11 08 08 39 12 eter control generic controller ecs testing got a sub controller iterator at local scope debug 11 08 08 39 12 jmeter ecs generative controller end clone debug 11 08 08 39 12 eter control generic controller loop controller controller added debug 11 08 08 39 12 eter control generic controller loop controller getting sub controllers iterator debug 11 08 08 39 12 eter control generic controller loop controller item null root log end the dos box contents from running it show dos box begin ssl provider is null java lang null pointer exception at org apache jmeter control generic controller get listeners generic contr oller java 419 at org apache jmeter threads j meter thread run j meter thread java 229 at java lang thread run thread java 498 note to self we should really prompt to save here bb e jakarta jakarta jmeter bin gvim root log dos box end what make it so wierd is the point in the code where the exception occurs here is the get listener method of generic controller as i modified flooded it with log4j statements generic controller get listener start public collection get listeners collection listeners new linked list iterator iter sub controllers iterator cat debug get name getting sub controllers iterator while iter has next sampler controller item sampler controller iter next if item null cat debug get name item null else cat debug get name item not null collection item listeners item get listeners if item listeners null cat debug get name item listeners null else cat debug get name item listeners not null if listeners null cat debug get name listeners null else cat debug get name listeners not null listeners add all item listeners add self or not listeners return listeners generic controller get listener end what i find strange is that the last line of the root log output should never get printed if item is null then iter next returned null but if iter next returned null then iter has next should have returned false for the while predicate and thus never entered the while body this seems to be happening for the loop controller controller rather than the ecs controller obviously this doesn t happen to j meter when ecs controller is not involved has anyone seen this kind of behavior when making their own controller extensions right now i m investigating the possibility of two separate iterators over the same collection tripping over each other paul paul glezen consulting it specialist ibm software services for web sphere 818 539 3321 jmeter guis genericcontroller ecsgenerativecontroller ecsgenerativecontroller ecsconfig ecsconfig ecsconfig ecsconfig ecsgenerativecontroller ecsgenerativecontroller genericcontroller genericcontroller genericcontroller genericcontroller subcontroller genericcontroller ecsgenerativecontroller ecsgenerativecontroller ecsgenerativecontroller ecsconfig ecsconfig ecsconfig ecsconfig ecsgenerativecontroller ecsgenerativecontroller ecsconfig ecsconfig ecsconfig ecsconfig ecsconfig ecsconfig genericcontroller subcontroller ecsgenerativecontroller genericcontroller genericcontroller subcontrollers genericcontroller nullpointerexception genericcontroller getlisteners genericcontr jmeterthread jmeterthread getlistener genericcontroller genericcontroller getlistener getlisteners linkedlist subcontrollers getname subcontrollers hasnext samplercontroller samplercontroller getname getname itemlisteners getlisteners itemlisteners getname itemlisteners getname itemlisteners getname getname addall itemlisteners addselfornot genericcontroller getlistener hasnext jmeter websphere 1089:i m currently working on reversing the relationship between j meter test components and gui components right now it s sort of a two way street and the test components are required to know certain information about the gui ie class label gui class name and the like so i m in the process of reversing this so that test components are blissfully unaware of a gui they don t even exist until the test is started and instead gui code has to know all about test components i have two interfaces j metergui component test element i m reworking all j meter elements to fit into this model i think the advantages will be obvious 1 no longer 1 1 correspondence of gui classes to test classes now there can be three different gui s that can create http requests each for different needs a gui that simply asked for the url on one line would be quite useful i think 2 i m pretty sure i can get rid of all specialized save handlers this would save everyone the effort of figuring out how to make their implementations save correctly to jmx files 3 i think i ll be able to implement correct cloning procedures for everyone provided they follow some simple rules 4 gui code is already simplifying itself after reworking a class i find most event handling code unused 5 many current config classes are becoming unnecessary such as url config multipart url config 6 no more logical and generative controllers now there are simply controllers all are logicial controllers and samplers the generative controllers are going away and instead the samplers are taking their place previously samplers were only created in the j meter engine now they are test elements that get configured by gui components and then bubble up through the test the way entry objects did before entry objects will probably go away too one disadvantage is that the format of jmx files will be completely different than before i m not even sure if it will be feasible to bring old jmx files up to date after doing this work i think it will be considerably easier to apply the avalon framework and ideas to j meter mike jmeter jmeterguicomponent testelement jmeter urlconfig multiparturlconfig jmeter jmeter 1232:isn t that what the current sampler does seems to me the axis approach is to extract the variable parts and provide those as parameters rather than needing to wrap it all in xml s on 12 12 05 peter lin wool gmail com wrote looks like if i use axis specific api i may be able to create soap messages directly from xml documents i ll try to work on it next week and see how it goes peter on 12 9 05 sebb seb gmail com wrote the web service soap sampler currently uses apache soap which no longer seems to be maintained perhaps we should look at creating a new sampler that uses apache axis looks quite simple to use http ws apache org axis java user guide html basics getting started it takes a different approach to building the soap messages as far as i can see there is no need to mess around with xml just need to provide the parameters and axis takes care of the rest just need to decide how to provide the parameters via the gui i ve not used soap in earnest so i don t know what would make sense for testing soap sebastian webservice basicsgettingstarted 1289:every occurrence of a sampler java or otherwise is created as a separate instance config elements do not create sampler instances s on 07 04 06 hjuschke hjus gmx net wrote i just reviewed my testcase again i m using some cascaded config elements random under which the java sampler is configured maybe the reason for the number of instantiations is that multiple occurences of the java sampler are not sharing the java sampler instance in a thread or to put it the other way round does each config element create their own java sampler instance sebb 2 wrote on 06 04 06 hjuschke hjus gmx net wrote thanks yes what you describe is what i would expect it to be but in fact i see that the number of instances is not independent from the number of loop all i change is the number of loops of exactly the same testplan from 6 to 7 with 6 loops i count i invocation of the constructor with 7 loops i see 4 of them through trace statements in the constructor you re right about the loading of the test plan but i actually don t care about them do you have any idea why the number of instances is not regardless of the number of thread loops at least not in my case works as described for me try creating a test case using the java request sampler and define log level jmeter protocol java debug in jmeter properties or add llog level jmeter protocol java debug to the jmeter command line parameters i only see one constructor call per thread s view this message in context http www nabble com number of instances of java sampler t1402439 html a3799917 sent from the j meter dev forum at nabble com log_level llog_level jmeter 1311:derek thanks i will look at it and see if i can remove the extra call i can also add the boolean to find inner classes also regarding your other email embedded variables shouldn t be too much trouble embedded functions would be a different matter though mike on 17 jul 2002 at 9 49 derek baum wrote mike i m writing some functions to generate sequential and random numbers with the ability to re seed the random number generator so that after the first sequential or random number the following random numbers will be repeatable this allows me to generate repeatable pseudo random data rather than making this one function with lots of arguments i wanted to split it up into more frendly smaller functions for example seq set seed rand max set seed i have two minor problems 1 i wrote the functions as inner classes since they are closely related and need to share data however the call to class finder find classes that extend in compound function java does not discover inner classes this is easily fixed by adding a boolean true argument 2 my functions are being called twice for each variable substitution which means that i only get every other sequential number in my test data replace values in test compiler java is called twice from configure sampler directly from line 115 and indirectly via layered element on line 123 i have not found an easy way to stop the duplicate call in configure sampler instead i am keeping a weak hash map in my function s execute methods that detects if it is called with the same sample result but this is a bit messy derek mike stover wrote users there is a new unstable release 1 7 2 it seems pretty solid so far and i have more confidence in it at this point than the previous production release 1 7 developers power users i ve made a first pass at the gui elements related to the new functions there is a brief doc page about functions only in cvs not on website user defined variables can be created in the test plan gui element and a dialog can assist you in generating the correct syntax for your function calls the dialog is available from the options menu currently there is only one function implemented but it s an interesting one creating new functions should be easy and fun hint hint you don t need to write any gui code just follow the directions in the java docs for the org apache jmeter functions function interface also org apache jmeter functions abstract function which you may wantto extend michael stover msto apache org yahoo im mstover ya icq 152975688 to unsubscribe e mail mailto jmet jakarta apache org for additional commands e mail mailto jmet jakarta apache org this e mail has been scanned for all viruses by star internet the service is powered by message labs for more information on a proactive anti virus service working around the clock around the globe visit http www star net uk derek baum paremus limited 44 0 20 7936 9396 www paremus com this e mail has been scanned for all viruses by star internet the service is powered by message labs for more information on a proactive anti virus service working around the clock around the globe visit http www star net uk michael stover msto apache org yahoo im mstover ya icq 152975688 __seq setseed __rand setseed classfinder findclassesthatextend compoundfunction replacevalues testcompiler configuresampler layeredelement configuresampler weakhashmap sampleresult testplan javadocs abstractfunction mstover_ya messagelabs messagelabs mstover_ya 1315:i like that perhaps this idea could be extended to some other test elements i can only think of response assertions at present for which there is already an option but there might be cases were a user wants to add a certain test element to every sample group however i m not sure i understand how you are proposing to use the variable in the timer where would the variable value be defined and how would the different variable names be generated or was the idea to copy the timer element to the generated test plan and replace the variable name if found with the actual time delay i think this would be very flexible the user could create a timer under the proxy with one of a special value which would be replaced by the actual time anything else which would not be replaced the latter could be a fixed value or even a function or variable reference so long as it did not match the special please replace me string if the special string was replaced as a sub string it would even allow the user to do something like delay p delay replace me please i e make the actual delay the default value for the delay property s original message from jordi salvat i alabart mailto jsal atg com sent 02 december 2003 09 34 to j meter developers list subject re another suggestion for the proxy that s not what i was thinking about i was thinking about using a variable that would be replaced at recording time that is a timer placed in the http proxy would serve as a template to create one timer inside the 1st request of each group variable replacement for this particular variable would happen at recording time not at runtime this would give the user the choice between the trivial solution a constant timer for the interval from the previous request or more complex ones such as a gaussian random timer with the average set to that interval and a deviation fixed or computed from it the constant timer would still be the most common usage i guess salut jordi en na paul btinternet com ha escrit your variable seems a sensible choice would this be the start of some pre defined variables that would always appear in the user defined variables section of the test plan element i ve just scanned the all the timers would it be sensible to create a set of default variables for target throughput constant throughput timer thread delay constant timer deviation gaussian random timer constant delay offset again gaussian random timer and uniform random timer random delay maximum uniform random timer paul from jordi salvat i alabart jsal atg com date mon 01 dec 2003 12 44 10 to jmet jakarta apache org subject re another suggestion for the proxy en na jordi salvat i alabart ha escrit forgot about this one plus optionally add a timer to each sampler that is not the first in its group we could use a constant timer with the time passed since the completion of the last sampling in the previous group or if a sampler were found within the proxy we could just stick that one makes sense or even we could have a variable that could be used in the timer template and would be replaced with the time passed before sticking it into the generated sampler __p replace_me_please jmeter 1351:on fri 28 jan 2005 09 44 16 0600 hurley kevin khurle kevi acxiom com wrote sebb thanks for your response i am assuming that the controller would be started previous to starting the remote instances ok once a remote instance comes up it registers with the controller by writing its ip address to the property file and being listed in the gui menu only the engineer of the test knows when all the remote instances have been registered by looking at the list this method is not completely clean but workable ok the biggest problem with that behavior i can imagine would be that the client dies before all the remote instances come up of course in that case the engineer running the test would know that some remote instancesare missing if the client dies then he d have to start again surely the bottleneck issue scares me i didn t think that the controlling client had that much to wait on i assumed that the remote instances would generate a sample and drop it off to the controller only to continue processing with or without acknowlegement from the client side the listeners in the client are connected using rmi to the corresponding listeners in each server each listener is handled separately i think all listeners are called in turn by the j meter engine after every sample so the servers currently need to get the response from the client before continuing there has been some work done in the remote listener interface to allow samples to be recorded locally and passed back later but i think the solution uses a memory array which means it s not suitable for tests with lots of samples also i presume rmi adds quite an overhead to the data being returned for minimal resource usage one can run multiple test plans in batch non gu mode and combine the output log files later which is easy enough when using cvs output it helps if the timestamps are consistent but this is true also for client server mode you may find that you only need one or two non gui clients to generate enough load assuming the network is up to it the approach of pre setting all the nodes in the list is prohibitive for me how many nodes are there kevin original message from sebb mailto seb gmail com sent friday january 28 2005 8 15 am to j meter developers list subject re remote server discovery welcome i m not sure i understand how the j meter server instances would know when to send their ip address back to the client unless the client is started before any of the servers in which case how does the client know when all the servers are ready for use note the current j meter server client implementation is not all that scalable as all the samples have to be returned to the controlling j meter instance if you are expecting to generate heavy traffic you will probably find that the controlling instance becomes a bottleneck or even the network link may become saturated the controlling instance obtains the list of node names or ip addresses from a property and can be asked to start a test on one or all of the nodes in the list so perhaps another approach would be to preset the list to all possible remote nodes but allow some of the remote nodes to be absent s on thu 27 jan 2005 15 46 45 0600 hurley kevin khurle kevi acxiom com wrote hey guys i am brand new to this list this is my first message i was thinking about suggesting an enhancement to the remote engine piece of j meter server see code example question below i am currently working in a grid environment my company uses a cluster of grid nodes in order to facilitate processing batch and real time transactions i have been tasked with benchmarking web services transactions running through our grid i recently built a software router to handle subscriptions to a load balancer bigip f5 so my first task with j meter will be to benchmark the registration withdrawal of subscriptions through this setup one of the problems that presents itself to me is that all grid nodes are hands off to users of the grid in other words the only control over a grid node is through a web page or generic user there is no way to manually log on to the grid node also since the grid nodes rely on nfs shares to read write to from files unsuggested there is no good way to maintain a list of all grid nodes belonging to one cluster as nodes come up and go down my plan is to set up many nodes that will serve as remote j meter engines in my situation it would be beneficial to me to allow the controlling client gui to automatically discover all nodes and their ip addresses as participants in the remote pool of servers this way i don t have to jump through hoops to setup all the ip addresses from all the remote servers in the controllers property file i am currently trying to discover how the remote server portion of the code works exactly i have noticed in the class remotej meter engine impl java that there is a method public void set host string host does this method get called during the client setup or during the remote servers setup how about having the remote server discover its own ip address i e inet address local inet address get local host hostname local get host address instead of just the name of the host note the above code retrieves the actual ip address then after the remote server discovers its ipaddress it could push it to the controlling client whose address is specified in a deployed property file so the idea is deploy a j meter remote engine along with a property config file containing the controlling clients ip address and then have all the remote servers push their ip address back to the already running client any thoughts about this suggestion thank you for your patience kevin hurley software developer acxiom corp the information contained in this communication is confidential is intended only for the use of the recipient named above and may be legally privileged if the reader of this message is not the intended recipient you are hereby notified that any dissemination distribution or copying of this communication is strictly prohibited if you have received this communication in error please re send this communication to the sender and delete the original message or any copy of it from your computer system thank you jmeter jmeter jmeter jmeter jmeter jmeter jmeter jmeter remotejmeterengineimpl sethost inetaddress inetaddress getlocalhost _hostname gethostaddress jmeter 1354:i m trying to fix a bug where http sampler objects created by the http proxy server contain information that is unnecessary due to that same information being present in the http defaultsgui object for example port number i ve been rooting around in the code but i haven t been able to figure out how a new http sampler object gets access to the information stored by a http defaultsgui object i can make up a convoluted access through the gui but i m thinking that there is something simpler i m overlooking any pointers would be much appreciated thanks keith httpsampler httpproxyserver httpdefaultsgui httpsampler httpdefaultsgui 1365:on 30 05 2008 sebb seb gmail com wrote on 28 05 2008 henri yandell bay apache org wrote md5 pgp good it s a bit odd that the binary version comes chock full of jars and the source version doesn t when i run ant in the source version i get build failed users hen apache jmeter jakarta jmeter 2 3 2 build xml 925 users hen apache jmeter jakarta jmeter 2 3 2 lib opt not found i need to look at that fixed in svn if a build is attempted from just the source archive the output is c release check jakarta jmeter test ant buildfile build xml message 3rdparty echo cannot find all the required 3rd party libraries echo if building from a release you need both source and binary archives build failed c release check jakarta jmeter test build xml 937 cannot find required classes i m also suspect of whether it will build with so few jars available i don t see junit in there or being hooked up to download it won t build on its own to avoid duplication building requires the binary archive as well this is documented in the readme file in the current source download the geronimo and velocity jars should ideally have their license and notice files as they are asf projects i assumed that they were covered by the following in the notice file this product includes software developed at the apache software foundation http www apache org and the licence the following jars need license files in the binary download junit cpl htmllexer i m assuming it s under the htmlparser cpl yes it s part of htmlparser js rhino mpl iirc ok there were pointers to the online versions in the main license file but i ve now added local copies ideally various asf apache 2 0 licenses notices would also be there but those are the three important ones thanks hen on tue may 27 2008 at 4 50 pm sebb seb gmail com wrote third time lucky i hope there is one trivial code change from rc1 log the property java vm name which shows whether the client or server java flag was used when starting j meter otherwise the main changes relate to the way the archives are created the tar files use lf endings for native files and the zip files use crlf endings the jmx test and demo files have been updated to the new format some al headers were added as far as i can tell i ve fixed all the previous test problems that were reported and one i accidentally introduced in rc2 when the eol settings were tidied up note that there is a bug in java on some linux systems that manifests itself as the follow error java warning couldn t flush user prefs java util prefs backing store exception java lang illegal argument exception not supported indent number archives hashes sigs and rat report http people apache org sebb jmeter 2 3 2rc3 dist site docs are here http people apache org sebb jmeter 2 3 2rc3 docs tag http svn apache org repos asf jakarta jmeter tags v2 3 2rc3 keys are here http svn apache org repos asf jakarta jmeter trunk keys txt also http www apache org dist jakarta jmeter keys all feedback and votes welcome 1 the release candidate is ok 1 there is a problem please indicate what it is the vote will remain open for at least 72 hours note if the vote passes the intention is to release the archive files and create the release tag from the rc3 tag here s my 1 s to unsubscribe e mail gene jakarta apache org for additional commands e mail gene jakarta apache org releasecheck _message_3rdparty releasecheck js_rhino jmeter backingstoreexception illegalargumentexception v2_3_2rc3 1375:i think i ve found the fix had to add new inflater true as a 2nd argument to inflater input stream not sure why yet in new buffered input stream new inflater input stream conn get input stream new inflater true i ve been hacking to see why this isn t working i found that accept encoding gzip deflate wasn t being inserted into the request so i added it in set connection headers not sure if there s a better place since it seems to be ignoring it even if i insert it in the browser derived headers page so now it s working as long as i get it back as content encoding gzip but if it comes back as content encoding deflate like www amazon com does then it breaks after a little investigating i see that we should be calling inflater input stream instead of gzip input stream to inflate the stream if it s encoded with deflate right now we expect gzip or nothing but that s not working for me if i do that i get an unknown compression method exception from inflater input stream if i use zip input stream instead as some stuff i ve read recommends then the html parser gets a parse exception and it loops over and over again adding child after child to the view results tree looks like zip input stream is failing in the same way but with no exception here s the code snippet if gzip equals conn get content encoding works ok even if ce is null in new buffered input stream new gzip input stream conn get input stream else if deflate equals conn get content encoding in new buffered input stream new inflater input stream conn get input stream in new buffered input stream new zip input stream conn get input stream else in new buffered input stream conn get input stream anybody ever deal with inflater input stream i m not seeing any complaints about it not working as advertised so i wonder what could be going wrong here j inflaterinputstream bufferedinputstream inflaterinputstream getinputstream setconnectionheaders inflaterinputstream gzipinputstream inflaterinputstream zipinputstream zipinputstream getcontentencoding bufferedinputstream gzipinputstream getinputstream getcontentencoding bufferedinputstream inflaterinputstream getinputstream bufferedinputstream zipinputstream getinputstream bufferedinputstream getinputstream inflaterinputstream 1437:i m developing a new assertion listener it calculates the average of the sample times that arrive on assertion result get result sample result method depending on the average time it does something or not when the average time reaches the defined value a boolean is set to true but the other threads take some delay to realize this happened and continue for a while for example if at the 5 delivered sample result the specified value was reached it continues until all remaining threads realize that the method seems something like public assertion result get result sample result response calculate response calculate the average this is a synchronized method if average reached do somethings return assertion result i tried to synchronize the methods which set the boolean value tried to synchronize the whole get result method tried to insert some thread delay at the top but still got no lucky the boolean value is a static field any ideas are welcome thanks assertionresult getresult sampleresult sampleresult assertionresult getresult sampleresult averagereached assertionresult getresult 1459:making the l listener super configurable would not be high on my list of priorities after all all the listeners you set up in your test still work in non gui mode so if you need something more complex one can include it in the test plan the command line listener is just there for convenience as for all the checkboxes i m not sure i follow where they re all going mike on mon 2005 05 09 at 18 03 0100 sebb wrote sorry i was unclear i think the log errors checkbox is still needed on the listener too i don t propose changing the listener gui interface to move the log errors checkbox apart from adding a log result data if error checkbox to the config element i m not keen on having to edit the jmx file in fact as far as i can see it won t work because the non gui listener is created at run time so i am proposing adding a property that can be used by the non gui listener to determine if it should log result data for errors only this would correspond with the new config checkbox i m not sure if any other result fields need to be independently configurable for successful unsuccessful samples this could make the config gui very large unless there were two per listener perhaps not tested this but i think one can have two listeners writing to the same file one with log errors only selected and each can have different options this does not work for the non gui listener however s on 5 9 05 michael stover msto apache org wrote i still see log errors on the listener being useful too as for non gui running i think the new jmx file format makes editing listener properties easy enough to be something to consider mike on mon 2005 05 09 at 16 07 0100 sebb wrote i did consider using the listener config however that gives a problem for non gui runs as there is no way to configure the automatic listener apart from via properties i guess there s no real need for a log errors checkbox to be added to the test plan it could just be done via a property which i was going to add anyway indeed do we need the functional test checkbox i think the log errors only checkbox is better as a separate item it defines when to log the config defines what besides moving it might invalidate a lot of test plans however result data should only be logged if the config says to do so s on 5 9 05 michael stover msto apache org wrote that all sounds reasonable but what about making the listener config do it all ie let users indicate what to save normally what to save on errors etc i think that makes more sense than the ad hoc checkbox on the test plan object approach mike on sun 2005 05 08 at 11 53 0100 sebb wrote functional mode does not work currently in 2 1 whilst looking into this i noticed that log errors only does more in 2 0 than just prevent successful results from being sent to the visualizers it also behaves like functional test mode for failed results in that the result data is written to the test log in 2 1 at present log errors only behaves as i expected i e it suppresses successful results from appearing in the listener and its log file and it does not affect the data written to the log file seems to me it would be useful to extend the test plan gui to add an option to log result data for errors only this would be useful for checking why an assertion failed it would also be useful to add an equivalent property so the mode could be set from the command line i d also like to suggest a change in the way functional mode is implemented at the moment functional test mode is stored as a property by test plan and result collector then stores it as a static variable there will only ever be one test plan class in a test plan so it would be easy to add static methods to it to return the current settings for functional test mode and my proposed error result data mode this would make it easier to check at present the setting is copied to the result collector class by scanning the classes the test plan functional mode property would need to be kept so as to be saved in jmx files wdyt s testplan testplan resultcollector resultcollector testplan functional_mode 1513:i ve not tried using the ldap sampler so this may not apply but could you not use a response assertion to check for the required condition s original message from mcgladrey kayne mailto kayn attws com sent 10 november 2003 16 38 to j meter developers list subject re patch ldap client java as an alternate implementation it could be a user configurable test add a checkbox to the search form and the end user could decide if they want to test for the correct result or at least any result or just the correct response code we have a clear need to verify that a directory server is returing results consistently under heavy load there s a problem if no results are being returned for a valid search that refers to a valid record kayne mc gladrey member technical group at t wireless original message from dolf smits mailto dolf zonnet nl sent sun 11 9 2003 5 13 am to j meter developers list cc subject re patch ldap client java hi i don t think this is a good idea if you want to make a diffrence between search succesfull some results found and search successfull no results found you schould not declare the last result as being unsuccessfull if you want to stress test an ldap server the difference between success and failure are not whteher there are any results but whether the ldap server is responding properly if you want to make a difference i think we can better start to define some sort of xml template for an ldap answer and implement a way to translate an ldap answer into this template and show this template as being the ldap result you can then use all kind of asertions to see or the answer is conform your own wishes just a short idea about fields i don t know whether all these files can be read by the java ldap tools but i think that these fields should be present in such a template start time tue oct 28 14 28 24 2003 duration 0 020 sec user cn admin o fasr ip 127 0 0 1 op name ldap con1953 op21 connid 1953 operation search version 3 messageid 4302 base obj ou ctsc application data repository o fasr scope onelevel filter objectclass ctsc property definition ctsc object class user size limit 0 time limit 0 deref alias never types only no req attr all found entries 0 found attrs 0 controls 0 bytes received 136 bytes returned 41 abandoned no result code 0 success greets dolf original message from mcgladrey kayne kayn attws com to j meter developers list jmet jakarta apache org sent thursday november 06 2003 23 57 subject patch ldap client java hello this patch addresses the current behavior of the ldap search operation under the current version ldap searches that are successful but do not return results are marked as successful the ldap rfc states that result code 0 will be returned if no results were returned however this makes the results from j meter misleading consider this example thread group ldap sampler add server master directory server incorrect user name valid dn ldap sampler search server replicate directory server same dn as in add assume a working one way replication agreement between the master and the replicate under these circumstances the add operation against the master directory server will fail with error 32 34 or 50 depending on the server implementation however the search for the new record against the replicate directory server will appear to the end user to be successful in fact it will have returned no results the patched version addresses this behavior if no results are returned j meter will mark the search as failed thank you kayne mc gladrey member technical group at t wireless ldap client java backup 2003 11 05 16 31 38 000000000 0800 ldap client java 2003 11 06 14 24 00 000000000 0800 65 6 65 8 import javax naming directory modification item import javax naming directory search controls import javax naming naming enumeration import org apache jorphan logging logging manager import org apache log logger 136 7 138 11 search controls searchcontrols new search controls 2 1l 0 null false false dir context search search base search filter searchcontrols dir context search search base search filter searchcontrols naming enumeration result dir context search search base search filter searchcontrols if result has more throw new naming exception ldap error code 0 no results returned jmeter ldapclient mcgladrey jmeter ldapclient ldap_con1953_op21 ctscapplicationdatarepository ctscpropertydefinition ctscobjectclass jmeter ldapclient jmeter jmeter mcgladrey ldapclient ldapclient modificationitem searchcontrols namingenumeration loggingmanager searchcontrols searchcontrols dircontext searchbase searchfilter dircontext searchbase searchfilter namingenumeration dircontext searchbase searchfilter hasmore namingexception 1557:feasible possibly but i m not sure it would help the code for handling replaceable controllers is only invoked in gui mode and that is done outside the controllers s on 17 02 06 oleg gutsol ogut nationalfibre net wrote would it be feasible to build those module and include controllers on generic controller oleg on 17 feb 06 at 3 00 pm sebb wrote on 17 02 06 bugz apache org bugz apache org wrote http issues apache org bugzilla show bug cgi id 38687 additional comments from wool yahoo com 2006 02 17 20 51 so it sounds like we need a general solution that will work for both module and include controller yes it may be as simple as ensuring that the gui only code is copied to the non gui case but i suspect the extra code in the clone methods may have to move elsewhere if remote server mode is to be supported genericcontroller show_bug 1585:hey all should the fix provided also be used in standard jmeter engine i was getting multiple null pointer exceptions with muliple servers i just copied the code workaround from client jmeter engine to the run method in standard jmeter engine and it seems to have solved the problem try get test tree traverse test plan catch index out of bounds exception e log warn error replacing sample listeners e was this the correct thing to do regards michael freeman standardjmeterengine clientjmeterengine standardjmeterengine gettesttree testplan indexoutofboundsexception 1604:hello take a look at the j meter wiki page on j meter eclipse http nagoya apache org wiki apachewiki cgi j meter project pages in particular note step 7 of setting up paths which says to change your build output folder to the lib ext directory and step 4 of running and debugging which says to change the working directory when running i use eclipse all the time for j meter development used to use wsad but now i m using eclipse 2 1 and after following these steps i haven t had any problems jeremy jean pierre norguet wrote a question to developers especially developers using eclipse or ibm wsad i have imported j meter 1 8 1 source code into ibm wsad based on eclipse and now i am trying to run j meter from the new driver class the code compiles ok and starts to run then it throws this error java lang exception in initializer error java lang null pointer exception at org apache jmeter new driver clinit new driver java 117 exception in thread main i have seen in the debugger that the new driver static init block tries to list a number of jar files in the c documents and settings administrator my documents ibm wsad workspace lib and c documents and settings administrator my documents ibm wsad workspace lib ext directories which are empty of jar files so the lib jars variable is null and lib jars length throws the null pointer exception is there any other class or any other way to start j meter ps btw if the directories only contain jar files i e uppercase it seems to me that the same problem would happen wouldn t it best regards jean pierre norguet http wasa ulb ac be jp html jmeter jmeter jmeterprojectpages jmeter jmeter jmeter newdriver exceptionininitializererror nullpointerexception newdriver newdriver newdriver libjars libjars nullpointerexception jmeter 1627:on thu oct 02 2003 at 11 48 54am 0400 jean sebastien morisset wrote i might be on to something i replaced all http samplers with java samplers and then ran the test plan on my workstation and then on one of the servers i m using for the real tests they re on the same subnet as the web server etc snip something else if i start the jmeter gui on my workstation i get the following java processes started 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 12 12 12 15 16 16 16 16 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 15 15 15 15 15 15 15 15 15 15 15 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 18 18 18 18 18 19 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 18 16 16 16 16 16 16 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 15 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 if i start the jmeter gui on the server i get this 1 1 1 16 14 14 14 9 15 1 16 11 10 8 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 my guess is the workstation version is the correct one right why do you think the threads are dying on the server thanks js jean sebastien morisset sr unix administrator jsmo mvlan net personal home page http jsmoriss mvlan net js melanie s homebrewery http brewery mvlan net underwater and travel photographs http www mvpix com 1639:the exception is j meter stop thread exception which is what string from file uses on 30 04 07 sebb seb gmail com wrote have a look at string from file if i recall correctly that can stop the current thread at the end of the file i think there is also a thread stop exception error cannot remember the name offhand but it is probably caught in the j meter thread class on 30 04 07 andre van hoorn andr informatik uni oldenburg de wrote begin pgp signed message hash sha1 hi i developed a markov controller which basically reads a configuration file and builds an internal model within its overridden method initialize the next sample to be returned by the method next depends on the model generated on initialization time i m wondering how to report errors to the j meter engine when initialize or next are executed for example the file to be read does not exist or it contains an inconsistent model the j meter engine shall react according to a sampler error i e depending on the thread group configuration the test continuous the thread stops or the entire test stops existing controllers and config elements seem to simply continue on errors as far as i could see in the j meter source code e g invalid conditions are evaluated as false io exceptions when reading a csv file are only catched but no error is reported to the engine best regards andr andr van hoorn birkenweg 21 d 26725 emden telefon 49 4921 954231 e mail andr informatik uni oldenburg de begin pgp signature version gnupg v1 4 6 gnu linux comment using gnupg with mozilla http enigmail mozdev org id8dbqfg ncrnl kwme5jz zmkr ap1za jw ldps hro4 af9 onr58 ywjp8cbkcg cgjang q05fjyw2i16v ev988 jdyrr8 h xxi end pgp signature jmeterstopthreadexception stringfromfile stringfromfile jmeterthread jmeter jmeter jmeter id8dbqfgncrnlkwme5jzzmkrap1zajwldpshro4af9onr58 ywjp8cbkcgcgjang q05fjyw2i16vev988jdyrr8 hxxi 1654:en na sebastian bazley ha escrit original message from jordi salvat i alabart jsal atg com to j meter developers list jmet jakarta apache org sent friday january 02 2004 12 51 am subject test beans proof of concept how to try check out branch testbeans experimental branch build run right click on workbench add sampler http sampler bean see the automatically generated gui ok this seems to work except that running version should not appear in the gui perhaps others as well don t know if this affects the design or not i know my initial version was stopping introspection at the test bean class so that any properties defined below that would not appear you ll see the name property appearing twice for example but when i created the test bean bean info class i had to remove that i ll find a solution for this eventually worst case i will mark those properties as hidden also the field names will need to become resources i guess this will be easy enough having display names for the properties is part of the java beans spec i don t know about i18n but i will find out if there isn t a standard way we can invent one looks pretty trivial some tidying up to do e g some fields should be check boxes and i think we llneed radio buttons elsewhere my idea is not to have any checkboxes boolean fields for example would be edited with a combo box having 4 options use default or undefined yes no a user entered string to enable using variables and functions we could define property attributes to control which of these options should be available for each individual property and of course you always have the option to create your own property editor would be nice to align input fields there s a todo in the code about using a table to align the input fields the current solution is just a quick hack built from already existing code need to allow for multiple input fields on a single line and logical grouping of fields would this be difficult i was planning on logical grouping and explicit ordering on multiple fields on a single line i had not thought about it i m not sure it s a good idea the component probably doesn t work of course i ll need to fix this before declaring the proof of concept complete i would add that being able to replicate the existing gui layout more or less is also necessary i don t think that s a point replicating the existing gui is trivial by using a bean customizer the interest is in obtaining a gui with equivalent or better functionality and usability but more consistent and with less work understanding the thing to start with forget about all the changes in the core packages for the time being let s focus in the http sampler bean class which is a port to the new concept of the http sampler class in the root testbeans experimental branch version http sampler bean is exactly the same as the http sampler except that it longer uses those j meter properties but regular familiar java bean properties instead it subclasses test bean and implements sampler instead of subclassing abstract sampler it would be trivial to create an abstract sampler bean class to play the role of the abstract sampler sample now calls prepare first thing this is important but my idea is to change the engine to do this call or i could have sample entry call it in the above mentioned abstract sampler bean which would declare sample entry final and sample abstract i don t think i ve done any other relevant changes well i ve tried not to the j meter property keys have been removed i think they will need to be retained so that old jmx files can be converted at least could perhaps extend the upgrade properties file processing to handle this the upgrade path is something i ve not given much thought to i m not so sure there will be a clean and safe upgrade path which is a problem of course the resulting class is obviously simpler than the original http sampler but really not that much the obvious advantage is in the gui classes yes the current design makes for very tedious coding and it is easy to do things in the gui class by mistake that need to be done fornon gui mode as well but it does offer complete control over gui layout i ve little or no experience of beans so i don t know how easy it will be to customise the gui layouts there s not much about beans gu is just half a dozen pages on bean infos and property editors in the java bean spec that s it however i do think the gui needs to be customisable i think there s very few cases in which it needs to the visualisers are probably the only really good example is there a danger that the new gui classes will then become very complicated not more complicated than they are now java beans gui stuff is really simple either you provide an awt component that does the editing in which case you essentially revert to what we have now or you let the platform do it for you you can still provide hints of course plus components to be used to edit individual properties as i ve done for the arguments property should we be looking at a gui design language for example xul http www mozilla org xpfe xptoolkit index html not sure if that is suitable for our purposes as it stands i don t think we have such big gui requirements to justify the investment in any case that would be a different development not incompatible at all with this experiment i guess the gui is based in two classes only http sampler bean bean info 4 lines of code and http arguments editor 3 lines they are necessary because the http sampler is a particularly complex test element in that its gui has an embedded arguments panel that is the gui for another test element is embedded here i chose it precisely because of this complexity i wanted to prove that the two approaches old style testelements and test beans can interoperate fully the gui classes are now in the same directory as the sampler whereas previouslythey were in a separate gui directory i prefer retaining a separate directory the default way for the beans stuff to obtain a property editor for a class is to append the name editor to the class name in the same package you can also provide a list of editor search paths but i prefer to stick to the default ways unless there s a good reason to do otherwise the same applies to the bean info classes the bean info class will grow significantly larger before the proof of concept is complete but i wanted you to have a look at this when it s still this simple it s a good example for what a developer prototyping a new component will need to do about the additions i ve done in the core packages feel free to have a look but i don t think it s that important now the bits that are not about handling the gui are about maintaining compatibility with the current approach for example test bean is now a subclass of test element but it doesn t really need to be in the future we will be able to keep the bean and it s description the propertie s values or expressions to be used to compute them separate constructive and destructive comments welcome well done for tackling the gui set up complications but i m a bit concerned that quite a lot of work has gone into the current gui design over the years it s not perfect but i think it is generally well laid out and it would be confusing if all the layouts changed drastically i agree there s a lot of work but i disagree in that it s generally well laid out i find it awful inconsistent inconfortable to work with full of bugs and generally annoying that s of course one of the main motivators for this experiment i would expect users to welcome the cost of getting familiar with a fairly new gui if the change is for better other points i suggest deprecating wrap in property and unwrap property to discourage use yes i should have done that need to ensure that batch non gui mode still works i first need to ensure that non batch gui mode still works ditto for client server mode which reminds me in the next few days i m intending to try implementing rmi serialisation by using the external xml representation of the test plan instead of serialising all the test element objects this should reduce the data volumes sent across as well as simplifying a lot ofclasses no need to worry about implementing serializable don t know if this will affect your bean work go ahead i m working on a separate branch i m ready for a long merge if we decide to move it to head salut jordi jmeter testbeans testbeans_experimental_branch httpsamplerbean runningversion testbean testbeanbeaninfo httpsamplerbean httpsampler root_testbeans_experimental_branch httpsamplerbean httpsampler jmeterproperties testbean abstractsampler abstractsamplerbean abstractsampler abstractsamplerbean jmeterproperty httpsampler guis beaninfos propertyeditors httpsamplerbeanbeaninfo httpargumentseditor httpsampler argumentspanel testbeans beaninfo beaninfo testbean testelement wrapinproperty unwrapproperty 1670:that looks like an accident we ve been trying to maintain 1 3 compatibility i ll have a look at fixing that for 2 1 1 however be warned that the 1 3 jvm can have problems running j meter scripts 1 4 jv ms generally work much better btw why can you not use 1 4 s on 14 09 05 jacques desmazieres jacq is2france com wrote hello i need to run j meter with jdk1 3 i retrieved the src build archive and tried to compile it but i have compilation errors in the core jorphan classes these errors does not exist anymore if i just replace with jdk 1 4 is j meter still supposed to be jdk 1 3 fully compliant jacques desmazieres there are 2 types of errors javac compiling 37 source files to d jakart 1 1 build jorphan javac d jakart 1 1 src jorphan org apache jorphan collections configuration tree j ava 75 reference to add is ambiguous both method add java u til collection in org apache jorphan collections hash tree and method add java lang object in org apache jorphan collections listed hash tree match javac prop tree add keys and javac d jakart 1 1 src jorphan org apache jorphan util converter java 378 cannot resolve symbol javac symbol method replace all java lang string java lang string javac location class java lang string javac return v trim replace all s insertion jvm version java version java version 1 3 1 java tm 2 runtime environment standard edition build 1 3 1 b24 java hot spot tm client vm build 1 3 1 b24 mixed mode jmeter jvms jmeter jmeter configurationtree hashtree listedhashtree proptree replaceall replaceall hotspot 1676:i m switching to the dev list because i want to ask a question wouldn t it be easier for us if j meter sent text only between server and client then the server could be a soap server or something and tests could be sent as xml hey that s how we save them too isn t that convenient the client could then also be a soap server and receive event notifications as text btw i m not hooked on the soap server it s probably heavier than we need just some text over sockets would make me happy in any case this would get rid of the marshalling exceptions get rid of rmiregistry put control over the port in the users hands the problem and the reason i haven t done it previously is that a method needs to be worked out for directing events to the proper listeners now we ve talked about having a single test listener that just logs and maybe provides some simple visual feedback and then analyzers could view the data non interactively and this would remove the need for directing events to particular listeners or something else could be arranged it s something to put our thinking caps on for because i do want to get rid of rmi mike on 28 aug 2003 at 11 31 msto apache org wrote regarding these problems running remotely you must be very sure that the jar files on each machine are exactly the same this does not mean exactly the same source compiled on each machine it means exactly the same jars copied from a single source ie the 1 9 1 distribution if you are at all unsure whether the jars are the same choose one machine and copy it s jars to the other machines overwriting the jars that are there mike on 28 aug 2003 at 10 17 jon steelman wrote btw running 1 9 1 server and client original message from jon steelman jste techdiscovery com reply to jste techdiscovery com date thu 28 aug 2003 09 33 43 0400 i get this when trying to start a remote test plan another machine is able to execute the plan remotely just fine has anyone seen this any ideas thanks jon c projects idea afterbot actual receiptsplus config test jmeter jon test plan jmx 08 27 2003 4 16 57 pm warn jmeter engine clientj meter engine about to run remote test 08 27 2003 4 16 57 pm warn jmeter engine clientj meter engine done initiating run command 08 27 2003 4 16 57 pm warn jmeter engine clientj meter engine running clientengine run method 08 27 2003 4 16 57 pm info jmeter engine num threads 2 08 27 2003 4 16 57 pm info jmeter engine num threads 2 08 27 2003 4 16 58 pm warn jmeter engine clientj meter engine sent host info 08 27 2003 4 16 58 pm error jmeter engine clientj meter engine java rmi marshal exception error marshalling arguments nested exception is java net socket exception software caused connection abort socket write error at sun rmi server unicast ref invoke unknown source at org apache jmeter engine remotejmeterengineimpl stub configur e unknown source at org apache jmeter engine clientj meter engine run clientj meter eng ine java 153 at java lang thread run unknown source caused by java net socket exception software caused connection abort socket write error at java net socket output stream socket write0 native method at java net socket output stream socket write unknown source at java net socket output stream write unknown source at java io buffered output stream flush buffer unknown source at java io buffered output stream write unknown source at java io object output stream block data output stream drain unkno wn source at java io object output stream block data output stream write byte un known source at java io object output stream write fatal exception unknown source at java io object output stream write object unknown source at sun rmi server unicast ref marshal value unknown source 4 more michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 jmeter clientjmeterengine clientjmeterengine clientjmeterengine clientjmeterengine clientjmeterengine marshalexception socketexception unicastref remotejmeterengineimpl_stub clientjmeterengine clientjmetereng socketexception socketoutputstream socketwrite0 socketoutputstream socketwrite socketoutputstream bufferedoutputstream flushbuffer bufferedoutputstream objectoutputstream blockdataoutputstream objectoutputstream blockdataoutputstream writebyte objectoutputstream writefatalexception objectoutputstream writeobject unicastref marshalvalue mstover_ya mstover_ya 1711:on tue 28 jan 2003 mike stover wrote except i don t yet agree with the last point i think it can be done without requiring that mike you seem to have a complete picture of how to do this so i suggest you implement it as soon as 1 8 1 is out i ll see and learn then how you did it oliver on 29 jan 2003 at 1 26 oliver rossmueller wrote as mentioned in a prior message i would like to discuss potential implementations of this feature in this thread so here is what has to be done from my point of view to get full advantage of this switch load test plans without creating gui components change the way the j meter gui works by not creating gui components but test elements from the add menu by operating on test elements and not gui components adapt all gui components because they have to update the test elements directly instead of using create test element oliver michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 jmeter createtestelement mstover_ya 1713:it s true the uniqueness information doesn t need to be part of the thread name it could be something stored separately i know just the place given the work i ve done so far mike on fri 2002 04 26 at 16 43 kate rosenbloom wrote looks like overkill distinguishing threads from earlier runs in old results files might be better done with a result file post processing step kate stover michael wrote some ideas on making unique names 1 use the thread group name not j meter thread or both 2 number each thread in the thread group 1 n 3 create a unique identifier number based on current time stamp in milliseconds host ip and a 128 bit random number make a string from all these parts example j meter thread test group 1 5 329832845092375487932479795893923 it s kinda big but it has everything for everyone splittable on or some other agreed upon char if anyone knows an easier way speak up mike threadgroup jmeterthread threadgroup jmeterthread 1739:hi i have a thread group that runs forever that thread group runs a sequence of actions using tcp samplers that reuse the same socket that eventually gets the socket disconnected logout from the target server after the first loop the socket is disconnected but it remains in the socket s map leading to the second loop trying to reuse it is there any way to remove the socket from the map when it gets disconnected after each loop terminates 1755:yeah i have to agree on all points mike and i talked about this since httpsampler is used by more people and the throughput more than doubled with html parser i thought it was worth while i take the responsibility of keeping the two in sync if there are patches and bug fixes it is more work but considering the benefit i felt it was worth it the newest junit doesn t seem to conflict with any existing code atleast not when i build it or in eclipse the two cvs thing shouldn t be a problem since the current release is stable and works well next week i plan to profile the old and new tidy vs htmlparser and post my findings peter bazley sebastian seba london sema slb com wrote fine by me although the task could be added anyway it doesn t have to be used we should probably update the junit jar anyway but i think we should work towards having the testing code eeparated out so junit becomes optional another approach that one might take with problematic licences is to include only the interface code in j meter cvs and have the code fail gracefully if the jar is not present at runtime i did this with bean shell it is then up to the user to decide whether or not to download the optional jar s since the jar would not need to be provided i presume this gets round the problem c f isasilk however if adding the code to j meter cvs effectively changes the licence perhaps that s the way to go although i m not happy that there should be two separate cvs versions sebastian original message from peter lin mailto jmw0 yahoo com sent 17 october 2003 13 37 to j meter developers list subject re html parser code should it be in j meter cvs hey sebastian can we wait on adding the build task for htmlparser i was going to see what people think about updating the j unit jar the reason we didn t just add the jar is html parser uses lgpl license which is incompatible with apache license therefore i got permission from the htmlparser developers to use it and change the license in the source if everyone is ok with using the newer j unit i can make the update this weekend and test the build task for htmlparser peter lin bazley sebastian wrote following up my own post would it not be possible just to include the html parser code as a pre compiled jar in the lib directory i m not sure what the benefits are in having a local copy of the code unless the sourceforge version is no longer being maintained s original message from bazley sebastian sent 17 october 2003 01 41 to j meter developers list subject html parser code very useful by the way the test utilities give compilation errors as assert false is not defined in junit jar as currently used with j meter easy enough to solve replace with assert true or update junit jar doesn t bother me which is done so long as the new code does not get included in build xml until this is resolved however a new target could be added so long as it was not invoked by any of the existing ones especially dist which is favoured by gump i ve updated eclipse classpath already but that does not get used automatically s do you yahoo the new yahoo shopping with improved product search do you yahoo the new yahoo shopping with improved product search htmlparser jmeter beanshell jmeter jmeter jmeter junit htmlparser junit jmeter assertfalse jmeter asserttrue 1787:this may seem like a silly question for those on the project for awhile but why are the devs committing changes to the rel 2 2 branch isn t 2 2 the current stable release is the policy to copy the released code to trunk until the next release it seems to me that with the current practice none of the branches actually reflect the code released as binaries to the community just wondering about the policy if someone could clarify it for this newbie i would appreciate it thanks michael bonar 1827:on 27 07 05 zohar amir davi hotmail com wrote hi i have a thread group that runs forever that thread group runs a sequence of actions using tcp samplers that reuse the same socket that eventually gets the socket disconnected logout from the target server after the first loop the socket is disconnected but it remains in the socket s map leading to the second loop trying to reuse it sounds like a bug is there any way to remove the socket from the map when it gets disconnected after each loop terminates the code needs to be changed perhaps you could raise a bugzilla request and attach a sample jmeter log file showing the problem 1876:thanks would you be willing and able to load jdk1 4 on a machine somewhere and try there if there s an issue with jdk1 3 i should fix it i haven t run 1 3 in a while though your localclasspath environment variable looks like the old j meter stuff you should get rid of it and j meter shouldn t recreate it anymore so if it does that would indicate a problem too and last do you have a sax parser in your jre s ext directory the error your getting i ve seen before and it was caused by a conflict between the xerces jarfile that comes with j meter and a different or older version of xerces sax parser that the person had on their system your classpath is empty but i just realized another way of adding jars to the system is to put them in the ext directory of your jre i also notice you have the j2ee stuff loaded is that adding jars to the system classpath in some hidden manner do you have a clean machine you could install j meter on and experiment it could be informative thanks again i appreciate your efforts in helping me track this problem down mike on 19 jun 2002 at 18 04 lowe jeff wrote did a cold reboot got a fresh copy of source from cvs in a fresh directory did build ok cd to bin ran jmeter bat java lang reflect invocation target exception javax xml parsers factory configurat ion error provider org apache xerces jaxp sax parser factory impl not found at javax xml parsers sax parser factory new instance sax parser factory java 141 at org apache jmeter util j meter utils clinit j meter utils java 100 at org apache jmeter j meter initialize properties j meter java 194 at org apache jmeter j meter start j meter java 139 at java lang reflect method invoke native method at org apache jmeter new driver main new driver java 152 my os is winxp here are my system environment properties ant home c jakarta ant appdata c documents and settings jlowe application data buildfile build xml clientname console common program files c program files common files com spec c windows system32 cmd exe homedrive c homepath documents and settings jlowe j2ee home c j2sdkee1 3 1 java home c jdk1 3 1 junit home c junit3 7 localclasspath c jdk1 3 1 lib tools jar lib ant 1 4 1 jar lib avalon ex cali bur 4 1 jar lib avalon framework 4 1 2 jar lib jakarta ant 1 4 1 optiona l ja r lib jakarta oro 2 0 1 jar lib junit jar lib log4j core jar lib log 4j j ar lib tidy jar lib util jar lib xerces jar number of processors 1 oldpath c windows system32 c windows c windows system32 wbem c jdk1 3 1 bin c j2sdkee1 3 1 bin c jakarta ant bin c program files gnu win cvs 1 2 c progra m files microsoft sql server 80 tools binn os windows nt path c windows system32 c windows c windows system32 wbem c jdk1 3 1 bin c j2sdkee1 3 1 bin c jakarta ant bin c program files gnu win cvs 1 2 c program f iles microsoft sql server 80 tools binn pathext com exe bat cmd vbs vbe js jse wsf wsh processor architecture x86 processor identifier x86 family 15 model 1 stepping 2 genuine intel processor level 15 processor revision 0102 program files c program files prompt p g sessionname console system drive c system root c windows temp c docume 1 jlowe locals 1 temp tmp c docume 1 jlowe locals 1 temp username jlowe userprofile c documents and settings jlowe windir c windows original message from mike stover mailto msto apache org sent wednesday june 19 2002 5 25 pm to j meter developers list subject re parser error tell me about your setup os jdk version any changes to j meter files did you build this over an older j meter version or is it fresh mike on 19 jun 2002 at 15 53 lowe jeff wrote i don t have a classpath environment variable defined original message from mike stover mailto msto apache org sent wednesday june 19 2002 2 21 pm to j meter developers list subject re parser error does your system classpath have anything in it if so try clearing it first mike on 19 jun 2002 at 13 17 lowe jeff wrote i m embarking on some j meter development and just got the latest from cvs it builds fine but when i run it i get the following error java lang reflect invocation target exception javax xml parsers factory configuration error provider org apache xerces jaxp sax parser factory impl not found at javax xml parsers sax parser factory new instance sax parser factory java 141 at org apache jmeter util j meter utils clinit j meter utils java 100 at org apache jmeter j meter initialize properties j meter java 194 at org apache jmeter j meter start j meter java 139 at java lang reflect method invoke native method at org apache jmeter new driver main new driver java 152 i m puzzled why it can t find sax parser factory impl which is in the same jar as sax parser factory which it obviously found thanks for the help jeff michael stover msto apache org yahoo im mstover ya icq 152975688 michael stover msto apache org yahoo im mstover ya icq 152975688 michael stover msto apache org yahoo im mstover ya icq 152975688 jmeter jmeter jmeter jmeter invocationtargetexception factoryconfigurat ionerror saxparserfactoryimpl saxparserfactory newinstance saxparserfactory jmeterutils jmeterutils jmeter initializeproperties jmeter jmeter jmeter newdriver newdriver ant_home commonprogramfiles comspec j2ee_home java_home junit_home number_of_processors wincvs windows_nt wincvs processor_architecture processor_identifier genuineintel processor_level processor_revision programfiles systemdrive systemroot jmeter jmeter jmeter jmeter jmeter invocationtargetexception factoryconfigurationerror saxparserfactoryimpl saxparserfactory newinstance saxparserfactory jmeterutils jmeterutils jmeter initializeproperties jmeter jmeter jmeter newdriver newdriver saxparserfactoryimpl saxparserfactory mstover_ya mstover_ya mstover_ya 1896:hi i would think twice about including jdk1 4 code in j meter that would severely limit who can run j meter we would be forcing most people companies to install jdk1 4 just to use j meter kevin stover michael mich usa xerox com wrote it would be a very easy thing to add the latency time to the sample results i will probably get to it sometime during 1 8 development i have also been considering taking advantage of jdk1 4 s non blocking io to use only a few threads for all the requests it seems like doing so would increase the complexity of the sampler interface for people writing new protocol testers but it might worth experimenting with another though i ve had is to have j meter modify the number of threads to find the maximum throughput performance of a server how many threads results in the server s highest throughput i think that would be useful to know and i see no reason why j meter couldn t find this point automatically mike original message from berin loritsch mailto blor apache org sent thursday march 21 2002 9 11 am to j meter developers list subject re using avalon avalon is already used in cocoon which is meant for the web server i have used it in a number of projects it is very quick of course a lot of perceived quickness depends on how you implement things for instance if the goal is to saturate a server with connections in order to test how much load it can support before it dies the traditional thread per connection approach will cause issues in j meter itself using non blocking io we can have a handful of threads manage all the connections and create several thousand connections with only a few threads in comparison if the goal is to measure latencies time from request to first byte of response as well as overall time then we almost need the thread per connection approach so we don t measure time for the socket selector to notify our code with either approach you can measure trends in load i e find the slope of the s curve to find where saturation occurs btw all scalability graphs exhibit an s curve with relatively few connections response times don t change that much as we add more connections the response times will continue to grow until we hit the saturation point once we hit the saturation point response times won t grow because the connections are lost the interesting part of the scalability graph is finding the slope of the critical portion i had posted a lengthy message in the past where i wanted to have j meter to be able to take different types of samples for instance useful data would be the number of images per page or the size of the page image other useful info would be latency time to first response as well as the current time to complete response original message from jamie davidson mailto jami bridgewatersystems com sent thursday march 21 2002 8 05 am to j meter developers list subject re using avalon any ideas on how this change would affect the overall performance of j meter and btw who gets to vote if it means anything 1 original message from boutcher james k mailto jk bo west com sent tuesday march 19 2002 11 26 am to j meter developers list subject re using avalon sorry for taking so long had to find the time to check it out 1 original message from kevin hammond mailto kevi yahoo com sent tuesday march 19 2002 6 48 am to j meter developers list subject re using avalon i vote 1 for moving j meter to use the avalon architecture thanks kevin hammond kevin hammond kevi yahoo com wrote hi i will send in my vote this weekend after reading more about the avalon architecture mike do you have any guesstimates on how long the conversion would take weeks months we really need to create at least one branch always working off the mainline is one of the reasons we cannot get a new release out people keep checking in brand new code functionality thanks kevin berin loritsch blor apache org wrote stover michael wrote hi all berin has convinced me that using the avalon excalibur framework in j meter would be helpful i d like to know if everyone is agreeable to letting me rework j meter s structure to do this to be specific it will require changing the interfaces such as j meter component model and model supported saveable etc the way new components would be written would change the idea is to make is easier and more consistent i think the benefits of this would be 1 simpler and more consistent process to create new components 2 remove dependence on swing in non gui classes 3 better design resulting in easier to manage and less buggy code 4 possibly more flexibility in the types of message truncated do you yahoo yahoo movies coverage of the 74th academy awards http movies yahoo com jmeter jmeter jmeter sampleresults jmeter jmeter jmeter jmeter jmeter jmeter jmeter jkbo jmeter jmeter jmeter jmeter jmeter jmetercomponentmodel modelsupported 1907:it s done in proxy control java place config element mike on 27 feb 2003 at 8 41 kcas 360commerce com wrote i m trying to fix a bug where http sampler objects created by the http proxy server contain information that is unnecessary due to that same information being present in the http defaultsgui object for example port number i ve been rooting around in the code but i haven t been able to figure out how a new http sampler object gets access to the information stored by a http defaultsgui object i can make up a convoluted access through the gui but i m thinking that there is something simpler i m overlooking any pointers would be much appreciated thanks keith michael stover msto apache org yahoo im mstover ya icq 152975688 aim mstover777 proxycontrol placeconfigelement httpsampler httpproxyserver httpdefaultsgui httpsampler httpdefaultsgui mstover_ya 1909:i wrote the sampler back during the summer the webservice sampler should be right after soap xml rpc i just fixed a bug for proxy support reported by peter reid if you get the latest cvs and build it you ll se the latest version peter lin sonam chauhan sona ce com au wrote thanks peter is the webservices sampler very recent i m working with the dec 30 2003 cvs and it only has 8 samplers ftp tomcat access log http soap java jdbc ldap and tcp with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 2 29 pm to j meter developers list subject re suggestion for enhancing http request sampler hi sonam please take a look at the webservices sampler it uses apache soap driver it can read xml envelope from text area a file or randomly select files from a directory it s been tested with net webservices peter sonam chauhan sona ce com au wrote well i may be missing something so do correct me however if all that soap sampler does is 1 set content type text xml 2 post contents of it s textbox with no parameters it would be better to bundle that functionality into the http sampler because a the http sampler is more mature as you said b it has more functionality for e g redirects keep alives though i don t know if these are applicable to xml pos ts the other point i had was certain http pos ts are impossible both with the http sampler and the soap sampler for e g the multipart mime http posts like the one commerce one envelope i mentioned below if the http sampler could load the actual body of the post from a textbox or a file then in combination with the http header manager it could do anything with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from jordi salvat i alabart mailto jsal atg com sent tuesday 13 january 2004 10 49 am to j meter developers list subject re suggestion for enhancing http request sampler why can t we keep this function with the soap sampler i agree the soap sampler is poor and buggy it needs to be improved but i m not in favour of piling up all functionalities into one single infinitely complex component salut jordi en na sonam chauhan ha escrit the normal http sampler seems incapable of posting xml documents using the process below it falls down in point 2 1 the http content type is set to text xml 2 the http request body contains the document itself no post parameters are used however the soap xml rpc request sampler seems to handle this process well the normal http sampler can be made more generic by allowing it to post the contents of a file or a textbox without post parameters in this case there would be no need of the soap xml rpc request sampler is this correct also the above would make possible certain complex http requests that currently are impossible with j meter for e g commerce one marketsite envelopes that have multiple content parts with no post parameters with regards sonam chauhan to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus jmeter posts posts commerceone jmeter jmeter commerceone 1916:michael i got it working i still have some work to do int the code but it works for the most part i have a couple of issues 1 when i add more than one webdav request sampler to a thread group they both seem to be the same object changes in one are reflected in the other 2 saving my test plan does not save the state of my webdav samplers any help would be appreciated other than the above issues it works like charm i think this is going to be just the ticket for testing webdav servers for us john schult earth link inc on mon 27 sep 2004 16 11 26 0400 john schult schu gmail com wrote it was a typo in the changes i made to the build it was still compiling the src for the ftp sampler instead of my new code on mon 27 sep 2004 14 51 48 0400 michael stover msto apache org wrote hard to guess at what might be missing can you post the code mike on mon 2004 09 27 at 14 30 john schult wrote i did that wrote the code and changed the build to generate a jar in lib ext apachejmeter webdav jar it still does not show up under the add samplers menu for a thread group on mon 27 sep 2004 13 26 17 0400 michael stover msto apache org wrote you need to write a gui for it that extends abstract sampler gui and drop your jar into j meter s lib ext directory mike on mon 2004 09 27 at 12 41 john schult wrote i wrote a webdav sampler using the jakarta slide webdav library to test it out i need to get it added to the menu in j meter any pointers michael stover msto apache org apache software foundation michael stover msto apache org apache software foundation john david schult usa georgia buford ph 404 214 5818 john david schult usa georgia buford ph 404 214 5818 earthlink apachejmeter_webdav abstractsamplergui jmeter jmeter 1917:thanks i have read it but it is very general would you be so kind as to explain me how to use the listeners indeed what i really need to know is which data i need to enter into the sample result regards simon 2006 3 13 peter lin wool gmail com there s a tutorial mike and i wrote here http svn apache org repos asf jakarta jmeter trunk xdocs extending jmeter tutorial pdf peter on 3 13 06 simon de uvarow sdeu gmail com wrote hello i m learning how extend the j meter in case of it would necessary for some project in the begin i was lost but now reading the code and examples i understand better how it works i did a simple sampler it executes a executable and i want to graph the response time and other things is there any documentation instead of looking the code that explain how work the diferents listeners thanks simon sampleresult jmeter_tutorial jmeter 1922:thanks neth i m hoping jim can rebuild the 1 7beta3 file today sometime mike original message from net asia1 com mailto net asia1 com sent thursday february 21 2002 9 23 am to jmet jakarta apache org subject re view results tree visualizer hi i ve checked the changes everything s ok except 1 view results full visualizer java new string byte res get text response it s possible for byte res get text response to be null so i added a check for that before creating the string 2 result collector java if current results size return true i changed it to if current results size 1 return true otherwise when sampling n times you ll get n 1 samples displayed the nth sample is displayed twice pls include these changes into the next 1 7 beta would be great if someone could confirm that my changes has no other side effects thanks begin original message from stover michael mich usa xerox com sent wed 20 feb 2002 16 38 37 0500 to j meter developers list jmet jakarta apache org subject view results tree visualizer i ve made the changes to fix the problem for view results tree and it seems to be working well i like this visualizer a lot i ll check the changes in this evening mike to unsubscribe e mail mailto jmeter dev unsu jakarta apache org for additional commands e mail mailto jmeter dev he jakarta apache org end original message for the latest news go to http www asia1 com mailto jmet jakarta apache org for additional commands e mail mailto jmet jakarta apache org viewresultsfullvisualizer text_response text_response resultcollector jmeter 1930:i try it tomorrow cu jochen original message from mike stover mailto msto apache org sent wednesday august 21 2002 5 33 pm to j meter developers list subject re j meter utils java that s just very obsolete code not used by anyone should be deleted mike on 21 aug 2002 at 17 06 stiepel jochen wrote hello only a little info i was looking through the j meter code and in line 265 stand org apache jmeter control sampler controller but i can t found this file but i found it in the old src maybe this is interesting for somebody could it be a bug cu jochen stiepel dresdner bank ag unternehmensbereich p g it systeme f r produkte und vertrieb it globale multikanal services j rgen ponto platz 1 60301 frankfurt main tel 069 2 63 15 9 26 069 2 63 5 01 50 mailto joch dresdner bank com http www dresdner bank de michael stover msto apache org yahoo im mstover ya icq 152975688 jmeter jmeterutils jmeter samplercontroller mstover_ya 1931:i like it i d also like to add something that makes it unique even across multiple runs so that saved results from two different tests can be combined at a later time without interference mike original message from berin loritsch mailto blor apache org sent friday april 26 2002 1 29 pm to j meter developers list subject re thread numbering was re irc stover michael wrote so we could name each thread thread group get name thread number it works for me what about everyone else i just through that out as an example of something already done they that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety benjamin franklin jmeter threadgroup getname thread_number 2035:derek glad to see the problem was easily solved regarding setting the threads context class loader i ve already done that in the latest cvs i needed to do itbecause of the way the sax factory finds a parser implementation however i will look at adding only jar files i guess i thought i did that but guess i overlooked it i would like to see your changes regarding log4j and correct initialization when bin is not the working directory mike on 10 jul 2002 at 22 52 derek baum wrote mike thanks for the info i hadn t realised that the vizualisers would actually create the file i ve looked further into the no class def found exception that i was getting and it s my fault i m using a newer version of log4j so i renamed the existing jars with suffix xxx and dropped in the new jar however the 1 7 1 new driver java puts everything in the lib and lib ext directories onto the classpath regardless of its extension the result is that i had two different copies of the log4j jar and this caused the above exception now that i ve fixed that my test starts to run but gets a class cast exception in the depths of jini this is because rmi is failing to load a class using the threads context class loader and so it is unnecesssarily downloading the class across the net using its own class loader the solution is to set the context class loader in new driver java thread current thread set context class loader loader if this is not done the context class loader remains set to the class loader that loaded new driver class which is apachej meter jar which only contains this class and so you can expect other errors of this kind when tests involve rmi or their own custom class loaders if you re interested i can send a diff of new driver java that fixes this and log4j initialisation and also allows correct initialisation when the working directory is not jakarta jmeter bin derek regarding log4j thanks for the info personally i don t know much about log4j and have no motivation to do so but i will try your suggestions the reason i put that there is because it wasn t working anyway so i thought i d try setting it explicitly when that didn t work i gave up and worked on other things you mention running your extensions under 1 7 1 so you converted to the new architecture what was the class it couldn t find this e mail has been scanned for all viruses by star internet the service is powered by message labs for more information on a proactive anti virus service working around the clock around the globe visit http www star net uk michael stover msto apache org yahoo im mstover ya icq 152975688 contextclassloader noclassdeffoundexception newdriver classcastexception contextclassloader classloader contextclassloader newdriver currentthread setcontextclassloader contextclassloader classloader newdriver apachejmeter newdriver messagelabs mstover_ya 2043:scott eade wrote snip whether or not the attached fix is correct depends on the long term plans are for plugin manager i have taken the view that it may actually do more than just deal with icons and have thus passed it a flag indicating whether or not a gui is to be used so that it can then only load the images when it is appropriate to do so the attached patch is prepared on this basis let me know if you agree with this approach and i will commit it note that the patch fixes the indentation of plugin manager but doesn t convert the tabs to spaces it contains a mixture of both scott the patch is a good solution for the moment so please commit it oliver cheers scott pluginmanager pluginmanager 2049:i ve put into cvs the changes necessary to make the different components jorphan core components be reasonably independent as we discussed a few weeks ago unfortunately this implied removing the functionality to load legacy test plans i ve added a note to the manuals to this respect i don t think it will be a real problem for anyone the next steps are to shuffle a few components around and to change the build xml file to take advantage of this independency the component shuffling is a sensible operation since it may break some patches out there you may get messages in the lines of can t find file to patch at input line 449 perhaps you used the wrong p or strip option the text leading up to this was diff naur src core org apache jmeter control loop controller java srcxx core org apache jmeter control loop controller java src core org apache jmeter control loop controller java 2002 08 11 21 24 40 000000000 0200 srcxx core org apache jmeter control loop controller java 2002 12 15 02 21 48 000000000 0100 file to patch if this happens just look for the file in some other component it may have been moved around salut jordi loopcontroller loopcontroller loopcontroller loopcontroller 2053:hi oliver i ve commited your patch with a change the current way for a user to express its preferences is the bin jmeter properties file which is handled by j meter utils to stay in line with this i ve moved the user preferences functionality to j meter utils the reinitialize locale method is now renamed to set locale i ve also added a new property language to jmeter properties to define the preferred language in a permanent way it would probably have been better to move all resource and user configuration management functionality to the gui package or to a new i18l package but that s too much of a change right now hope you agree with these changes was there a bug associated with this patch which we should now mark as fixed salut jordi oliver rossmueller wrote the menubar now responds to language selections and updates all it s menu items accordingly i will also update all existing guis to listen to the new locale change event to update all labels buttons the patch is available for download at http www tuxerra com jmeter patches lang switch tgz oliver jmeterutils userpreferences jmeterutils reinitializelocale setlocale localechangeevent jmeter_patches lang_switch 2056:excellent thanks j there are currently two versions that are being worked on head and rel 2 0 in both http sampler2 is the version of the sampler that uses apache http client rather than the default jvm http protocol handlers i m hoping to find some time to combine the two samplers in the meantime i have been consolidating as much of the common code as i can the eventual idea is to allow the user to specify the default handler to be used in jmeter properties but allow it to be overridden for individual samplers s original message from peter lin mailto wool gmail com sent 05 august 2004 04 54 to j meter developers list subject re what is http sampler2 java http cvs apache org viewcvs cgi jakarta jmeter src protocol http org apach e jmeter protocol http sampler http sampler2 java the latest code uses http client i m not up to date on the latest changes i know sebastian has been doing lots of cleaning up and refactoring of the htt psampler hopefully he ll respond with more details than i an provide peter on wed 4 aug 2004 23 47 50 0400 joelsherriff joel comcast net wrote peter thanks i m looking at the latest code so is it old code or new code that s being worked on j in which version of jmeter in the latest code the second one uses apache commons http client if you re talking about jmeter 1 9 then it s a version using jordi s regexp html parser or html parser based parser peter on wed 4 aug 2004 19 35 57 0400 joelsherriff joel comcast net wrote can someone tell me what is http sampler2 java is it an old saved version of http sampler java thanks j to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org this e mail and the documents attached are confidential and intended solely for the addressee it may also be privileged if you receive this e mail in error please notify the sender immediately and destroy it as its integrity cannot be secured on the internet the atos origin group liability cannot be triggered for the message content although the sender endeavours to maintain a computer virus free network the sender does not warrant that this transmission is virus free and will not be liable for any damages resulting from any virus transmitted 2_0 httpsampler2 httpclient jmeter httpsampler2 httpsampler2 httpclient httpsampler httpclient htmlparser httpsampler2 httpsampler 2066:thanks just create a patch unified diff format and attach it to the bugzilla issue on 08 02 06 mark lowings mlow novell com wrote hi i ve been using jmeter 2 1 1 for the last month or so by the way great product i ve been mostly using the extended ldap sampler which has a really annoying bug which is already listed inbugzilla bug 35244 the bug seems to have been around for a while so i decided to fix it myself which i have done and it was a very simple fix ideally i would love to share the fix with the community but as a newbie i m not sure how to proceed with this am i allowed to upload my fixed source files many thanks mark 2069:thanks peter i just tried the soap sampler with that document but the receiving server spits out an error possibly because of incorrect http header used by soap sampler the document isn t really xml unfortunately i can t find out exactly what s wrong since view results tree only shows http response headers does anyone know offhand of a j meter debug level that dumps http request headers to jmeter log i tried jmeter ljmeter debug but it only dumps the request body not the request headers it would be better if the http sampler added the facility to submit the contents of a textbox or a file in combination with the http header manager any kind of http post would be possible including the document below a commerce one envelope with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 10 10 pm to j meter developers list subject re suggestion for enhancing http request sampler the webservice sampler uses apache soap the soap api requires the message meet soap requirements the soap xml rpc may be able to handle it peter sonam chauhan sona ce com au wrote hi guys the main reason i suggested enhancing the http sampler instead was so it can post complex documents like the one below it is not a xml document and the content type is not text xml correct me if i am wrong but i think none of the current samplers http soap and webservices samplers can post this document message id 3296 devsvr2 in ce com au date tue 13 jan 2004 13 50 47 1100 gmt 11 00 mime version 1 0 content type multipart related boundary part 187 175861948 1073962247153 content id c5732f42 78e6 1000 93a0 ac1001760001 x date sent 13 jan 2004 13 50 47 gmt 11 00 reference id x document type error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type error ns urn x error error part 187 175861948 1073962247153 content type application xml owner x commerceone version 1 0 type catalog doctype peter thanks the dec 29 cvs didn t have the webservices sampler but the 1 9 1 stable release has an alpha version of your webservices sampler with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from peter lin mailto jmw0 yahoo com sent tuesday 13 january 2004 2 29 pm to j meter developers list subject re suggestion for enhancing http request sampler hi sonam please take a look at the webservices sampler it uses apache soap driver it can read xml envelope from text area a file or randomly select files from a directory it s been tested with net webservices peter sonam chauhan sona ce com au wrote well i may be missing something so do correct me however if all that soap sampler does is 1 set content type text xml 2 post contents of it s textbox with no parameters it would be better to bundle that functionality into the http sampler because a the http sampler is more mature as you said b it has more functionality for e g redirects keep alives though i don t know if these are applicable to xml pos ts the other point i had was certain http pos ts are impossible both with the http sampler and the soap sampler for e g the multipart mime http posts like the one commerce one envelope i mentioned below if the http sampler could load the actual body of the post from a textbox or a file then in combination with the http header manager it could do anything with regards sonam chauhan corporate express australia ltd phone 61 2 9335 0725 fax 9335 0753 email son ce com au original message from jordi salvat i alabart mailto jsal atg com sent tuesday 13 january 2004 10 49 am to j meter developers list subject re suggestion for enhancing http request sampler why can t we keep this function with the soap sampler i agree the soap sampler is poor and buggy it needs to be improved but i m not in favour of piling up all functionalities into one single infinitely complex component salut jordi en na sonam chauhan ha escrit the normal http sampler seems incapable of posting xml documents using the process below it falls down in point 2 1 the http content type is set to text xml 2 the http request body contains the document itself no post parameters are used however the soap xml rpc request sampler seems to handle this process well the normal http sampler can be made more generic by allowing it to post the contents of a file or a textbox without post parameters in this case there would be no need of the soap xml rpc request sampler is this correct also the above would make possible certain complex http requests that currently are impossible with j meter for e g commerce one marketsite envelopes that have multiple content parts with no post parameters with regards sonam chauhan to unsubscribe e mail jmet jakarta apache org for additional commands e mail jmet jakarta apache org message truncated do you yahoo yahoo hotjobs enter the signing bonus sweepstakes http hotjobs sweepstakes yahoo com signingbonus jmeter commerceone jmeter part_187_175861948 referenceid _part_187_175861948 _part_187_175861948 jmeter posts posts commerceone jmeter jmeter commerceone 2085:thanks i just saw it come through the moderation queue i ve accepted you for jmeter cvs so i hope any other updates will go through automatically sebastian on 08 06 06 davanum srinivas dava gmail com wrote applied my patch thanks dims on 6 6 06 davanum srinivas dava gmail com wrote yes the only changes to http sampler2 are visibility i made sure of that yes i am willing to take care of it thanks dims on 6 6 06 sebb seb gmail com wrote well i m hoping to do a release very soon so i m not keen on changes to core classes such as http sampler 2 though i guess visibility changes are ok btw i did try to apply the patch to have a look at it but the soap part was partly rejected by eclipse not sure why if you are prepared to look after the soap sampler that would be very useful i have no means of testing changes and i think peter who know soap much better than me is rather busy at present sebastian on 06 06 06 davanum srinivas dava gmail com wrote folks anyone mind if i start working on svn directly for the soap xmlrpc stuff http issues apache org bugzilla show bug cgi id 39729 thanks dims davanum srinivas http wso2 com blogs davanum srinivas http wso2 com blogs davanum srinivas http wso2 com blogs httpsampler2 httpsampler show_bug 2096:yes some code would need to be split out of the existing classes which might mean some recoding to get round access to private methods there are are also a few stand alone test classes that could just be moved to the test source directory tree s on 21 07 05 michael stover msto apache org wrote eliminating the unit tests wouldn t be so easy the one s under the test directory are easy but there s still a lot done as static inner classes that imo should be moved mike on thu 2005 07 21 at 12 19 0100 sebb wrote i think it would be better to use the sampler name as the sample label and save the junit class method as the sampler data that way one can aggregate multiple samples with different class method names also i m not sure that many existing j meter j unit tests would make sense to test so maybe jmeter classes should be excluded from the list perhaps better would be to move all the j meter tests to a separate source tree and or separate jar file this could then be excluded from the normal binary distribution as the tests are only really needed by developers s jmeter junit jmeter 2132:msto apache org wrote b we re caching the results are we j meter rocks does it salut jordi jmeter