Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55c69f68 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Increase fdtrack thresholds

System server is holding on to a lot more files than before
and close to hitting the 2K limit under normal usage. Increase
the thresholds to avoid aborting on heavy usage.

Fixes: 278809522
Test: N/A
Change-Id: I7c5fd85324538a1c68b07c3c4962f64153724082
parent 0c919fc1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -593,8 +593,8 @@ public final class SystemServer implements Dumpable {
     * Spawn a thread that monitors for fd leaks.
     */
    private static void spawnFdLeakCheckThread() {
        final int enableThreshold = SystemProperties.getInt(SYSPROP_FDTRACK_ENABLE_THRESHOLD, 1024);
        final int abortThreshold = SystemProperties.getInt(SYSPROP_FDTRACK_ABORT_THRESHOLD, 2048);
        final int enableThreshold = SystemProperties.getInt(SYSPROP_FDTRACK_ENABLE_THRESHOLD, 1600);
        final int abortThreshold = SystemProperties.getInt(SYSPROP_FDTRACK_ABORT_THRESHOLD, 3000);
        final int checkInterval = SystemProperties.getInt(SYSPROP_FDTRACK_INTERVAL, 120);

        new Thread(() -> {