Hi,
I have microflow that needs to iterate over 170000 entities and generate a value for an attribute in each. When I run this microflow over a small subset it's fine, but over the full 170000 entities I eventually get a M2EE error telling me the GC overhead limit has been exceeded. The computer I'm developing on only has 4GB of memory and isn't ideal. Is there a way to force a garbage collection? This microflow will only ever be run once or twice as it's used to initially seed the database.
Thanks
An unhandled error occurred in the MxRuntime.
--------
java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.util.HashMap.newNode(HashMap.java:1742)
at java.util.HashMap.putVal(HashMap.java:641)
at java.util.HashMap.put(HashMap.java:611)
at com.mendix.basis.objectmanagement.MendixObjectImpl.clone(MendixObjectImpl.java:537)
at com.mendix.basis.objectmanagement.SchemeManagerImpl.getInstance(SchemeManagerImpl.java:929)
at com.mendix.basis.action.user.Retriever$class.com$mendix$basis$action$user$Retriever$$buildObject(Retriever.scala:58)
at com.mendix.basis.action.user.Retriever$$anonfun$buildObjects$1.apply(Retriever.scala:53)
at com.mendix.basis.action.user.Retriever$$anonfun$buildObjects$1.apply(Retriever.scala:52)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at com.mendix.basis.action.user.Retriever$class.buildObjects(Retriever.scala:52)
at com.mendix.basis.action.user.Retriever$class.retrieveFromDatabase(Retriever.scala:36)
at com.mendix.basis.action.user.RetrieveIdListAction.retrieveFromDatabase(RetrieveIdListAction.scala:14)
at com.mendix.basis.action.user.RetrieveIdListAction.com$mendix$basis$action$user$RetrieveIdListAction$$retrieve(RetrieveIdListAction.scala:58)
at com.mendix.basis.action.user.RetrieveIdListAction$$anonfun$8.apply(RetrieveIdListAction.scala:50)
at com.mendix.basis.action.user.RetrieveIdListAction$$anonfun$8.apply(RetrieveIdListAction.scala:50)
at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
at scala.collection.immutable.Map$Map1.foreach(Map.scala:116)
at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
at com.mendix.basis.action.user.RetrieveIdListAction.executeAction(RetrieveIdListAction.scala:50)
at com.mendix.basis.action.user.RetrieveIdListAction.executeAction(RetrieveIdListAction.scala:14)
at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:50)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:73)
at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:53)
at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:51)
at com.mendix.basis.actionmanagement.ActionManager$1.execute(ActionManager.java:170)