Смотрите на Часовой SQL . Это делает все, в чем Вы нуждаетесь и т.д.
С уважением, Lieven
If it's not enough to dump heap on OutOfMemoryError
, there's a HotSpot-dependent way of programmatically dumping heap from Java applications, if that's OK.
What about using the VM option -XX:+HeapDumpOnOutOfMemoryError
to tell the HotSpot VM to generate a heap dump when it runs out of memory?