congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MemoryInformationData.getMaxUsedNonHeapMemorySize
Code IndexAdd Tabnine to your IDE (free)

How to use
getMaxUsedNonHeapMemorySize
method
in
rocks.inspectit.shared.all.communication.data.MemoryInformationData

Best Java code snippets using rocks.inspectit.shared.all.communication.data.MemoryInformationData.getMaxUsedNonHeapMemorySize (Showing top 9 results out of 315)

origin: inspectIT/inspectIT

/**
 * Updates the lower plot with the given input data.
 *
 * @param memoryData
 *            the input data.
 */
private void addLowerPlotData(List<MemoryInformationData> memoryData) {
  for (MemoryInformationData data : memoryData) {
    // TODO adjust the fractional part
    long usedNonHeapMemoryAvg = (data.getTotalUsedNonHeapMemorySize() / data.getCount()) / 1024;
    nonHeapMemory.add(data.getTimeStamp().getTime(), usedNonHeapMemoryAvg, data.getMinUsedNonHeapMemorySize() / 1024.0d, data.getMaxUsedNonHeapMemorySize() / 1024.0d, false);
  }
  nonHeapMemory.fireSeriesChanged();
}
origin: inspectIT/inspectIT

@Test
void usedNonHeapMemorySizeIsCalculated() {
  this.mockCollectorWithDefaults();
  MemoryUsage nonHeapMemoryUsage = this.memoryBean.getNonHeapMemoryUsage();
  when(nonHeapMemoryUsage.getUsed()).thenReturn(10L).thenReturn(9L).thenReturn(11L).thenReturn(10L);
  this.cut.gather();
  this.cut.gather();
  this.cut.gather();
  this.cut.gather();
  MemoryInformationData collector = (MemoryInformationData) this.cut.get();
  assertThat(collector.getMinUsedNonHeapMemorySize(), is(9L));
  assertThat(collector.getMaxUsedNonHeapMemorySize(), is(11L));
  assertThat(collector.getTotalUsedNonHeapMemorySize(), is(40L));
}
origin: inspectIT/inspectIT

when(data.getMaxUsedHeapMemorySize()).thenReturn(0L);
when(data.getMinUsedNonHeapMemorySize()).thenReturn(0L);
when(data.getMaxUsedNonHeapMemorySize()).thenReturn(0L);
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_HEAP_MEMORY, (Object) data.getMaxUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_HEAP_MEMORY, (Object) data.getMinUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_NON_HEAP_MEMORY, (Object) data.getMaxUsedNonHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_NON_HEAP_MEMORY, (Object) data.getMinUsedNonHeapMemorySize()));
origin: inspectIT/inspectIT

when(data.getMaxUsedHeapMemorySize()).thenReturn(RandomUtils.nextLong());
when(data.getMinUsedNonHeapMemorySize()).thenReturn(RandomUtils.nextLong());
when(data.getMaxUsedNonHeapMemorySize()).thenReturn(RandomUtils.nextLong());
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_HEAP_MEMORY, (Object) data.getMaxUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_HEAP_MEMORY, (Object) data.getMinUsedHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MAX_USED_NON_HEAP_MEMORY, (Object) data.getMaxUsedNonHeapMemorySize()));
assertThat(getFields(pointBuilder), hasEntry(Series.MemoryInformation.FIELD_MIN_USED_NON_HEAP_MEMORY, (Object) data.getMinUsedNonHeapMemorySize()));
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getMaxUsedNonHeapMemorySize(), is(0L));
origin: inspectIT/inspectIT

assertThat(memoryInformationData.getMaxUsedNonHeapMemorySize(), is(21L));
origin: inspectIT/inspectIT

} else if (usedNonHeapMemorySize > this.memoryInformationData.getMaxUsedNonHeapMemorySize()) {
  this.memoryInformationData.setMaxUsedNonHeapMemorySize(usedNonHeapMemorySize);
origin: inspectIT/inspectIT

builder.addField(Series.MemoryInformation.FIELD_AVG_USED_NON_HEAP_MEMORY, usedNonHeapMemorySize);
builder.addField(Series.MemoryInformation.FIELD_MIN_USED_NON_HEAP_MEMORY, data.getMinUsedNonHeapMemorySize());
builder.addField(Series.MemoryInformation.FIELD_MAX_USED_NON_HEAP_MEMORY, data.getMaxUsedNonHeapMemorySize());
origin: inspectIT/inspectIT

newMemoryInformationData.setMaxUsedNonHeapMemorySize(this.memoryInformationData.getMaxUsedNonHeapMemorySize());
rocks.inspectit.shared.all.communication.dataMemoryInformationDatagetMaxUsedNonHeapMemorySize

Javadoc

Gets #maxUsedNonHeapMemorySize.

Popular methods of MemoryInformationData

  • getCount
    Gets #count.
  • getMaxUsedHeapMemorySize
    Gets #maxUsedHeapMemorySize.
  • getMinUsedHeapMemorySize
    Gets #minUsedHeapMemorySize.
  • getMinUsedNonHeapMemorySize
    Gets #minUsedNonHeapMemorySize.
  • getTotalUsedHeapMemorySize
    Gets #totalUsedHeapMemorySize.
  • getTotalUsedNonHeapMemorySize
    Gets #totalUsedNonHeapMemorySize.
  • getPlatformIdent
  • getTimeStamp
  • getTotalComittedHeapMemorySize
    Gets #totalComittedHeapMemorySize.
  • getTotalComittedNonHeapMemorySize
    Gets #totalComittedNonHeapMemorySize.
  • getTotalFreePhysMemory
    Gets #totalFreePhysMemory.
  • getTotalFreeSwapSpace
    Gets #totalFreeSwapSpace.
  • getTotalFreePhysMemory,
  • getTotalFreeSwapSpace,
  • setPlatformIdent,
  • setSensorTypeIdent,
  • <init>,
  • getSensorTypeIdent,
  • getMaxComittedHeapMemorySize,
  • getMaxComittedNonHeapMemorySize,
  • getMaxComittedVirtualMemSize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now