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
This commit is contained in:
@@ -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(() -> {
|
||||
|
||||
Reference in New Issue
Block a user