{"id":38048662,"url":"https://github.com/dyorgio/cpu-watcher","last_synced_at":"2026-01-16T20:01:58.387Z","repository":{"id":44791481,"uuid":"141623144","full_name":"dyorgio/cpu-watcher","owner":"dyorgio","description":"A Java Library/App to limit/monitor another process CPU usage.","archived":false,"fork":false,"pushed_at":"2022-02-11T23:15:10.000Z","size":139,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T14:57:28.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dyorgio.github.io/cpu-watcher/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dyorgio.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}},"created_at":"2018-07-19T19:36:14.000Z","updated_at":"2025-01-04T08:57:07.000Z","dependencies_parsed_at":"2022-07-25T23:17:53.595Z","dependency_job_id":null,"html_url":"https://github.com/dyorgio/cpu-watcher","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dyorgio/cpu-watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fcpu-watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fcpu-watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fcpu-watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fcpu-watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dyorgio","download_url":"https://codeload.github.com/dyorgio/cpu-watcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dyorgio%2Fcpu-watcher/sbom","scorecard":{"id":362476,"data":{"date":"2025-08-11","repo":{"name":"github.com/dyorgio/cpu-watcher","commit":"1eb55e4f8497c1d8cf199f3d39abb0c71a56664e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/maven.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/dyorgio/cpu-watcher/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/dyorgio/cpu-watcher/maven.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":2,"reason":"1 out of the last 4 releases have a total of 1 signed artifacts.","details":["Info: signed release artifact: cpu-watcher-1.3.1-javadoc.jar.asc: https://github.com/dyorgio/cpu-watcher/releases/tag/cpu-watcher-1.3.1","Warn: release artifact cpu-watcher-1.2.4 not signed: https://api.github.com/repos/dyorgio/cpu-watcher/releases/44980768","Warn: release artifact cpu-watcher-1.2.3 not signed: https://api.github.com/repos/dyorgio/cpu-watcher/releases/32998440","Warn: release artifact 1.2.2 not signed: https://api.github.com/repos/dyorgio/cpu-watcher/releases/24115199","Warn: release artifact cpu-watcher-1.3.1 does not have provenance: https://api.github.com/repos/dyorgio/cpu-watcher/releases/57772474","Warn: release artifact cpu-watcher-1.2.4 does not have provenance: https://api.github.com/repos/dyorgio/cpu-watcher/releases/44980768","Warn: release artifact cpu-watcher-1.2.3 does not have provenance: https://api.github.com/repos/dyorgio/cpu-watcher/releases/32998440","Warn: release artifact 1.2.2 does not have provenance: https://api.github.com/repos/dyorgio/cpu-watcher/releases/24115199"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T11:08:50.339Z","repository_id":44791481,"created_at":"2025-08-18T11:08:50.339Z","updated_at":"2025-08-18T11:08:50.339Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-16T20:01:57.672Z","updated_at":"2026-01-16T20:01:58.376Z","avatar_url":"https://github.com/dyorgio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Cpu Watcher\n===============\n[![Java CI with Maven](https://github.com/dyorgio/cpu-watcher/actions/workflows/maven.yml/badge.svg?branch=master)](https://github.com/dyorgio/cpu-watcher/actions/workflows/maven.yml) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.dyorgio.runtime/cpu-watcher/badge.svg?1)](https://maven-badges.herokuapp.com/maven-central/com.github.dyorgio.runtime/cpu-watcher)\n\nA Java Library/App to monitor/limit another process CPU usage.\n\nWhy use it?\n-----\n* Limit any process cpu time usage in a multiplatform way.\n\nHow it works?\n-----\nUsing a new thread to each external process that you want to monitor/limit this library watches cpu times and sends signals according with cpu specified limit and timelapse.\n\n* SIGSTOP/SIGCONT on macos/linux\n* NtSuspendProcess/NtResumeProcess on Windows.\n\nUsage\n-----\nAs Java library:\n\n```java\n// Create a new CpuWatcher object with target PID (own pid throws exception to prevents deadlock). \n// Target percentage is not per core, is always over the entire system load, \n// on example above we want 50% of 1 core only, and host cpu has 8 cores (4 phisical, 4 HT).\n// 50%/8 = 6.25%\nCpuWatcher cpuWatcher = new CpuWatcher(pid, 50f * CpuWatcher.getOneCoreOnePercent());\n// start watcher thread\ncpuWatcher.start();\n// You can monitor current cpu usage too!\ncpuWatcher.getCpuUsage();\n// ... or change usage limit at runtime (null to disable limiter)\ncpuWatcher.setUsageLimit(null);\n// Wait for process (optional);\ncpuWatcher.join();\n```\n\nAs Standalone App:\n\n```bash\njava -jar cpu-watcher-$VERSION.jar $PID $MAX_CPU\n```\n\nMaven\n-----\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.dyorgio.runtime\u003c/groupId\u003e\n    \u003cartifactId\u003ecpu-watcher\u003c/artifactId\u003e\n    \u003cversion\u003e1.3.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyorgio%2Fcpu-watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdyorgio%2Fcpu-watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdyorgio%2Fcpu-watcher/lists"}