ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 342 - XK0-005 discussion

Report
Export

Users are reporting that a production application has slow performance. A systems administrator logs in to the server and performs some basic checks. Given the following:

yaml

[root@comptia]# ps -o pcpu; pidstat 1

Average: UID PID %usr %system %wait %CPU Command

Average: 0 937242 32.39 0 63.21 32.39 app_prd

Average: 0 937245 44.97 0.31 51.57 45.28 app_prd

Average: 0 937244 23.62 0 63.55 28.62 app_prd

[root@comptia]# vmstat 1

procs memory swap io system cpu

r b swpd free buff cache si so bi bo in cs us sy id wa st

16 0 978912 376320 50804 10296312 0 0 0 44 5503 2962 98 2 0 0 0

[root@comptia]# free -m

total used free shared buff/cache available

Mem: 15533 5063 365 164 10104 9975

Swap: 7931 955 6976

Which of the following is causing the performance issue?

A.

The server does not have enough memory

Answers
A.

The server does not have enough memory

B.

Too many processes are running on the server

Answers
B.

Too many processes are running on the server

C.

The server CPU is receiving too much load

Answers
C.

The server CPU is receiving too much load

D.

The server is swapping

Answers
D.

The server is swapping

Suggested answer: D

Explanation:

The output from free -m shows that a significant portion of the swap space (955 MB) is being used, indicating the server is swapping. Swapping occurs when the system runs low on physical memory, leading to poor performance because the system must offload memory pages to the slower swap space. To resolve this, either more physical memory should be added or the application's memory usage should be optimized.

asked 09/10/2024
Sairam Emmidishetti
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first