The invention relates to the technical field of
data acquisition, in particular to an AOP-based user behavior
data acquisition method. The method comprises the following steps: firstly, identifying user behavior related code features by statically analyzing
Java source codes of an application program, and constructing a feature
template library; during a compiling period, according to a
template library identification target method, embedding a point burying instruction by utilizing a
byte code enhancement technology, and constructing a monitoring section framework; and during running, dynamically adjusting an execution strategy according to the running state of the application program by virtue of a dynamic
rule engine. Meanwhile, an annular buffer area is adopted to asynchronously process user behavior data streams, cache data are managed in a sub-generation mode, and
asynchronous processing is triggered when a threshold value is exceeded. The method also constructs an adaptive
thread pool model based on a hierarchical
thread pool architecture, distributes tasks according to
data value weights, monitors the task backlog rate of a high-priority sub-
pool, adjusts the sampling frequency or acquisition dimension when the task backlog rate exceeds a threshold value, forms adaptive closed-
loop control, and effectively acquires and processes user behavior data.