Skip to content

Instantly share code, notes, and snippets.

@borntyping
Created February 6, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borntyping/59b4bb4263b313729eb2 to your computer and use it in GitHub Desktop.
Save borntyping/59b4bb4263b313729eb2 to your computer and use it in GitHub Desktop.
Cyborg output
sam@centurion ~borntyping/cyborg git:master $ cargo run -- ~borntyping/rust-wrecking-ball/target/memory.pid
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling cyborg v0.0.1 (file:///home/sam/Development/borntyping/cyborg)
Running `target/cyborg /home/sam/Development/borntyping/rust-wrecking-ball/target/memory.pid`
--- Process { pid: 28381, name: "<main>", status: Sleeping }
--- Memory { rss: 37987, vms: 11650, shared: 320, text: 215, lib: 0, data: 33882, dirty: 0 }
-!- PID 28381 has exceded memory limit by 7987 bytes (37987 / 30000)
-!- Sending SIGKILL to PID 28381
-!- PID no longer exists (couldn't open path as file)
--- Detail: no such file or directory (No such file or directory); path=/proc/28381/stat; mode=open; access=read
sam@centurion ~borntyping/rust-wrecking-ball git:master $ cargo run --bin memory
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling rust-wrecking-ball v0.0.1 (file:///home/sam/Development/borntyping/rust-wrecking-ball)
Running `target/memory`
Description Consume memory and wait to be killed
Pidfile /home/sam/Development/borntyping/rust-wrecking-ball/target/memory.pid
PID 28381
An unknown error occurred
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment