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
Retries are performed for connection and system internal errors. It is the SDK user's responsibility to properly
123
123
handle other errors, for example RESOURCE_EXHAUSTED (HTTP 429).
124
124
125
+
### Memory Configuration
126
+
127
+
The `SpiceClient` uses an Arrow `RootAllocator` for managing off-heap memory. By default, it allows unlimited memory allocation. To prevent OOM issues in constrained environments, you can limit the maximum memory:
128
+
129
+
```java
130
+
SpiceClient client =SpiceClient.builder()
131
+
.withMaxMemory(1024*1024*1024L) // 1GB limit
132
+
.build();
133
+
```
134
+
135
+
You can also set the limit via the `SPICE_MAX_MEMORY` environment variable (in bytes). If both are provided, the builder method takes precedence.
0 commit comments