Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,9 @@ try:
|
|
24 |
import psutil
|
25 |
import resource
|
26 |
total_memory = psutil.virtual_memory().total
|
27 |
-
limit = int(total_memory * 80) # 1% del total en bytes
|
28 |
resource.setrlimit(resource.RLIMIT_AS, (limit, limit))
|
29 |
-
print(f"Memory limit set to {limit} bytes (1% of total system memory).")
|
30 |
except Exception as e:
|
31 |
print("No se pudo establecer el l铆mite de memoria:", e)
|
32 |
# --- Fin del bloque de limitaci贸n de RAM ---
|
|
|
24 |
import psutil
|
25 |
import resource
|
26 |
total_memory = psutil.virtual_memory().total
|
27 |
+
limit = int(total_memory * 80.0) # 1% del total en bytes
|
28 |
resource.setrlimit(resource.RLIMIT_AS, (limit, limit))
|
29 |
+
# print(f"Memory limit set to {limit} bytes (1% of total system memory).")
|
30 |
except Exception as e:
|
31 |
print("No se pudo establecer el l铆mite de memoria:", e)
|
32 |
# --- Fin del bloque de limitaci贸n de RAM ---
|