Hi @goulpan and welcome to the forum.
If you enable the heap status (File --> Preferences, General, check Show heap status) you will see this little indicator in the bottom right of your KNIME AP:
You can click the garbage can to begin a manual garbage collection.
Within a workflow, there is also this node: