Application node disk usage in %

0
Hi there, I recently received a Mendix Alert saying that the Application node disk usage in % is above 80%. The documentation says the following about this:  5.3.3 Disk usage The disk usage graph shows only the disk usage inside the container. This is usually only relevant if your application creates a lot of temporary files in /tmp. This value is not the same as the file document storage. I am not quite sure on how to debug this. Does this mean that I create a lot of file documents that are not committed (and a a results end up in /tmp)?  What is the best approach to tackle this issue? Thanks! Tim UPDATE: This is the answer from Mendix support; Hello Tim, This is simply an automated alert letting you know that your Application has used up all of it's available File Storage space. You can either delete some of your Files (including file documents that are not committed), or you can purchase additional File Storage by contacting your CSM. Do you have any further questions about this information?  
asked
3 answers
3

A way to solve it quickly is to restore the database on itself. So create backup, clean the environment and do a restore.

This will most of the time also free up tables in Postgres in tables where a lot of records are created and removed. So I think it is good practise to do this once and a while. It influances your uptime though.

Regards,

Ronald

 

answered
1

This could be uploaded file for which the record in Mendix is not committed, but I suspect that you might have some java actions in your app that create temporary files that aren't cleaned up properly causing the error message to show up.

answered
0

You can also measure this stuff yourself

 

        var process = new java.lang.ProcessBuilder(
            "df",
            "-h"
        ).start();
        var is = process.getInputStream();
        var isr = new java.io.InputStreamReader(is);
        var br = new java.io.BufferedReader(isr);
        var line;
        var str_ret='';
        while ((line = br.readLine()) != null) {
          //console.log(line);
          str_ret+=line+'\n';
        }

Just point du to com.mendix.core.Core.getConfiguration().getTempPath().getAbsolutePath();

answered