Package com.netcracker.profiler.agent
Class ProfilerData
java.lang.Object
com.netcracker.profiler.agent.ProfilerData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConcurrentMap<Thread, LocalState> static final booleanstatic final booleanstatic final booleanstatic final booleanstatic final intstatic final BlockingQueue<LocalBuffer> static final booleanstatic booleanstatic intstatic final BlockingQueue<LocalBuffer> static final longDefines the threshold (in bytes) for the total amount of heap used by the active events to preventOutOfMemoryError.static final intstatic final intstatic final booleanstatic final intstatic final intDefines the length of a event that is considered large enough to account withLARGE_EVENT_TLAB_BYTESandEVENT_HEAP_THRESHOLD_BYTES.static final intDefines the size of a thread-local buffer for accounting the large event volume.static final AtomicLongstatic final ThreadLocal<LocalState> static final booleanstatic final booleanstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic ProfilerPluginLoggerstatic Map<String, ProfilerProperty> static final Stringstatic final booleanstatic final intstatic final booleanstatic final intstatic final booleanstatic final intstatic final intDefines the number of characters kept from large events ifEVENT_HEAP_THRESHOLD_BYTESis reached.static booleanstatic final booleanstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddDirtyBuffer(LocalBuffer buffer, boolean force) static voidaddDirtyBufferIfPossible(LocalBuffer buffer) static voidstatic LocalBuffergetEmptyBuffer(LocalState state) getTags()static booleanreserveLargeEventVolume(long volume) Reserves a given number of bytes from the global counter.static StringresolveMethodId(int methodId) static intresolveTag(String tag)
-
Field Details
-
INITIAL_BUFFERS
public static final int INITIAL_BUFFERS -
MIN_BUFFERS
public static final int MIN_BUFFERS -
EVENT_HEAP_THRESHOLD_BYTES
public static final long EVENT_HEAP_THRESHOLD_BYTESDefines the threshold (in bytes) for the total amount of heap used by the active events to preventOutOfMemoryError. Once the active events exceed this threshold, the new ones will be truncated. Defaults tomin(2G, maxMemory()/4) -
LARGE_EVENT_THRESHOLD
public static final int LARGE_EVENT_THRESHOLDDefines the length of a event that is considered large enough to account withLARGE_EVENT_TLAB_BYTESandEVENT_HEAP_THRESHOLD_BYTES. Small events will process faster as they won't require counter-bumps, however, the drawback is they would consume heap without being accounted for. Defaults to 8KiB. -
LARGE_EVENT_TLAB_BYTES
public static final int LARGE_EVENT_TLAB_BYTESDefines the size of a thread-local buffer for accounting the large event volume. Per-thread buffers reduce contention on the global counter as each thread tracks its own allocations, and it consults the global counter only if the thread-local counter reaches a threshold. Increasing the value might decrease contentionEVENT_HEAP_THRESHOLD_BYTESat a cost of increasing per-thread heap consumption. Defaults to 256KiB. -
TRUNCATED_EVENTS_THRESHOLD
public static final int TRUNCATED_EVENTS_THRESHOLDDefines the number of characters kept from large events ifEVENT_HEAP_THRESHOLD_BYTESis reached. Defaults to 4000 -
MAX_SCALE_ATTEMPTS
public static final int MAX_SCALE_ATTEMPTS -
DATA_SENDER_QUEUE_SIZE
public static final int DATA_SENDER_QUEUE_SIZE -
METRICS_OUTPUT_VERSION
public static final int METRICS_OUTPUT_VERSION -
INMEMORY_SUSPEND_LOG_SIZE
public static final int INMEMORY_SUSPEND_LOG_SIZE -
INMEMORY_SUSPEND_LOG
public static final boolean INMEMORY_SUSPEND_LOG -
THREAD_CPU
public static final boolean THREAD_CPU -
THREAD_WAIT
public static final boolean THREAD_WAIT -
THREAD_MEMORY
public static final boolean THREAD_MEMORY -
THREAD_CPU_MINIMAL_CALL_DURATION
public static final int THREAD_CPU_MINIMAL_CALL_DURATION -
THREAD_WAIT_MINIMAL_CALL_DURATION
public static final int THREAD_WAIT_MINIMAL_CALL_DURATION -
THREAD_MEMORY_MINIMAL_CALL_DURATION
public static final int THREAD_MEMORY_MINIMAL_CALL_DURATION -
MINIMAL_LOGGED_DURATION
public static final int MINIMAL_LOGGED_DURATION -
INITIAL_STACK_LENGTH
public static final int INITIAL_STACK_LENGTH -
MAX_STACK_LENGTH
public static final int MAX_STACK_LENGTH -
MAX_BUFFERS
public static final int MAX_BUFFERS -
BLOCK_WHEN_DIRTY_BUFFERS_QUEUE_IS_FULL
public static final boolean BLOCK_WHEN_DIRTY_BUFFERS_QUEUE_IS_FULL -
PARAMS_TRIM_SIZE
public static final int PARAMS_TRIM_SIZE -
LOG_ORACLE_SID_FOR_EACH_SQL
public static final boolean LOG_ORACLE_SID_FOR_EACH_SQL -
LOG_JMS_TEXT
public static final boolean LOG_JMS_TEXT -
ADD_TRY_CATCH_BLOCKS
public static final boolean ADD_TRY_CATCH_BLOCKS -
ADD_PLAIN_TRY_CATCH_BLOCKS
public static final boolean ADD_PLAIN_TRY_CATCH_BLOCKS -
ADD_INDY_TRY_CATCH_BLOCKS
public static final boolean ADD_INDY_TRY_CATCH_BLOCKS -
DISABLE_CALL_EXPORT
public static final boolean DISABLE_CALL_EXPORT -
WRITE_CALL_RANGES
public static final boolean WRITE_CALL_RANGES -
WRITE_CALLS_DICTIONARY
public static final boolean WRITE_CALLS_DICTIONARY -
SERVER_NAME
-
localState
-
activeThreads
-
largeEventsVolume
-
dirtyBuffers
-
emptyBuffers
-
PARAM_CALL_INFO
public static final int PARAM_CALL_INFO -
PARAM_CALL_RED
public static final int PARAM_CALL_RED -
PARAM_CALL_IDLE
public static final int PARAM_CALL_IDLE -
PARAM_EXCEPTION
public static final int PARAM_EXCEPTION -
PARAM_PLUGIN_EXCEPTION
public static final int PARAM_PLUGIN_EXCEPTION -
PARAM_SQL
public static final int PARAM_SQL -
PARAM_ORACLE_SID
public static final int PARAM_ORACLE_SID -
dumperDead
public static boolean dumperDead -
warnBufferQueueOverflow
public static boolean warnBufferQueueOverflow -
dumperIncarnation
public static int dumperIncarnation -
pluginLogger
-
properties
-
-
Constructor Details
-
ProfilerData
public ProfilerData()
-
-
Method Details
-
resolveTag
-
resolveMethodId
-
getTags
-
reserveLargeEventVolume
public static boolean reserveLargeEventVolume(long volume) Reserves a given number of bytes from the global counter.- Parameters:
volume- the number of bytes to reserve from a global pool- Returns:
- true if the reserve succeeds, false otherwise
-
addDirtyBuffer
-
addDirtyBufferIfPossible
-
getEmptyBuffer
-
clearThreadsInfo
public static void clearThreadsInfo()
-