One of the systems that can be used for monitoring trends on a system is munin. It turns out that adding a graph to munin is reasonably simple.
There is a good guide on the munin site.
So - I need a plugin that will return the number of open files.
lsof -u glassfish | wc -l