Applied Sciences

ByteVarFinder: Bytecode-Level Logging-Variable Recommendation and Runtime Monitoring for Java Services

Taizheng Wang, Chunyang Ye, Hui Zhou, Wei Chang, Chaoyi Li

Key points

From the paper's conclusion
  • We present ByteVarFinder, a framework for bytecode-level logging-variable recommendation and runtime monitoring.

Abstract

Logging-variable selection determines which runtime values are recorded by Java services. When source code is unavailable or cannot be modified, bytecode analysis and instrumentation provide a basis for recommending and collecting such values. We present ByteVarFinder, a framework for bytecode-level logging-variable recommendation and runtime monitoring. The framework combines instruction semantics encoded by a bidirectional LSTM with control-flow structure modeled by a GCN to rank candidate local variables. Variables recorded in existing logging statements provide proxy supervision reflecting developers’ logging-variable selections. An ASM-based instrumentation tool records selected variable values at configured load and store operations. Experiments on seven Java projects show that the fusion model outperforms the evaluated baselines in agreement with existing logging-variable selections. Ablation and cross-project experiments assess the contributions of the two representations and the transferability of learned selection patterns. Runtime experiments on Hive, Flink, and Camel quantify resource utilization, throughput reduction, and latency increase under different monitoring budgets. These results establish recommendation performance and measured instrumentation costs under the evaluated settings; improvements in fault diagnosis require separate validation.

Read the paper

Discussion

Science Skim's AI key points, plus readers' public thoughts

Readers' thoughts

No reader thoughts yet.

Related papers

ByteVarFinder: Bytecode-Level Logging-Variable Recommendation and Runtime Monitoring for Java Services — Science Skim