llmhyy / microbat

A feedback-based debugger for interactively recommending suspicious step in buggy program execution.
55 stars 16 forks source link

Improving Trace storage for longer running programs #212

Open dingyuchen opened 3 years ago

dingyuchen commented 3 years ago

For long running Java programs, it is not unreasonable to assume that the number of traces and steps objects exceed the memory capacity of the system.

Currently, database insertions are batched with a preset BATCH_SIZE of 1000.

Let's look into:

dingyuchen commented 3 years ago

https://github.com/llmhyy/microbat/blob/3e9fdf6dc3581c52da2e5b9b0d3b5479464085cb/microbat/src/main/microbat/sql/TraceRecorder.java#L90-L98

Reference to BATCH_SIZE in use in TraceRecorder.java