Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated README, added comment

  • Loading branch information...
commit 6f383e48a9c21b7bbbfab52f8362d0d20e76b801 1 parent 1c0b233
Jeremy Cloud authored
View
4 README.md
@@ -78,6 +78,10 @@ The commands are:
- threads
dump stack traces and stats about each currently running thread
+
+- gc
+
+ perform a garbage collection and then return some JVM stats.
## Web graphs
View
3  src/main/scala/com/twitter/ostrich/CommandHandler.scala
@@ -82,7 +82,8 @@ class CommandHandler(runtime: RuntimeEnvironment) {
case "threads" =>
getThreadStacks()
case "gc" =>
- (0 until 4).foreach(_ => System.gc)
+ // do a few GC's to really clear things out
+ (0 until 4).foreach(_ => System.gc())
Stats.getJvmStats()
case x =>
throw new UnknownCommandError(x)
Please sign in to comment.
Something went wrong with that request. Please try again.