{"id":21177620,"url":"https://github.com/tersesystems/jvmsounds","last_synced_at":"2025-07-09T22:30:49.682Z","repository":{"id":66787105,"uuid":"279635701","full_name":"tersesystems/jvmsounds","owner":"tersesystems","description":"Play memory allocation rate and GC events as sine wave and percussion, respectively.","archived":false,"fork":false,"pushed_at":"2020-07-19T21:10:29.000Z","size":779,"stargazers_count":32,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T08:01:40.750Z","etag":null,"topics":["audio","garbage-collection","java","memory-allocation"],"latest_commit_sha":null,"homepage":"https://tersesystems.com/blog/2020/07/19/listening-to-jvm-metrics-with-javasound/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tersesystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-07-14T16:19:35.000Z","updated_at":"2024-01-14T00:01:30.000Z","dependencies_parsed_at":"2023-03-23T03:31:42.734Z","dependency_job_id":null,"html_url":"https://github.com/tersesystems/jvmsounds","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tersesystems/jvmsounds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tersesystems%2Fjvmsounds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tersesystems%2Fjvmsounds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tersesystems%2Fjvmsounds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tersesystems%2Fjvmsounds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tersesystems","download_url":"https://codeload.github.com/tersesystems/jvmsounds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tersesystems%2Fjvmsounds/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504572,"owners_count":23618825,"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":["audio","garbage-collection","java","memory-allocation"],"created_at":"2024-11-20T17:16:37.378Z","updated_at":"2025-07-09T22:30:49.336Z","avatar_url":"https://github.com/tersesystems.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JVM Sounds\n\nThis is a very simple JVM library that plays JVM events as audio sounds.  \n \n* Memory allocation rate as a sine tone\n* Minor GC is a wood percussion\n* Major GC is a noise hit \n* Hiccups (underlying JVM timejumps) are played as sample hiccups.\n\nPlease see [Logging vs Memory](https://tersesystems.com/blog/2020/07/09/logging-vs-memory/) and [the tweet](https://twitter.com/will_sargent/status/1281718634289573890).\n\n## Examples\n\nThere are MP3 recordings available that show how the JVM sounds [using an example program](https://github.com/tersesystems/jvmsounds/blob/master/src/test/java/example/Main.java#L22):\n\n* [Light Load with 10000 wastage](https://github.com/tersesystems/jvmsounds/blob/master/recordings/10000.mp3)\n* [Medium Load with 20000 wastage](https://github.com/tersesystems/jvmsounds/blob/master/recordings/20000.mp3)\n* [Heavy Load with 30000 wastage](https://github.com/tersesystems/jvmsounds/blob/master/recordings/30000.mp3)\n\nThere's also an example of a JVM running under Virtualbox while under a Gatling load test, which makes it prone to hiccups:\n\n* [Gatling with Hiccups](https://github.com/tersesystems/jvmsounds/blob/master/recordings/gatling-with-hiccup.mp3)\n\n## Resolver\n\nThe libraries are in Bintray under `tersesystems/maven`.  Installation instructions are similar to [terse-logback installation](https://tersesystems.github.io/terse-logback/installation/):\n\n```groovy\nrepositories {\n    maven {\n        url  \"https://dl.bintray.com/tersesystems/maven\" \n    }\n}\n```\n\nor SBT:\n\n```\nresolvers += Resolver.bintrayRepo(\"tersesystems\", \"maven\")\n```\n\n## Library\n\nThe library has dependencies on jSyn and on `jvm-alloc-rate-meter` and `jvm-hiccup-meter`.  It is plain Java, no Scala library required.\n\n```scala\nlibraryDependencies += \"com.tersesystems.jvmsounds\" % \"jvmsounds\" % \"0.0.1\"\n```\n\n## Java Agent\n\nYou can run this as a java agent.  I like using [sbt-javaagent](https://github.com/sbt/sbt-javaagent).\n\n```scala\njavaAgents += \"com.tersesystems.jvmsounds\" % \"jvmsounds\" % \"0.0.1\"\n```\n\n## Options\n\n* `-n napTimeMs`\n* `-at allocThresholdMs` - default is 300 MB/second, below that it is silent\n* `-av allocVolume 0.0 - 1.0` - volume of the allocation tone, default 0.1\n* `-mv minorGCVolume 0.0 - 1.0` - volume of the minor GC event, default 0.6\n* `-Mv mixedGCVolume 0.0 - 1.0` - volume of the mixed GC event, default 0.6\n* `-ht hiccupThresholdMs` - default is 50 ms, below that no hiccup\n* `-hv hiccupVolume 0.0 - 1.0` - volume of the hiccup, default 1.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftersesystems%2Fjvmsounds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftersesystems%2Fjvmsounds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftersesystems%2Fjvmsounds/lists"}