memory-check
Module Contents
alltypes
Module Contents
enum
class
AnalysisResult
Module Contents
GROW
SHRINK
STABLE
UNKNOWN
data
class
ClassGrowth
Module Contents
ClassGrowth
(
className
:
ClassName
,
histoLines
:
List
<
HeapHistogramDumpLine
>
,
analysisResult
:
AnalysisResult
)
val
analysisResult
:
AnalysisResult
val
className
:
ClassName
val
histoLines
:
List
<
HeapHistogramDumpLine
>
data
class
ClassGrowthTrend
Module Contents
ClassGrowthTrend
(
timestamps
:
List
<
Long
>
,
data
:
Map
<
ClassName
,
ClassGrowth
>
)
val
data
:
Map
<
ClassName
,
ClassGrowth
>
fun
statusCount
(
status
:
AnalysisResult
,
bytesLimit
:
Long
)
:
Int
fun
statusFilter
(
status
:
AnalysisResult
)
:
List
<
ClassGrowth
>
val
timestamps
:
List
<
Long
>
class
ClassHistogramDetails
Module Contents
ClassHistogramDetails
(
analysis
:
AnalysisResult
,
className
:
String
,
bytes
:
List
<
Long
?
>
,
bytesDiff
:
List
<
Long
?
>
,
instances
:
List
<
Long
?
>
,
instancesDiff
:
List
<
Long
?
>
)
val
analysis
:
AnalysisResult
val
bytes
:
List
<
Long
?
>
val
bytesDiff
:
List
<
Long
?
>
val
className
:
String
val
instances
:
List
<
Long
?
>
val
instancesDiff
:
List
<
Long
?
>
data
class
ClassName
Module Contents
ClassName
(
name
:
String
)
val
name
:
String
data
class
HeapHistogramDump
Module Contents
HeapHistogramDump
(
histoFile
:
File
,
timestamp
:
LocalDateTime
,
histogram
:
List
<
HeapHistogramDumpLine
>
)
fun
findAllClassNames
(
)
:
List
<
ClassName
>
val
histoFile
:
File
val
histogram
:
List
<
HeapHistogramDumpLine
>
val
timestamp
:
LocalDateTime
data
class
HeapHistogramDumpDetails
Module Contents
HeapHistogramDumpDetails
(
classHistogramDetails
:
List
<
ClassHistogramDetails
>
,
timestamps
:
List
<
Long
?
>
)
val
classHistogramDetails
:
List
<
ClassHistogramDetails
>
val
timestamps
:
List
<
Long
?
>
data
class
HeapHistogramDumpLine
Module Contents
HeapHistogramDumpLine
(
className
:
ClassName
,
num
:
Long
?
,
instances
:
Long
?
,
bytes
:
Long
?
)
val
bytes
:
Long
?
val
className
:
ClassName
fun
createGhostLine
(
name
:
ClassName
)
:
HeapHistogramDumpLine
val
instances
:
Long
?
fun
isGhost
(
)
:
Boolean
val
num
:
Long
?
data
class
HeapHistogramDumpReport
Module Contents
HeapHistogramDumpReport
(
reportConfig
:
ReportConfig
,
leakResult
:
AnalysisResult
,
heapHistogramDumpSummary
:
HeapHistogramDumpSummary
,
heapHistogramDumpDetails
:
HeapHistogramDumpDetails
)
val
heapHistogramDumpDetails
:
HeapHistogramDumpDetails
val
heapHistogramDumpSummary
:
HeapHistogramDumpSummary
val
leakResult
:
AnalysisResult
val
reportConfig
:
ReportConfig
data
class
HeapHistogramDumpSummary
Module Contents
HeapHistogramDumpSummary
(
data
:
Map
<
AnalysisResult
,
Int
>
)
val
data
:
Map
<
AnalysisResult
,
Int
>
object
HistoAnalyser
Module Contents
fun
analyse
(
histos
:
List
<
HeapHistogramDump
>
)
:
ClassGrowthTrend
fun
analyseGrowth
(
histoLines
:
List
<
HeapHistogramDumpLine
>
,
thingToCheck
:
(
HeapHistogramDumpLine
)
->
Long
?
=
{ it.instances }
)
:
AnalysisResult
object
HistoReader
Module Contents
fun
extractDate
(
s
:
String
)
:
LocalDateTime
?
val
isoDateRegex
:
Regex
fun
readHistos
(
histoFiles
:
List
<
File
>
)
:
List
<
HeapHistogramDump
>
object
HtmlGraphCreator
Module Contents
fun
writeHtmlGoogleGraphFile
(
data
:
HeapHistogramDumpReport
)
:
File
object
HumanReadable
Module Contents
fun
humanReadableMemorySize
(
v
:
Long
)
:
String
?
open
class
InvalidHistoLineException
:
Exception
Module Contents
InvalidHistoLineException
(
msg
:
String
)
class
JmxHisto
:
AutoCloseable
Module Contents
JmxHisto
(
host
:
String
,
port
:
Int
)
fun
close
(
)
:
Unit
val
gcClassHistogramParams
:
Array
<
Any
>
val
gcClassHistogramSignature
:
Array
<
String
!
>
fun
readHistogram
(
)
:
String
object
JsonReport
Module Contents
fun
report
(
data
:
HeapHistogramDumpReport
)
:
File
class
MemoryCheck
Module Contents
MemoryCheck
(
)
fun
processHistos
(
reportConfig
:
ReportConfig
)
:
Unit
fun
useZoneOffset
(
)
:
ZoneId
class
MemoryCheckCli
:
CliktCommand
Module Contents
MemoryCheckCli
(
)
val
bytesLimit
:
Long
val
classLimit
:
Int
val
directory
:
String
val
extension
:
String
val
identifier
:
String
val
reportDirectory
:
String
fun
run
(
)
:
Unit
val
settings
:
String
class
MemoryCheckException
:
Exception
Module Contents
MemoryCheckException
(
msg
:
String
)
object
ReportAnalyser
Module Contents
fun
createHeapHistogramDumpReport
(
classGrowthTrend
:
ClassGrowthTrend
,
reportConfig
:
ReportConfig
)
:
HeapHistogramDumpReport
class
ReportConfig
Module Contents
ReportConfig
(
settings
:
String
,
histosDirectory
:
String
,
reportDirectory
:
String
,
extension
:
String
,
identifier
:
String
,
reportDateTime
:
String
,
classLimit
:
Int
,
byteLimit
:
Long
)
val
byteLimit
:
Long
val
classLimit
:
Int
val
doReportGrow
:
Boolean
val
doReportShrinks
:
Boolean
val
doReportStable
:
Boolean
val
doReportUnknowns
:
Boolean
val
extension
:
String
val
histosDirectory
:
String
val
identifier
:
String
val
reportDateTime
:
String
val
reportDirectory
:
String
val
settings
:
String
object
TextReport
Module Contents
fun
report
(
histos
:
List
<
HeapHistogramDump
>
,
data
:
HeapHistogramDumpReport
)
:
Unit
fun
reportLine
(
details
:
ClassHistogramDetails
)
:
Unit
package
nl.stokpop.jmx
Module Contents
class
JmxHisto
:
AutoCloseable
Module Contents
JmxHisto
(
host
:
String
,
port
:
Int
)
fun
close
(
)
:
Unit
val
gcClassHistogramParams
:
Array
<
Any
>
val
gcClassHistogramSignature
:
Array
<
String
!
>
fun
readHistogram
(
)
:
String
fun
main
(
args
:
Array
<
String
>
)
:
Unit
package
nl.stokpop.memory
Module Contents
object
HistoAnalyser
Module Contents
fun
analyse
(
histos
:
List
<
HeapHistogramDump
>
)
:
ClassGrowthTrend
fun
analyseGrowth
(
histoLines
:
List
<
HeapHistogramDumpLine
>
,
thingToCheck
:
(
HeapHistogramDumpLine
)
->
Long
?
=
{ it.instances }
)
:
AnalysisResult
object
HistoReader
Module Contents
fun
extractDate
(
s
:
String
)
:
LocalDateTime
?
val
isoDateRegex
:
Regex
fun
readHistos
(
histoFiles
:
List
<
File
>
)
:
List
<
HeapHistogramDump
>
object
HumanReadable
Module Contents
fun
humanReadableMemorySize
(
v
:
Long
)
:
String
?
open
class
InvalidHistoLineException
:
Exception
Module Contents
InvalidHistoLineException
(
msg
:
String
)
fun
main
(
args
:
Array
<
String
>
)
:
Unit
class
MemoryCheck
Module Contents
MemoryCheck
(
)
fun
processHistos
(
reportConfig
:
ReportConfig
)
:
Unit
fun
useZoneOffset
(
)
:
ZoneId
class
MemoryCheckCli
:
CliktCommand
Module Contents
MemoryCheckCli
(
)
val
bytesLimit
:
Long
val
classLimit
:
Int
val
directory
:
String
val
extension
:
String
val
identifier
:
String
val
reportDirectory
:
String
fun
run
(
)
:
Unit
val
settings
:
String
class
MemoryCheckException
:
Exception
Module Contents
MemoryCheckException
(
msg
:
String
)
package
nl.stokpop.memory.domain
Module Contents
enum
class
AnalysisResult
Module Contents
GROW
SHRINK
STABLE
UNKNOWN
data
class
ClassGrowth
Module Contents
ClassGrowth
(
className
:
ClassName
,
histoLines
:
List
<
HeapHistogramDumpLine
>
,
analysisResult
:
AnalysisResult
)
val
analysisResult
:
AnalysisResult
val
className
:
ClassName
val
histoLines
:
List
<
HeapHistogramDumpLine
>
data
class
ClassGrowthTrend
Module Contents
ClassGrowthTrend
(
timestamps
:
List
<
Long
>
,
data
:
Map
<
ClassName
,
ClassGrowth
>
)
val
data
:
Map
<
ClassName
,
ClassGrowth
>
fun
statusCount
(
status
:
AnalysisResult
,
bytesLimit
:
Long
)
:
Int
fun
statusFilter
(
status
:
AnalysisResult
)
:
List
<
ClassGrowth
>
val
timestamps
:
List
<
Long
>
data
class
ClassName
Module Contents
ClassName
(
name
:
String
)
val
name
:
String
data
class
HeapHistogramDump
Module Contents
HeapHistogramDump
(
histoFile
:
File
,
timestamp
:
LocalDateTime
,
histogram
:
List
<
HeapHistogramDumpLine
>
)
fun
findAllClassNames
(
)
:
List
<
ClassName
>
val
histoFile
:
File
val
histogram
:
List
<
HeapHistogramDumpLine
>
val
timestamp
:
LocalDateTime
data
class
HeapHistogramDumpLine
Module Contents
HeapHistogramDumpLine
(
className
:
ClassName
,
num
:
Long
?
,
instances
:
Long
?
,
bytes
:
Long
?
)
val
bytes
:
Long
?
val
className
:
ClassName
fun
createGhostLine
(
name
:
ClassName
)
:
HeapHistogramDumpLine
val
instances
:
Long
?
fun
isGhost
(
)
:
Boolean
val
num
:
Long
?
package
nl.stokpop.memory.domain.json
Module Contents
class
ClassHistogramDetails
Module Contents
ClassHistogramDetails
(
analysis
:
AnalysisResult
,
className
:
String
,
bytes
:
List
<
Long
?
>
,
bytesDiff
:
List
<
Long
?
>
,
instances
:
List
<
Long
?
>
,
instancesDiff
:
List
<
Long
?
>
)
val
analysis
:
AnalysisResult
val
bytes
:
List
<
Long
?
>
val
bytesDiff
:
List
<
Long
?
>
val
className
:
String
val
instances
:
List
<
Long
?
>
val
instancesDiff
:
List
<
Long
?
>
data
class
HeapHistogramDumpDetails
Module Contents
HeapHistogramDumpDetails
(
classHistogramDetails
:
List
<
ClassHistogramDetails
>
,
timestamps
:
List
<
Long
?
>
)
val
classHistogramDetails
:
List
<
ClassHistogramDetails
>
val
timestamps
:
List
<
Long
?
>
data
class
HeapHistogramDumpReport
Module Contents
HeapHistogramDumpReport
(
reportConfig
:
ReportConfig
,
leakResult
:
AnalysisResult
,
heapHistogramDumpSummary
:
HeapHistogramDumpSummary
,
heapHistogramDumpDetails
:
HeapHistogramDumpDetails
)
val
heapHistogramDumpDetails
:
HeapHistogramDumpDetails
val
heapHistogramDumpSummary
:
HeapHistogramDumpSummary
val
leakResult
:
AnalysisResult
val
reportConfig
:
ReportConfig
data
class
HeapHistogramDumpSummary
Module Contents
HeapHistogramDumpSummary
(
data
:
Map
<
AnalysisResult
,
Int
>
)
val
data
:
Map
<
AnalysisResult
,
Int
>
package
nl.stokpop.memory.report
Module Contents
object
HtmlGraphCreator
Module Contents
fun
writeHtmlGoogleGraphFile
(
data
:
HeapHistogramDumpReport
)
:
File
object
JsonReport
Module Contents
fun
report
(
data
:
HeapHistogramDumpReport
)
:
File
object
ReportAnalyser
Module Contents
fun
createHeapHistogramDumpReport
(
classGrowthTrend
:
ClassGrowthTrend
,
reportConfig
:
ReportConfig
)
:
HeapHistogramDumpReport
class
ReportConfig
Module Contents
ReportConfig
(
settings
:
String
,
histosDirectory
:
String
,
reportDirectory
:
String
,
extension
:
String
,
identifier
:
String
,
reportDateTime
:
String
,
classLimit
:
Int
,
byteLimit
:
Long
)
val
byteLimit
:
Long
val
classLimit
:
Int
val
doReportGrow
:
Boolean
val
doReportShrinks
:
Boolean
val
doReportStable
:
Boolean
val
doReportUnknowns
:
Boolean
val
extension
:
String
val
histosDirectory
:
String
val
identifier
:
String
val
reportDateTime
:
String
val
reportDirectory
:
String
val
settings
:
String
object
TextReport
Module Contents
fun
report
(
histos
:
List
<
HeapHistogramDump
>
,
data
:
HeapHistogramDumpReport
)
:
Unit
fun
reportLine
(
details
:
ClassHistogramDetails
)
:
Unit