Liking cljdoc? Tell your friends :D

jstack-report.analyze

Builds indexes and derived views over an enriched dump: look-up tables (by tid / by locked oid), wait-for relationships, the transitive lock graph, and a handful of trace-content predicates.

Builds indexes and derived views over an enriched dump:
look-up tables (by tid / by locked oid), wait-for relationships, the
transitive lock graph, and a handful of trace-content predicates.
raw docstring

db-socket-read-is-valid?clj

(db-socket-read-is-valid? t)

True when the socketRead0 is inside a isValidConnection select 1 from dual check rather than a real query.

True when the socketRead0 is inside a `isValidConnection` `select 1
from dual` check rather than a real query.
sourceraw docstring

db-socket-read?clj

(db-socket-read? t)

True when the thread is parked in a socketRead0 call to an Oracle JDBC stream — the canonical 'waiting on the database' fingerprint.

True when the thread is parked in a socketRead0 call to an Oracle
JDBC stream — the canonical 'waiting on the database' fingerprint.
sourceraw docstring

key-count-inclj

(key-count-in m)
source

keys-inclj

(keys-in m)
source

lockers-by-oidclj

(lockers-by-oid dump)

{<locked oid> <thread that holds it>, ...}.

{<locked oid> <thread that holds it>, ...}.
sourceraw docstring

thread-display-ageclj

(thread-display-age t)
source

thread-extra-infoclj

(thread-extra-info t)
source

threads-by-tidclj

(threads-by-tid dump)

{tid thread, ...}. tid is the JVM-assigned hex tid string.

{tid thread, ...}. tid is the JVM-assigned hex tid string.
sourceraw docstring

trace-has?clj

(trace-has? t [class method])

True when one of the thread's trace lines names this class.method. We string-match on the raw :line so we don't have to parse every stack-trace entry up front — the parser is fast enough as is.

True when one of the thread's trace lines names this `class.method`.
We string-match on the raw `:line` so we don't have to parse every
stack-trace entry up front — the parser is fast enough as is.
sourceraw docstring

trace-report-limitclj

Threads with stack traces longer than this many lines are flagged as [N line trace] in the lock graph rendering.

Threads with stack traces longer than this many lines are flagged
as `[N line trace]` in the lock graph rendering.
sourceraw docstring

transitive-lock-graphclj

(transitive-lock-graph dump)

Returns a nested map {tidA {tidB {tidC nil ...}}} where threads C are waiting for a lock held by B, which is waiting on A, and so on. Top-level keys are sorted by subtree size (biggest blockers first) then by (tid, oid) for stable output.

Returns a nested map {tidA {tidB {tidC nil ...}}} where threads C
are waiting for a lock held by B, which is waiting on A, and so on.
Top-level keys are sorted by subtree size (biggest blockers first)
then by `(tid, oid)` for stable output.
sourceraw docstring

transitive-pathclj

(transitive-path waiters t)

Walk from a leaf thread upward through waiters to its root locker and return the path as a vector of {:tid :oid} ascend-order entries.

Walk from a leaf thread upward through `waiters` to its root locker
and return the path as a vector of `{:tid :oid}` ascend-order entries.
sourceraw docstring

tx-reaper?clj

(tx-reaper? t)
source

waiters-by-oidclj

(waiters-by-oid dump)

{contested-oid #{waiter-tid ...}, ...}.

{contested-oid #{waiter-tid ...}, ...}.
sourceraw docstring

waiters-by-tidclj

(waiters-by-tid dump)

{waiter-tid {:tid owner-tid :oid contested-oid}, ...}.

{waiter-tid {:tid owner-tid :oid contested-oid}, ...}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close