Is it possible to change the number of times to garbage collection?
In this page, It is said as follows. ”Objects which are the parameter of a page which is closed in a web browser are only garbage collected after five new pages have been opened.” It says up to 5 times, can this be changed?
As far as I know, this cannot be changed.
I wonder why you would want to change this. As explained in the document, this is only applicable if you want to use browser back button.
But, Mendix uses caching, so when a object is needed, it would first be looked in to the caching layer then it would go for database. There is a lot of logic in the background which we dont need to de-cipher now.
To answer your question:
Garbage collection (GC), they mention here is a java garbage collection and it wont be run per page. It is like a scheduled event which runs and removes all the objects that can be garbage collected at that moment in time.
Ofcourse you can trigger an adhoc Java garbage collection with a java class, but you can not change the schedule
Playing around with Java garbage collection is not advised if you dont know what it means. Because too much of GC will also affect performance.