Hi there! I have memory problems with Mendix. Is it possible to do garbage collection explicitly? I tried to do it with a Java action, but it was not possible with an error. Could you please tell me if there is any way to do this? Thanks, Iwata
asked
Suguru Iwata
2 answers
2
You cannot influence the Java garbage collection. However you can improve the memory use
Analyse the cause of the memory problems. No of users? Inefficient microflows? Long lists? Inefficent retrieves.
Dropdowns without any limits retrieving too much data?
Retrieve only what you need, filter in xpath where possible not in the loop.
For more than 500-1000 objects use batches.
Clear lists that are no longer used.
In emergency cases use community commons ‘endtransaction’
Run microflow in task queue for long running stuff.
Commit in lists
Listen to the performance bot
Use OQL instead of creating reports with xpath retrieves