while working on the sample web browser application described in the tutorial here https://docs.oracle.com/javase/8/javafx/embedded-browser-tutorial/add-browser.htm
we observed that the memory usage while running is about 300 Mb and increases after each subsequent click.
This increase is cut down if we disable history records with eng.getHistory().setMaxSize(0); but the memory usage remains above 300Mb.
Is there a way to clear the web engine in order to achieve lower memory consumption?
(the first page to load is http://www.oracle.com/us/index.html and subsequently we follow links randomly on this page)