Section 1

Preview this deck

The heap is broken up into small parts or generations, they are Young Generation, Old or Tenured Generation, and Permanent Generation First Generation, Second Generation, Third Generation Old generation and new generation Past generation and present generation

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (26)

Section 1

(26 cards)

The heap is broken up into small parts or generations, they are Young Generation, Old or Tenured Generation, and Permanent Generation First Generation, Second Generation, Third Generation Old generation and new generation Past generation and present generation

Front

Young Generation, Old or Tenured Generation, and Permanent Generation

Back

Small objects are allocated in TLAs. What is TLA? thread local areas timed local areas total local areas thread look-ahead area

Front

thread local areas

Back

What are all the minor garbage collections called? clean the world event shine the world event drop the world event stop the world event

Front

stop the world event

Back

The two main goals of tuning a java application are effectiveness and readability of code checking errors and exceptions efficiency and exceptions responsiveness and throughput

Front

responsiveness and throughput

Back

Memory management is the process of ___. Which one is not correct? Make space for those new object allocations Removing unused objects Increase RAM Size Allocating new objects

Front

Increase RAM Size

Back

____ compaction is used near the top of the heap where ____ compaction is used near the bottom of the heap. External, Internal Static, Dynamic Automatic, Manual Serial, Concurrent

Front

External, Internal

Back

To reduce fragmentation, JVM does Generational Garbage Collection Compaction Mark and Sweep Automatic garbage collection

Front

Compaction

Back

This generation is used to store long surviving objects young generation permanent generation old generation tenured generation

Front

old generation

Back

______ generation contains the metadata required by JVM to describe the classes and methods used in the application. Permanent generation Temporary generation Old generation Young generation

Front

Permanent generation

Back

When the young generation fills up, this causes minor garbage collection major garbage collection no garbage collection medium garbage collection

Front

minor garbage collection

Back

Young Generation of the heap is where all old objects are allocated all permanent objects are allocated all tenured objects are allocated all new objects are allocated and aged

Front

all new objects are allocated and aged

Back

The JRockit JVM uses which model for performing garbage collection? Mark and Swing Heap and Sweep Mark and Sweep Count and Refresh

Front

Mark and Sweep

Back

______ is used to store long surviving objects. Old generation Young generation Cached generation Temporary generation

Front

Old generation

Back

HotSpot JVM does compaction only in which generation? old generation new generation overlapped generation timed generation

Front

old generation

Back

Which command sets the maximum heap size? -Xms:<size> -Xmx:<size> -Xmp:<size> -Xml:<size>

Front

-Xmx:<size>

Back

Which of the following is the command line option for setting the heap size: -Xms:<max size> -Xmx:<min size> -Xms:<min size> -Xmx:<max size> -Xmx:<min size> -Xms:<max size> -Xmx:<max size> -Xms:<min size>

Front

-Xms:<min size> -Xmx:<max size>

Back

When is the garbage collected in JVM? When the heap becomes full When the heap becomes 70% full When the heap reserve becomes empty When the heap reaches the predefined limit, set by JVM or Apache

Front

When the heap becomes full

Back

______ is a part of heap reserved for allocation of new objects nursery old space stack virtual memory

Front

nursery

Back

Java objects reside in the area called stack heap both none of the above

Front

heap

Back

There are three components of the JVM that are focused on when tuning performance. They are heap, garbage collector, JIT compiler Java threads, Method Area, Execution Engine Native method interface, native internal threads, Execution Engine heap, program counter register, garbage collector

Front

heap, garbage collector, JIT compiler

Back

Java objects reside in an area called: Heap Stack Virtual Memory JVM Container

Front

Heap

Back

Permanent generation of the heap contains: Metadata required by the JVM to describe the classes and methods Metadata required by the Heap to describe the classes and methods Metadata required by the JDK to describe the classes and methods Metadata required by the Java SDK to describe the classes and methods

Front

Metadata required by the JVM to describe the classes and methods

Back

The command to start up JVM with a fixed nursery size of 100MB is java -Xns: 100m MyApplication java -Xms: 100m MyApplication java -Xls: 100m MyApplication javac -Xmns: 100m MyApplication

Front

java -Xns: 100m MyApplication

Back

Major collection is much slower because it involves all live objects dead objects unallocated objects newly created objects

Front

live objects

Back

Which event is called major garbage collection? eventual collection of the old generation eventual collection of the new generation End of the World event. There is no such event.

Front

eventual collection of the old generation

Back

Compaction is performed during garbage collection while all Java threads are Started Paused Completed Killed

Front

Paused

Back