Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


Plumbr PerfMon

Small Java agent to measure memory usage of you app and record measurements to a log file for postprocessing.


Add following argument to your java command:

Where options are one of the following

  • out=<output file> – redirect output to <output file>. Default is System.out
  • period=<x> – set the period for measurement in milliseconds. Default is 1000ms (1sec).

Interpreting output

As a result of working you’ll get a file with a content similar to this:

# time totalheap freeheap usedheap
0 63766528 61065504 2701024
101 63766528 57837352 5929176
203 63766528 57259992 6506536
304 63766528 57259992 6506536
405 63766528 57259992 6506536
506 63766528 57259992 6506536
607 63766528 56182464 7584064
708 63766528 55644968 8121560

These columns read following:

  1. time – time counting since the app started
  2. totalheap – total amount of heap available to your app
  3. freeheap – free heap
  4. usedheap – used heap

Next you can feed this data to your favourive plotting software to get the charts.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.