C Pascal Main Storage Memory Process: 58. What Is Heap Memory?
C Pascal Main Storage Memory Process: 58. What Is Heap Memory?
C Pascal Main Storage Memory Process: 58. What Is Heap Memory?
59 . Example of a bottleneck and how do you found it and how it was resolved?
60. How do you Identify a Memory Leak?
Memory leak cannot be measured in a single test run, it can measured only doing multiple
test runs and Memory leak can happen MAINLY during (when i say mainly, dont mean it to
be ONLY ) STRESS testing rather than Performance testing example, suppose that during
the first iteration of load tests, the process shows a marked increase in memory
consumption, indicating a possible memory leak. In the subsequent iterations, additional
memory can be consumed, these can be captured to study the memory allocation pattern
for the application.
a memory leak is a type of resource leak that occurs when a computer program incorrectly
manages memory allocations[1] in such a way that memory which is no longer needed is not
released. In object-oriented programming, a memory leak may happen when an object is stored in
memory but cannot be accessed by the running code.[2] A memory leak has symptoms similar to a
number of other problems and generally can only be diagnosed by a programmer with access to the
program's source code.
Because they can exhaust available system memory as an application runs, memory leaks are often
the cause of or a contributing factor to software aging.
65. types of GC ?
4. G1 Garbage Collector
Each of these four types has its own advantages and disadvantages. Most importantly, we the
programmers can choose the type of garbage collector to be used by the JVM. We can choose
them by passing the choice as JVM argument. Each of these types differ largely and can
provide completely different application performance. It is critical to understand each of these
types of garbage collectors and use it rightly based on the application.