1

This is the scenario,- it is a Java Application mainly, Heap Dump & Thread Dump is not helping me. Maybe I am not wise analyzing it.

Observation 1) Lots of memory seems to be utilized.

[maddipp1@pacoa13l ~] $ cat /proc/meminfo
MemTotal:       65807504 kB
MemFree:         4890688 kB

Observation 2) CPU usage is intensive.

Excerpt from top command,-

id - Time spent in idle operations is also high in all the hosts.

94.8 id - pacoa12l.unix.anz
81.4 id - pacoa13l.unix.anz
98.2 id  - pacoa06l.unix.anz

At overall, our java-based web application sucks by consuming more time for a web page to open. I would like to know with any linux based command(s) or settings with it I can handle the situation. I cannot command on about the design patterns or the way application is designed, I am with L3 support, so I look towards the resolution, we have given certain suggestions although, but with it no improvements at all. Please guide me something considering a linux based application which runs on and consumes cpu / memory

So, how can I work with CPU and memory intensive applications in Linux ?

Other than it is a java based application, it uses database, and it is Oracle DB. Our AWR Report shows one of the order by clause - query uses execution time, that is more than 32 seconds and that Query has multiple inner join(s) and outer join(s) AND regarding AWR Report I get this PDF document from IBM- https://www.ibm.com/downloads/cas/WNK5D2QZ

Kindly suggest on what I would do to sort out the issue.

comment :-

Do you have swap? free will tell you. If not, you need between 1xRAM and 2xRAM. Swap space must be contiguous, not fragmented. Read man mkswap fallocate filefrag swapon fstab.

1xRAM and 2xRAM means, - should I have to go for increasing my physical RAM size in the linux machine?

This is the SWAP details,

SwapTotal:       5242876 kB
SwapFree:        5016828 kB

Please advise for this

11
  • 4
    Regarding memory, having over 4GiB free means that the system is fine. You need to check the amount of memory that’s used, not free. Regarding CPU, if your system shows over 80% idle time then either the system has an enormous number of CPUs or your program isn’t really CPU-intensive. What problem are you trying to solve? Commented Mar 22, 2024 at 20:49
  • At overall, our java-based web application sucks by consuming more time for a web page to open. I would like to know with any linux based command(s) or settings with it I can handle the situation. I cannot command on about the design patterns or the way application is designed, I am with L3 support, so I look towards the resolution, we have given certain suggestions although, but with it no improvements at all. Please guide me something considering a linux based application which runs on and consumes cpu / memory Commented Mar 22, 2024 at 20:59
  • What issues are you having exactly? Commented Mar 23, 2024 at 7:30
  • 2
    renice your app and recheck Commented Mar 23, 2024 at 8:44
  • 1
    Do you have swap? free will tell you. If not, you need between 1xRAM and 2xRAM. Swap space must be contiguous, not fragmented. Read man mkswap fallocate filefrag swapon fstab. Commented Apr 15, 2024 at 19:32

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.