{"id":539,"name":null,"description":"Get memory usage of a process in Ruby","url":"https://github.com/zombocom/get_process_mem","last_synced_at":"2026-04-30T04:00:20.036Z","repository":{"id":13957514,"uuid":"16657780","full_name":"zombocom/get_process_mem","owner":"zombocom","description":"Get memory usage of a process in Ruby","archived":false,"fork":false,"pushed_at":"2024-07-22T20:43:41.000Z","size":71,"stargazers_count":487,"open_issues_count":5,"forks_count":36,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-04-24T19:05:56.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/zombocom.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-09T01:59:51.000Z","updated_at":"2026-04-21T14:08:29.000Z","dependencies_parsed_at":"2024-11-05T18:37:15.104Z","dependency_job_id":"dd4138d3-e428-4eb1-bbb3-e5ffe17101c6","html_url":"https://github.com/zombocom/get_process_mem","commit_stats":{"total_commits":66,"total_committers":16,"mean_commits":4.125,"dds":0.3787878787878788,"last_synced_commit":"244e0d3ba5cd48d6929591fb4b189abf9685fec6"},"previous_names":["schneems/get_process_mem"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/zombocom/get_process_mem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zombocom","download_url":"https://codeload.github.com/zombocom/get_process_mem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"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"}},"owner":{"login":"zombocom","name":"ZomboCom","uuid":"12397488","kind":"organization","description":"Welcome ... to ZomboCom.      This ... is ... ZomboCom. Welcome. This is ZomboCom; welcome ... to ZomboCom. You can do anything at ZomboCom. Anything at all","email":null,"website":null,"location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/12397488?v=4","repositories_count":17,"last_synced_at":"2024-03-25T20:34:25.400Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/zombocom","funding_links":[],"total_stars":8745,"followers":19,"following":0,"created_at":"2022-11-02T16:34:27.762Z","updated_at":"2024-03-25T20:34:28.533Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zombocom","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zombocom/repositories"},"packages":[],"commits":{"id":1741538,"full_name":"zombocom/get_process_mem","default_branch":"main","total_commits":66,"total_committers":14,"total_bot_commits":0,"total_bot_committers":0,"mean_commits":4.714285714285714,"dds":0.36363636363636365,"past_year_total_commits":0,"past_year_total_committers":0,"past_year_total_bot_commits":0,"past_year_total_bot_committers":0,"past_year_mean_commits":0.0,"past_year_dds":0.0,"last_synced_at":"2026-04-27T22:39:13.238Z","last_synced_commit":"244e0d3ba5cd48d6929591fb4b189abf9685fec6","created_at":"2024-09-13T16:19:36.752Z","updated_at":"2026-04-27T22:39:03.485Z","committers":[{"name":"schneems","email":"richard.schneeman@gmail.com","login":"schneems","count":42},{"name":"Karl Söderström","email":"karl.soderstrom@gmail.com","login":"ksoderstrom","count":6},{"name":"Frederick Cheung","email":"frederick.cheung@gmail.com","login":"fcheung","count":4},{"name":"pavel","email":"pavel.rosicky@easy.cz","login":"ahorek","count":3},{"name":"wonda-tea-coffee","email":"rikita.ishikawa@crowdworks.co.jp","login":"wonda-tea-coffee","count":2},{"name":"technogeeky","email":"technogeeky+github@gmail.com","login":"technogeeky","count":1},{"name":"Stan Hu","email":"stanhu@gmail.com","login":"stanhu","count":1},{"name":"Olle Jonsson","email":"olle.jonsson@gmail.com","login":"olleolleolle","count":1},{"name":"Juanito Fatas","email":"katehuang0320@gmail.com","login":"JuanitoFatas","count":1},{"name":"Elia Schito","email":"elia@schito.me","login":"elia","count":1},{"name":"Dave Gynn","email":"davegynn@gmail.com","login":"dgynn","count":1},{"name":"Ankit gupta","email":"ankit.gupta8898@gmail.com","login":"ankit8898","count":1},{"name":"Andrew Selder","email":"aselder@mac.com","login":"aselder","count":1},{"name":"Andrew Selder","email":"aselder@usertesting.com","login":null,"count":1}],"past_year_committers":[],"commits_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/commits","host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-28T00:00:07.369Z","repositories_count":6220824,"commits_count":899943326,"contributors_count":34881145,"owners_count":1146570,"icon_url":"https://github.com/github.png","host_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://commits.ecosyste.ms/api/v1/hosts/GitHub/repositories"}},"issues_stats":{"full_name":"zombocom/get_process_mem","html_url":"https://github.com/zombocom/get_process_mem","last_synced_at":"2026-04-24T01:00:35.709Z","status":"error","issues_count":20,"pull_requests_count":34,"avg_time_to_close_issue":29038319.76470588,"avg_time_to_close_pull_request":13088545.53125,"issues_closed_count":17,"pull_requests_closed_count":32,"pull_request_authors_count":17,"issue_authors_count":15,"avg_comments_per_issue":5.3,"avg_comments_per_pull_request":1.6176470588235294,"merged_pull_requests_count":29,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"created_at":"2023-05-12T11:19:46.491Z","updated_at":"2026-04-24T01:00:35.710Z","repository_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem","issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/zombocom%2Fget_process_mem/issues","issue_labels_count":{},"pull_request_labels_count":{},"issue_author_associations_count":{"NONE":13,"MEMBER":4,"CONTRIBUTOR":3},"pull_request_author_associations_count":{"CONTRIBUTOR":14,"MEMBER":11,"NONE":9},"issue_authors":{"schneems":4,"aselder":2,"jjb":2,"yovasx2":1,"erwanlr":1,"LucasCioffi":1,"edariedl":1,"vusaalab":1,"wonda-tea-coffee":1,"nsallis":1,"andrewngo":1,"nathany":1,"dgynn":1,"bdmac":1,"wjordan":1},"pull_request_authors":{"schneems":11,"ahorek":3,"ksoderstrom":3,"wonda-tea-coffee":2,"aselder":2,"fcheung":2,"ankit8898":1,"bdmac":1,"JuanitoFatas":1,"y-yagi":1,"dgynn":1,"elia":1,"MSP-Greg":1,"olleolleolle":1,"technogeeky":1,"Filirom1":1,"stanhu":1},"host":{"name":"GitHub","url":"https://github.com","kind":"github","last_synced_at":"2026-04-30T00:00:06.639Z","repositories_count":14448193,"issues_count":34185574,"pull_requests_count":112233628,"authors_count":11249282,"icon_url":"https://github.com/github.png","host_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories","owners_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/owners","authors_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors"},"past_year_issue_labels_count":{},"past_year_pull_request_labels_count":{},"past_year_issue_author_associations_count":{"NONE":1},"past_year_pull_request_author_associations_count":{"NONE":1},"past_year_issue_authors":{"jjb":1},"past_year_pull_request_authors":{"y-yagi":1},"maintainers":[{"login":"schneems","count":15,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/schneems"}],"active_maintainers":[]},"events":{"total":{"ForkEvent":4,"IssuesEvent":1,"WatchEvent":22,"IssueCommentEvent":1},"last_year":{"ForkEvent":1,"IssuesEvent":1,"WatchEvent":7}},"keywords":[],"dependencies":[{"ecosystem":"rubygems","filepath":"Gemfile","sha":null,"kind":"manifest","created_at":"2022-08-28T09:10:26.055Z","updated_at":"2022-08-28T09:10:26.055Z","repository_link":"https://github.com/zombocom/get_process_mem/blob/main/Gemfile","dependencies":[{"id":3026689596,"package_name":"sys-proctable","ecosystem":"rubygems","requirements":"\u003e= 0","direct":true,"kind":"runtime","optional":false}]},{"ecosystem":"rubygems","filepath":"get_process_mem.gemspec","sha":null,"kind":"manifest","created_at":"2022-08-28T09:10:26.100Z","updated_at":"2022-08-28T09:10:26.100Z","repository_link":"https://github.com/zombocom/get_process_mem/blob/main/get_process_mem.gemspec","dependencies":[{"id":3026689623,"package_name":"ffi","ecosystem":"rubygems","requirements":"~\u003e 1.0","direct":true,"kind":"runtime","optional":false},{"id":3026689624,"package_name":"sys-proctable","ecosystem":"rubygems","requirements":"~\u003e 1.2","direct":true,"kind":"development","optional":false},{"id":3026689625,"package_name":"rake","ecosystem":"rubygems","requirements":"~\u003e 12","direct":true,"kind":"development","optional":false},{"id":3026689626,"package_name":"test-unit","ecosystem":"rubygems","requirements":"~\u003e 3","direct":true,"kind":"development","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/check_changelog.yml","sha":null,"kind":"manifest","created_at":"2024-11-05T18:37:14.795Z","updated_at":"2024-11-05T18:37:14.795Z","repository_link":"https://github.com/zombocom/get_process_mem/blob/main/.github/workflows/check_changelog.yml","dependencies":[{"id":20577534719,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]},{"ecosystem":"actions","filepath":".github/workflows/ci.yml","sha":null,"kind":"manifest","created_at":"2024-11-05T18:37:14.916Z","updated_at":"2024-11-05T18:37:14.916Z","repository_link":"https://github.com/zombocom/get_process_mem/blob/main/.github/workflows/ci.yml","dependencies":[{"id":20577534783,"package_name":"actions/checkout","ecosystem":"actions","requirements":"v4","direct":true,"kind":"composite","optional":false},{"id":20577534784,"package_name":"ruby/setup-ruby","ecosystem":"actions","requirements":"v1","direct":true,"kind":"composite","optional":false}]}],"score":8.837536046107566,"created_at":"2024-12-15T21:38:08.307Z","updated_at":"2026-04-30T04:00:20.037Z","avatar_url":"https://github.com/zombocom.png","language":"Ruby","monthly_downloads":0,"readme":"# Get Process Memory\n\n[![CI](https://github.com/zombocom/get_process_mem/actions/workflows/ci.yml/badge.svg)](https://github.com/zombocom/get_process_mem/actions/workflows/ci.yml)\n[![Help Contribute to Open Source](https://www.codetriage.com/zombocom/get_process_mem/badges/users.svg)](https://www.codetriage.com/zombocom/get_process_mem)\n\nDo you need to get the memory usage of a process? Great because this library does that.\n\n## Install\n\nIn your `Gemfile` add\n\n```ruby\ngem 'get_process_mem'\n```\n\nthen run `$ bundle install`.\n\nIf you're using Windows you'll also need to have the `sys-proctable` gem.\n\n## Use It\n\nGet the current process memory usage:\n\n```ruby\nmem = GetProcessMem.new\nputs mem.inspect\n#\u003cGetProcessMem @mb=24.28125 @gb=0.023712158203125 @kb=24864.0 @bytes=25460736 \u003e\nmem.bytes # =\u003e 25460736\nmem.kb    # =\u003e 24864.0\nmem.mb    # =\u003e 24.28125\nmem.gb    # =\u003e 0.023712158203125\n```\n\nNote: All numeric values returned as a float except bytes which is an integer.\n\nGet memory usage of another process:\n\n```ruby\n`echo 'nothing to see here' \u003e tmplogf`\npid = Process.spawn('tail -f tmplog')\nmem = GetProcessMem.new(pid)\nputs mem.inspect\n# =\u003e #\u003cGetProcessMem @mb=0.48828125 @gb=0.000476837158203125 @kb=500.0 @bytes=512000 \u003e\n\nProcess.kill('TERM', pid)\nProcess.wait(pid)\n\nmem.inspect\n# =\u003e \"#\u003cGetProcessMem @mb=0.0 @gb=0.0 @kb=0.0 @bytes=0\u003e\"\n`rm tmplog`\n```\n\nOn Linux, for memory size we return the RSS or the [Resident Set Size](http://en.wikipedia.org/wiki/Resident_set_size), basically how much memory the program takes up in RAM at the time, including all the shared memory.\n\n\n## License\n\nMIT\n","funding_links":[],"readme_doi_urls":[],"works":{},"citation_counts":{},"total_citations":0,"keywords_from_contributors":["activejob","activerecord","mvc","rubygem","rack","multithreading","devise","sidekiq","jobs","background-jobs"],"project_url":"https://ruby.ecosyste.ms/api/v1/projects/539","html_url":"https://ruby.ecosyste.ms/projects/539"}