Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -27,8 +27,14 @@ USER 1000
|
|
| 27 |
|
| 28 |
# Performance: Enable Virtual Threads for high concurrency on your 2 vCPUs
|
| 29 |
# Performance: Use MaxRAMPercentage to let the JVM manage the 16GB RAM dynamically
|
|
|
|
| 30 |
ENTRYPOINT ["java", \
|
| 31 |
-
"-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
"-XX:MaxRAMPercentage=75.0", \
|
|
|
|
| 33 |
"-jar", "app.jar", \
|
| 34 |
"--server.port=7860"]
|
|
|
|
| 27 |
|
| 28 |
# Performance: Enable Virtual Threads for high concurrency on your 2 vCPUs
|
| 29 |
# Performance: Use MaxRAMPercentage to let the JVM manage the 16GB RAM dynamically
|
| 30 |
+
# Updated Entrypoint for 16GB RAM / 2 vCPU
|
| 31 |
ENTRYPOINT ["java", \
|
| 32 |
+
"-XX:+UseG1GC", \
|
| 33 |
+
"-XX:MaxGCPauseMillis=200", \
|
| 34 |
+
"-XX:ParallelGCThreads=2", \
|
| 35 |
+
"-XX:ConcGCThreads=1", \
|
| 36 |
+
"-XX:InitiatingHeapOccupancyPercent=45", \
|
| 37 |
"-XX:MaxRAMPercentage=75.0", \
|
| 38 |
+
"-Dspring.threads.virtual.enabled=true", \
|
| 39 |
"-jar", "app.jar", \
|
| 40 |
"--server.port=7860"]
|