Thread: Re: [Loadsim-users] Re: LoadSim not finishing simulation
Brought to you by:
vsheffer
From: <ke...@ke...> - 2001-04-16 19:01:27
|
On 04/16/2001 01:41:26 PM, Vincent Sheffer wrote: > Which JDK are you using? I use JDK 1.3. In the past, I've had > problems with the HTTPConnection class in earlier JDKs. Currently using IBM JDK 1.2.2 (needed for Websphere). I'll try the 1.3 JDK though it will unfortunately break Websphere :-P > LoadSim also ships with something called HTTPClient, > which is another, 3rd party implementation of the HTTP comms > layer. This worked better than the JDK 1.1.x implementations How do you get loadsim to use this instead? Should be a quick way of finding out whether the JDK is the culprit. ken |
From: <ke...@ke...> - 2001-04-17 00:56:59
|
On 04/16/2001 03:37:21 PM, Vincent Sheffer wrote: > Try this: > java -classpath $LOADSIM_HOME/lib/loadsim.jar > -Djava.protocol.handler.pkgs=HTTPClient org.openware.loadsim.LoadSim Behavior is exactly the same :-( It starts the simulation and never finishes. "Exit" hangs. I'll try upgrading my JDK to 1.3. Can't think of anything else... ken |
From: Vincent S. <vsh...@op...> - 2001-04-17 05:48:46
|
I've just tried it again with the simulation.xml file that I sent you. After typing 'start' I get "Started simulation on '//localhost:8000". Do you get that message? To get the Tcl prompt back you do need to hit the return key. I've also exited the simulation before it was over and it works fine. LoadSim has replaced the Tcl exit command with one of it's own to stop all of the other simulations running. This takes a few seconds, but you should see something to the effect of: Stopping simulation //localhost:8000 Simulation complete: remote host is '//localhost:8000': elapsed time is 00:01:30 ms I've also tried the IBM JDK 1.3 (I run Linux), and I get the same behavior. Unfortunately, I don't have a JDK 1.2.2, so I am unable to try it (and it is too late right now to download it). I am troubled as to why you are having so much difficulty. Are you using the simulation.xml that I sent you a couple of days ago? It should absolutely not hang. When I ran the simulation it did take somewhere around 10-20 minutes (I didn't notice the elapsed time unfortunately) to complete, and there is no feedback during the simulation, so it *will* look like it is just sitting there doing nothing. -vince On Mon, 16 Apr 2001, ke...@ke... wrote: > On 04/16/2001 03:37:21 PM, Vincent Sheffer wrote: > > Try this: > > java -classpath $LOADSIM_HOME/lib/loadsim.jar > > -Djava.protocol.handler.pkgs=HTTPClient org.openware.loadsim.LoadSim > > Behavior is exactly the same :-( > It starts the simulation and never finishes. > "Exit" hangs. > I'll try upgrading my JDK to 1.3. Can't think > of anything else... > > > ken > > > _______________________________________________ > Loadsim-users mailing list > Loa...@li... > http://lists.sourceforge.net/lists/listinfo/loadsim-users |
From: <ke...@ke...> - 2001-04-18 15:38:59
|
On 04/17/2001 01:46:15 AM, Vincent Sheffer wrote: > After typing 'start' I get "Started simulation on > '//localhost:8000". Do you get that message? > To get the Tcl prompt back you do need to hit the return key. Yes, I do get this. The copy/paste I sent you shows the TCL prompt. > using the simulation.xml that I sent you a couple of days ago? I modified it to do just 5 iterations w/ 1 user to make sure I see the Stop msg more quickly. I just tried it on a different machine w/ Sun JDK 1.3_02 (the latest Win32 one). It does stop properly on that one. I'll try a different JDK on my system. It's a bummer that it doesn't work on 1.2.2 because that is my main Java development environment (VisualAge for Java w/ Websphere)... ken |
From: <ke...@ke...> - 2001-04-18 19:30:26
|
On 04/18/2001 03:27:31 PM, vinny wrote: > It looks like JDK 1.3 is the first version of the JDK that has a good > implementation of the HTTP client code. But shouldn't the built-in http code from running it this way have worked? java -classpath $LOADSIM_HOME/lib/loadsim.jar -Djava.protocol.handler.pkgs=HTTPClient org.openware.loadsim.LoadSim I'll confirm when I get JDK1.3 on my current system. Tied up w/ performance tweaking now. ken |
From: <vi...@ne...> - 2001-04-19 15:55:03
|
Alright, here is the history... When I first starting working on this about 1 1/2 ago, I was jusing JDK 1.1.8. The implementation of the HTTP client code flat out didn't work (I forget exactly what the problem was, but it simply didn't work). So, I hunted around and found HTTPClient, which using the property that you give, did work. At the job that I was doing when I first used LoadSim I only simulated up to around 80 users (only about 20 per machine). HTTPClient worked fine. More recently, however, I used LoadSim simulating much large numbers of users (upwards of 200 per machine). HTTPClient started breaking down and not working very well. So, I decided to see if the JDK 1.3 (which is the JDK I use now exclusively -- we use Weblogic instead of Websphere) had improved their HTTP client implementation. To my surprise and happiness it was markedly better. So, now, by default, LoadSim uses the built-in HTTP client implementation (which, for that reason, I would recommend using JDK 1.3 for running simulations). LoasSim still ships with HTTPClient, which you should be able to use. Now, for those interested, the version of HTTPClient that I use is from over a year ago. Maybe newer versions work better. If you'd like to try a new version check out the link to the HTTPClient site in the acknowledgements section of the LoadSim homepage (I think LoadSim ships with 0.3.1 and the newer version is 0.3.2). Well, that is probably about as cleas as mud, wouldn't you say? > > >On 04/18/2001 03:27:31 PM, vinny wrote: >> It looks like JDK 1.3 is the first version of the JDK that has a good >> implementation of the HTTP client code. > >But shouldn't the built-in http code from running it this >way have worked? >java -classpath $LOADSIM_HOME/lib/loadsim.jar >-Djava.protocol.handler.pkgs=HTTPClient org.openware.loadsim.LoadSim > >I'll confirm when I get JDK1.3 on my >current system. Tied up w/ performance >tweaking now. > > > ken > > >_______________________________________________ >Loadsim-users mailing list >Loa...@li... >http://lists.sourceforge.net/lists/listinfo/loadsim-users > > |