Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
make it possible to trigger a gc
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking committed Oct 19, 2010
1 parent 93ca3c5 commit c0ffa1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/scala/com/twitter/ostrich/CommandHandler.scala
Expand Up @@ -84,6 +84,8 @@ class CommandHandler(runtime: RuntimeEnvironment) {
"uptime" -> mxRuntime.getUptime())
case "threads" =>
getThreadStacks()
case "gc" =>
System.gc()
case x =>
throw new UnknownCommandError(x)
}
Expand Down

0 comments on commit c0ffa1b

Please sign in to comment.