Updating from 10.12 to 10.24 now exceeds memory per instance

0
After updating, I got extra memory and it exceeds my memory per instance limit, Any Idea how to make this smaller without scaling the limit or getting a plan upgrade?
asked
4 answers
6

Please check this also.

 

Mendix Community - Question Details

answered
3

Hi Ephraim, when upgrading Mendix from 10.12 to 10.24, it’s common to see higher memory usage because newer versions often include additional features, improvements, or runtime changes that require more memory by default.

To reduce memory consumption without increasing instance limits or upgrading your plan try these steps it might help you,

 

Remove Unused Modules and Widgets: Sometimes new Mendix versions load additional features that your app might not use. Removing or disabling unused modules and widgets helps lower memory footprint.

Optimize Data Handling: Large data sets loaded in memory increase usage. Use pagination or lazy loading to limit data loaded at any time. Avoid fetching or storing large object collections in microflows or sessions.

Minimize Session Data: Keep session variables lean. Avoid storing large objects or collections in user sessions and clear session data when no longer needed.

Review Scheduled Events and Background Tasks: Check if scheduled microflows or event handlers have changed or run more frequently. Optimizing or reducing their workload helps lower memory usage

Profile and Optimize Microflows: Use Mendix’s performance tools to identify memory-heavy microflows or custom Java actions and optimize their logic to create fewer in-memory objects.

Avoid Complex Object Graphs: Complex nested objects or recursion can cause memory spikes. Simplify logic or break large object graphs into smaller chunks.

 

Focus on optimizing your app’s data handling, session usage, and microflows to reduce memory consumption within the same instance limit.

 

I hope this one helps you! :)

answered
0

Same problem here

answered
0

I don't understand how to fix this issue,

I've seen a lot of post that states you can reduce memory usage by clearing unused lists and stuff.

 

Just to be sure I cleaned my whole database, still memory usage over 1GB then I completely cleaned the environment and the warning is still there ! (See below)

 

image.png

 

The fact that is still there even tho the environment is empty really makes me question this warning

 

After cleaning the metrics doesn't display any drop down in memory usage, is it even possible to reduce it under 1GB ?

image.png

 

answered