an app to test how infrastructure handles an app that leaks memory or becomes slow
268
A test app to simulate bad things
This app can be run locally either via a local tomcat server or via Docker.
Add bad-java-test-app to your tomcat server
$ /build.sh
$ docker run -d --rm -p 8080:8080 bad-java-test-app
In a browser hit the url http://localhost:8080/bad-java-test-app/test. This will open a page that will refresh every 3 seconds. It will show
It might also be useful to issue a curl command in a loop, like while true; do curl localhost:8080/bad-java-test-app/test; sleep 3;done This can display the same data. Note that each request will get a new session, so the session reuest lifespand won't be useful.
To initiate leaking issue a request with query string of "leak", like curl localhost:8080/bad-java-test-app/test?leak
To initiate slowness issue a request with query string of "slow", like curl localhost:8080/bad-java-test-app/test?slow
To stop leaking and slowness issue a request with a query string of "test", like curl localhost:8080/bad-java-test-app/test?behave
Content type
Image
Digest
Size
71.8 MB
Last updated
over 8 years ago
docker pull dougfish1/bad-java-app