{"id":18888169,"url":"https://github.com/consol/chaos-professor","last_synced_at":"2025-04-14T23:13:43.153Z","repository":{"id":72844581,"uuid":"83667180","full_name":"ConSol/chaos-professor","owner":"ConSol","description":"Chaos Professor is a web application that creates some chaos in the JVM. ","archived":false,"fork":false,"pushed_at":"2017-04-08T11:18:57.000Z","size":568,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-14T23:13:32.286Z","etag":null,"topics":["chaos","demo","java","openshift"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConSol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-02T10:49:03.000Z","updated_at":"2019-05-13T17:25:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"96746a67-ceec-4293-8bfc-a29ccf98ca18","html_url":"https://github.com/ConSol/chaos-professor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConSol%2Fchaos-professor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConSol%2Fchaos-professor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConSol%2Fchaos-professor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConSol%2Fchaos-professor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConSol","download_url":"https://codeload.github.com/ConSol/chaos-professor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975327,"owners_count":21192210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chaos","demo","java","openshift"],"created_at":"2024-11-08T07:42:35.454Z","updated_at":"2025-04-14T23:13:43.135Z","avatar_url":"https://github.com/ConSol.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Chaos Professor\n===============\n\nUsage\n-----\n\nChaos Professor is a web application that creates some chaos in the JVM. \n\nAfter cloning with git you can start the web application locally using Maven and Spring boot.\n\n    mvn spring-boot:run\n\nThe web application runs on port 8080 by default. Open your browser and point to the application (http://localhost:8080). \nThe chaos professor web app exposes a REST API for calling some operations. Following \noperations are supported:\n\n* Heap: Creates Java heap memory usage by loading random byte data into memory.\n    * **size**: size in mb specifies the target size to allocate (default = 5mb)\n    * **time**: time in milliseconds to keep the allocated memory (default = 3000ms)\n* CPU: Creates CPU load by creating multiple threads that calculate Math.tan() values in endless loop.\n    * **threads**: amount of threads to create (default = 10)\n    * **keepAlive**: time to keep computing threads alive (default = 5000ms)\n\nExamples how to use the REST API. Open your browser and hit following examples:\n\n    http://localhost:8080/chaos/heap\n    http://localhost:8080/chaos/heap?size=500\u0026time=10000\n    http://localhost:8080/chaos/cpu\n    http://localhost:8080/chaos/cpu?threads=100\u0026keepAlive=20000\n    \nOperation properties are optional so you can leave them out as you like.     \n\nJolokia\n-------\n\nThe web application also exposes Jolokia services with a REST API. So you can access JVM related attributes \nin your browser:\n\n    http://localhost:8080/jolokia/read/java.lang:type=Memory/HeapMemoryUsage\n    http://localhost:8080/jolokia/read/java.lang:type=OperatingSystem/ProcessCpuLoad\n    \nFirst example reads the actual JVM memory usage. Second example reads the actual JVM CPU usage in %. The REST API returns\nJSON objects as response.\n\nYou can also execute JMX operations with Jolokia. For example you can call Java garbage collection. \n\n    http://localhost:8080/jolokia/exec/java.lang:type=Memory/gc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsol%2Fchaos-professor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconsol%2Fchaos-professor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconsol%2Fchaos-professor/lists"}