You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/java-oom.md
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,40 @@ How to avoid and debug Java memory errors on CircleCI.
9
9
## Overview
10
10
11
11
The [Java Virtual Machine](https://en.wikipedia.org/wiki/Java_virtual_machine) (JVM) provides a portable execution environment for Java-based applications.
12
-
Without any memory limits,
13
-
the JVM pre-allocates a significant amount of memory.
12
+
Without any memory limits, the JVM pre-allocates a fraction of
13
+
the total memory available in the system.
14
+
CircleCI runs container based builds on large machines with lots of memory.
15
+
Each container has a smaller memory limit than the total amount available
16
+
on the machine. This can lead to the JVM seeing a large amount of memory
17
+
being available to it, and trying to use more than is allocated to the
18
+
container.
19
+
14
20
This pre-allocation can produce Out of Memory (OOM) errors,
15
-
which are difficult
16
-
to debug because the error messages lack detail.
21
+
which are difficult to debug because the error messages lack detail.
22
+
23
+
You can see how much memory your container is allowed to use by reading the file
0 commit comments