Troubleshooting your application in the Mendix Cloud: Cache

The "Cache" tab can be found in the "Monitor" page of your Cloud node.

It looks something like this (entities normally not obfuscated):

The “Totals” data grid will show the current number of Mendix objects in cache and list them by entity type. For example: MyModule.MyEntity (Count: 331)

The “User Sessions” data grid will show the entities per session, you can press the “Details” button to zoom in on the specific user.

The “unknown” user means the entities are part of a system session, like a scheduled event for example.

You can combine these numbers with the following graph (“Trends” tab in the Monitor page of your application):

If you fear your application might contain a memory leak you should always check this graph to see if an abnormally large amount of objects stay in cache. Especially a graph with the following shape over a long period of time should be worrisome:

In this case, you can refer back to the “Cache” tab. And see how many of each entity type are in cache and what session is keeping them in cache. You might be able to deduce the most likely source of the memory leak this way. For example, if you have 50500 entities in cache and 50000 are of type Car.Tyre, you might want to look into all places where you process a lot of Car.Tyre entities to see if you made a mistake somewhere that could explain the memory leak.

The cache statistics might also help you identify the most commonly used entities in your application.

Have more questions? Submit a request

0 Comments

Article is closed for comments.