From last night I am getting below unexpected behaviour.
Out of memory: Kill process 1740 (java) score 128 or sacrifice child
Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.393549] Out of memory: Kill process 1740 (java) score 128 or sacrifice child
Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.395444] Killed process 1740 (java) total-vm:5739256kB, anon-rss:1083164kB, file-rss:0kB, shmem-rss:0kB
Apr 8 19:14:20 ubuntu-s-4vcpu-8gb-sgp1-01 kernel: [17644.472817] oom_reaper: reaped process 1740 (java), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
Apr 8 19:17:01 ubuntu-s-4vcpu-8gb-sgp1-01 CRON[6201]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
I know this is OOM problem. But in high traffic time my memory usages is 39%. I also using this setup for the last 6 month.
My server setup is as follows:
- One tomcat server
- One JBOSS server
- Jenkins
- Mysql server
Machine configuration is : Ubuntu 4vcpu 8GB RAM
Current machine status is in attachment.
Please suggest me some procedure that can help.
Notes :
- I checked all public porst. All are ok
- My servers are configured properly
- Database is configured properly
- I am fetching this issue from last night. I have used this setup for six months. It occurred suddenly
- I checked suspected installed package using Rkhunter. They detected no problem