Excessive CPU, memory and disk usage for LAMP app

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Other

bnsupport ID: d3d42cb8-20a9-a15d-e589-8c699bf15a9a

bndiagnostic output:

? Apache: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/bch/apps/moodle/troubleshooting/deny-connections-bots-apache/

bndiagnostic failure reason: Here are the IP’s that have accessed the app:

161 127.0.0.1
77 45.146.164.110
65 147.182.204.85
32 135.125.246.189
30 161.35.86.181
22 185.93.229.13
20 192.88.134.13
16 176.111.173.206
15 75.142.127.229
15 205.185.126.200

I did not notice anything too crazy here.

Description:
I developed and launched a very small php app for my client. CPU (T3A nano) usage is at a constant 100% and disk/memory usage is very high. The app is very low traffic and the mysql db associated with it has only one database with only one row of information.

I ran the bitnami support tool and didn’t notice any glaring issues. Tomorrow I will have access to the AWS cost breakdown so I will check that. Any ideas as to what could be causing the performance spikes? Thanks.

Hello @jeffmacon,

I cannot see anything weird. CPU usage seems ok:

-----------------------------------
Check CPU usage for current processes
-----------------------------------
Running: ps -e -o pcpu,nice,state,cputime,args --sort -pcpu | awk '{print $1,$2,$3,$4,$5}'
In: /opt/bitnami

Output:

%CPU NI S TIME COMMAND
12.1 0 S 00:00:16 /opt/bitnami/bnsupport-tool
0.2 0 S 00:00:01 /sbin/init
0.2 0 S 00:00:01 /opt/bitnami/mysql/bin/mysqld
0.1 0 S 00:00:00 [kswapd0]
0.0 0 S 00:00:00 [kthreadd]
0.0 -20 I 00:00:00 [rcu_gp]
0.0 -20 I 00:00:00 [rcu_par_gp]
0.0 -20 I 00:00:00 [kworker/0:0H-kblockd]
0.0 -20 I 00:00:00 [mm_percpu_wq]
0.0 0 S 00:00:00 [ksoftirqd/0]
0.0 0 I 00:00:00 [rcu_sched]
0.0 0 I 00:00:00 [rcu_bh]
0.0 - S 00:00:00 [migration/0]
0.0 0 I 00:00:00 [kworker/0:1-mm_percpu_wq]
0.0 0 S 00:00:00 [cpuhp/0]
0.0 0 S 00:00:00 [cpuhp/1]
0.0 - S 00:00:00 [migration/1]

Also, your instance has little available RAM memory.

   total used free shared buff/cache available 
Mem: 464 338 49 5 76 108 
Swap: 634 234 400

Note that it may depend on your app requirements. Let me share our documentation in case it helps:
https://docs.bitnami.com/aws/faq/administration/improve-server-performance/

Regards

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.