Mojarra 2.3.0-m01-SNAPSHOT, MyFaces Extensions CDI Bundle 1.0.6, Glassfish 4.0, ObjectDB.
I have a RequestScoped CDI bean. When I first time come to a page that uses this bean, a new instance appears in the heap (I watch using VisualVM) and isn't removed later, but its @PreDestroy is being called. When I come second time without cleaning cookies, it creates another instance of the bean that is being cleaned in several seconds.
But when I clean the cookies and come to the page again, it creates the second unremovable bean instance. So after ~4000 new users the heap contains about 500 MB of useless objects and site is being down with out of memory error. Why does not GC clean some RequestScoped beans? They should be active during the requests processing and removed after it. Here is the references of one of this beans: