[Docker-JVB]Getting warning `Running with open files limit 1048576` in JVB logs

Getting below warning in JVB logs. Can someone please point out which limit it is talking about and how to fix it?

WARNING: Running with open files limit 1048576 (hard 1048576), thread limit null (hard null). These values are too low and they will limit the number of participants that the bridge can serve simultaneously

Please refer to:

@metadata were you able to fix this?

sorry, I didn’t work on it.

1 Like

public static void printUlimits() {

    Integer fileLimit = getIntFromCommand("ulimit -n");
    Integer fileLimitHard = getIntFromCommand("ulimit -Hn");
    Integer threadLimit = getIntFromCommand("ulimit -u");
    Integer threadLimitHard = getIntFromCommand("ulimit -Hu");

    StringBuilder sb
        = new StringBuilder("Running with open files limit ")
            .append(fileLimit)
            .append(" (hard ").append(fileLimitHard).append(')')
            .append(", thread limit ").append(threadLimit)
            .append(" (hard ").append(threadLimitHard).append(").");

    // At the time of this writing these constants correspond to somewhere
    // around 250 simultaneous participants.
    boolean warn = fileLimit == null || fileLimit <= 4096 ||
        threadLimit == null || threadLimit <= 8192;

    if (warn)
    {
        sb.append(" These values are too low and they will limit the ")
            .append("number of participants that the bridge can serve ")
            .append("simultaneously.");
        logger.warn(sb);
    }
    else
    {
        logger.info(sb);
    }

}

This is warning function and I see somehow it has wrong warning. Only value fileLimit <= 4096 should have warning. Here it gets 1048576 already!
So we should ignore it I guess.

1 Like

Yes they already fixed the limit issue but I guess forgot to fix the error message.