rstudio / shinyloadtest

Tools for load testing Shiny applications
https://rstudio.github.io/shinyloadtest
108 stars 22 forks source link

(documentation issue?) setup & run shinycannon on windows #167

Open kmcd39 opened 1 week ago

kmcd39 commented 1 week ago

Hi!

I'm using shinyloadtest and shinycannon to develop and hopefully speed up a shiny app i'm working on.

I'm fairly new to setting up java libraries and documentation seemed to be missing something for me, as a windows 11 user.

The guides i'm using are on shinyloadtest & installing shinycannon.

I installed Java on my system, but the command in the former guide wouldn't work:

shinycannon recording.log https://shinyapp.example.com/ --workers 5 --loaded-duration-minutes 2 --output-dir run1

gave the error:

'shinycannon' is not recognized as an internal or external command,
operable program or batch file.

The installation guide tipped me to replace shinycannon with java -jar shinycannon-1.1.3-dd43f6b.jar. So the modified command:

java -jar shinycannon-1.1.3-dd43f6b.jar recording.log https://shinyapp.example.com/ --workers 5 --loaded-duration-minutes 5 --output-dir run1

did work. It'd be useful to link to an explainer on how to get the first command (with just "shinycannon") to work.

ppm1337 commented 2 days ago

It is already explained in the documentation that you've linked:

Download shinycannon-1.1.3-dd43f6b.jar to the directory you wish to run it in

(emphasis mine)

If you want to run shinycannon from any directory, you need to add the directory containing the jar file to the PATH.

jcheng5 commented 2 days ago

Oh I see, some places we say to use shinycannon when on Windows it's really java -jar shinycannon.