{"id":22059266,"url":"https://github.com/opentable/otj-pausedetector","last_synced_at":"2025-07-24T00:31:45.524Z","repository":{"id":30788008,"uuid":"34344957","full_name":"opentable/otj-pausedetector","owner":"opentable","description":"Java JVM pause detector library","archived":true,"fork":false,"pushed_at":"2022-04-19T23:53:13.000Z","size":94,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-07-07T05:19:04.975Z","etag":null,"topics":["pause","platform-java"],"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/opentable.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-21T18:32:34.000Z","updated_at":"2024-11-24T17:51:51.000Z","dependencies_parsed_at":"2022-09-08T16:12:05.635Z","dependency_job_id":null,"html_url":"https://github.com/opentable/otj-pausedetector","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/opentable/otj-pausedetector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fotj-pausedetector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fotj-pausedetector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fotj-pausedetector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fotj-pausedetector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentable","download_url":"https://codeload.github.com/opentable/otj-pausedetector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fotj-pausedetector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266774718,"owners_count":23982246,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["pause","platform-java"],"created_at":"2024-11-30T17:27:47.518Z","updated_at":"2025-07-24T00:31:45.263Z","avatar_url":"https://github.com/opentable.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"OpenTable JVM Pause Alarm\n=========================\n\n[![Build Status](https://travis-ci.org/opentable/otj-pausedetector.svg)](https://travis-ci.org/opentable/otj-pausedetector)\n\nProvide basic notification if the JVM is unable to keep its threads running for extended periods of time\ne.g. because of GC, lack of CPU time.\n\nBasic Usage\n-----------\n\nThe alarm has very basic configuration available:\n* Check interval -- how long to wait between each time check\n* Alarm time -- minimum pause to report\n* Action on pause -- user-supplied callback when a pause alarms\n* Clock -- replace the system clock for testing purposes\n\n```java\n\npublic class MyCoolApp {\n  public static void main(String[] args) {\n    try (new JvmPauseAlarm(100, 400).start()) {\n      runMyCoolApp();\n    }\n  }\n}\n\n```\n\nThis will set up the pause alarm to check every 100ms for pauses of at least 400ms.\n\nExample output:\n```\n[jvm-pause-alarm] INFO com.opentable.pausedetector.JvmPauseAlarm - Watching JVM for GC pausing.  Checking every 10ms for pauses of at least 400ms.\n[jvm-pause-alarm] WARN com.opentable.pausedetector.JvmPauseAlarm - Detected pause of 1000ms!\n```\n\nFor Spring, you can import `JvmPauseAlarmConfiguration` and starting / stopping the alarm\nis taken care of for you.  You then use the following properties to configure it:\n\n```\not.jvm-pause.enabled=true\not.jvm-pause.check-time=PT0.05s\not.jvm-pause.pause-time=PT0.2s\n```\n\n----\nCopyright (C) 2016 OpenTable, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fotj-pausedetector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentable%2Fotj-pausedetector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fotj-pausedetector/lists"}