Each time, I go on a specific jsf page which bean is annotated with @ViewScoped, the heap increase.
How to destroy ViewScope context ? (to destroy all associated objects and clean memory heap) Upgrading to 2.2.8 give me other errors, so i want to stay with jsf 2.2.6 implementation.
Question is relative to this : "ViewScope context is not destroyed when View Map is destroyed"
So what is the other method to achieve this ? Does it mean ViewScoped have a pegleg and that is not recommended to use it. So what is the alternative when you have a lot info to display and also ajax on the same page ?
I tried this solution too without sucess. (this post looks like the same) I read that and also that , i have tried @PreDestroy annotation who doesn't work either in ViewScoped.
I don't want to increase too much memory heap of VM. If i go on the same jsf page handled by a managed bean with a viewScoped, each time the memory increase until application crash.
Garbage Collector is not occuring during session even after multi-postback or if i close definitively the session and wait 5-10 minutes.
NB: @PreDestroy is still called when session is closed.