Initial version of bfCheckJavaMemory

This displays a warning message if the heap space is below 512m.  Only
functions that call setId currently call bfCheckJavaMemory.

/cc @sbesson