Commit a53b4dd
committed
[FLUSS] Fix RocksDB JNI memory leak and add statistics config option
- Use getLongProperty() instead of getProperty() to avoid native string
allocation in JNI layer during high-frequency Prometheus metrics scraping
- Add kv.rocksdb.statistics.enabled config option (default: false) to
allow disabling RocksDB statistics collection for reduced overhead
- Refactor getPropertyValue to getPropertyLongValue and eliminate code
duplication between overloaded methods
- Add configuration documentation for the new option1 parent 864bbe6 commit a53b4dd
5 files changed
Lines changed: 43 additions & 39 deletions
File tree
- fluss-common/src/main/java/org/apache/fluss/config
- fluss-server/src
- main/java/org/apache/fluss/server/kv
- rocksdb
- test/java/org/apache/fluss/server/kv
- website/docs/maintenance
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1590 | 1590 | | |
1591 | 1591 | | |
1592 | 1592 | | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1593 | 1606 | | |
1594 | 1607 | | |
1595 | 1608 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
| 231 | + | |
231 | 232 | | |
232 | | - | |
| 233 | + | |
| 234 | + | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
| |||
Lines changed: 21 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
312 | 315 | | |
313 | 316 | | |
314 | 317 | | |
315 | 318 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 319 | + | |
| 320 | + | |
335 | 321 | | |
336 | 322 | | |
337 | 323 | | |
338 | | - | |
| 324 | + | |
| 325 | + | |
339 | 326 | | |
340 | 327 | | |
341 | | - | |
| 328 | + | |
| 329 | + | |
342 | 330 | | |
343 | | - | |
| 331 | + | |
344 | 332 | | |
345 | 333 | | |
346 | 334 | | |
347 | | - | |
| 335 | + | |
| 336 | + | |
348 | 337 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
355 | 342 | | |
356 | 343 | | |
357 | 344 | | |
358 | | - | |
| 345 | + | |
359 | 346 | | |
360 | 347 | | |
361 | | - | |
362 | | - | |
363 | 348 | | |
364 | | - | |
365 | 349 | | |
366 | 350 | | |
367 | 351 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
1419 | 1420 | | |
1420 | 1421 | | |
1421 | 1422 | | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
1422 | 1426 | | |
1423 | 1427 | | |
1424 | 1428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments