Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WordPress] Running out of memory - memory leak? #1370

Closed
dloszewski opened this issue Jan 18, 2024 · 3 comments
Closed

[WordPress] Running out of memory - memory leak? #1370

dloszewski opened this issue Jan 18, 2024 · 3 comments
Assignees
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress

Comments

@dloszewski
Copy link

dloszewski commented Jan 18, 2024

### Platform

Google Cloud Platform

### bndiagnostic ID [know more about bndiagnostic ID](https://docs.bitnami.com/general/how-to/understand-bndiagnostic/)

b98653b3-1a42-46f9-c90e-374c9683951d

### bndiagnostic output


    ? Resources: Found possible issues
    ? Connectivity: Found possible issues
    ✓ Mariadb: No issues found
    ✓ Processes: No issues found
    ✓ Wordpress: No issues found
    ? Apache: Found possible issues
    ✓ Php: No issues found



[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 7817 6910 225 139 681 412
Swap: 1023 733 290

You could try to increase your instance's memory. Please check your cloud
provider's documentation for more information.
Press [Enter] to continue:

[Connectivity]

Server ports 22, 80 and/or 443 are not publicly accessible. Please check the
following guide to open server ports for remote access:

https://docs.bitnami.com/general/faq/administration/use-firewall/

[Apache]

Found recent error or warning messages in the Apache error log.

[Thu Jan 18 14:40:22.251690 2024] [proxy_fcgi:error] [pid 42584:tid
140653526771456] [client **ip_address**:45392] AH01071: Got error 'PHP message:
PHP Notice: Unknown: file created in the system's temporary directory in Unknown
on line 0', referer:
https://www.xxxxxxx/wp-admin/post.php?post=15677&action=elementor
 [Thu Jan 18 14:40:25.823343 2024] [proxy_fcgi:error] [pid 42584:tid
140653484807936] [client **ip_address**:45392] AH01071: Got error 'PHP message:
PHP Notice: Unknown: file created in the system's temporary directory in Unknown
on line 0', referer:
https://www.xxxxxxxx/wp-admin/post.php?post=15677&action=elementor
 [Thu Jan 18 16:41:40.393533 2024] [proxy_fcgi:error] [pid 42584:tid
Press [Enter] to continue:
140654558549760] [client **ip_address**:61576] AH01071: Got error 'PHP message:
PHP Notice: Unknown: file created in the system's temporary directory in Unknown
on line 0', referer: https://www.xxxxxxxx/wp-admin/media-new.php


Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro
rs-apache/


===== End of bndiagnostic tool output =====


Press [Enter] to continue:                                                                                                                                          The diagnostic bundle was uploaded successfully to the Bitnami servers. Please copy the following code:

b98653b3-1a42-46f9-c90e-374c9683951d

And paste it in your Bitnami Support ticket.


### bndiagnostic was not useful. Could you please tell us why?

I already know it's low on resources due to a memory leak

### Describe your issue as much as you can

System is consistently running out of memory, I'm having to clear cache and memory nightly to free it up.  Currently not sure what is causing it, my best guess is either mysqld or updraftplus.  Any help would be appreciated.

messages.1-Jan 13 05:22:24 ip-172-26-1-6 updraftplus[796]: (5b7207b1113e) The backup succeeded and is now complete
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) Opened log file at time: Sat, 13 Jan 2024 05:22:49 +0000
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) UpdraftPlus WordPress backup plugin (https://updraftplus.com): 2.23.14.26 WP: 6.4.2 PHP: 8.1.10 (fpm-fcgi, Linux ip-172-26-1-6 5.10.0-27-cloud-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64) MySQL: 10.6.9-MariaDB (max packet size=16777216) WPLANG: en_US Server: Apache safe_mode: 0 max_execution_time: 900 memory_limit: 512M (used: 15.8M | 18M) multisite: N openssl: OpenSSL 1.1.1n  15 Mar 2022 mcrypt: N LANG:  ZipArchive::addFile: Y
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) Free space on disk containing Updraft's temporary directory: 31395.9 MB
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) Tasks: Backup files:  (schedule: daily) Backup DB: 1 (schedule: daily)
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) Processed schedules. Combining jobs from identical schedules. Tasks now: Backup files:  Backup DB:
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) No email will be sent - this backup set was empty.
messages.1-Jan 13 05:22:49 ip-172-26-1-6 updraftplus[738]: (2efb90d851e9) The backup succeeded and is now complete
messages.1:Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.931117] mysqld invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.938646] CPU: 0 PID: 68047 Comm: mysqld Not tainted 5.10.0-27-cloud-amd64 #1 Debian 5.10.205-2
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.945656] Hardware name: Amazon EC2 c6i.xlarge/, BIOS 1.0 10/16/2017
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.949811] Call Trace:
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.952373]  dump_stack+0x6b/0x83
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.955268]  dump_header+0x4a/0x1f4
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.958256]  oom_kill_process.cold+0xb/0x10
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.961671]  out_of_memory+0x1bd/0x4e0
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.964937]  __alloc_pages_slowpath.constprop.0+0xbcc/0xc90
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.968845]  __alloc_pages_nodemask+0x2de/0x310
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.972337]  pagecache_get_page+0x175/0x390
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.975684]  filemap_fault+0x6a2/0x900
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.978863]  ? xas_load+0x5/0x80
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.981857]  ext4_filemap_fault+0x2d/0x50
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.985147]  __do_fault+0x34/0xa0
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.988174]  handle_mm_fault+0x1250/0x1c60
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.991520]  do_user_addr_fault+0x1b8/0x400
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.994889]  exc_page_fault+0x78/0x160
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417947.998069]  ? asm_exc_page_fault+0x8/0x30
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.001400]  asm_exc_page_fault+0x1e/0x30
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.004693] RIP: 0033:0x560dc4bdef1e
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.007811] Code: 48 8d bb 88 40 00 00 e8 d0 b2 11 00 49 8b 86 a0 00 00 00 48 83 40 08 01 4d 85 e4 74 73 49 8b 04 24 4c 89 e7 ff 90 f0 00 00 00 <49> 8b 95 a0 01 00 00 48 8b 92 c0 5f 00 00 83 ba 34 02 00 00 05 74
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.019923] RSP: 002b:00007f2258369630 EFLAGS: 00010246
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.023704] RAX: 0000000000000001 RBX: 00007f21880008e8 RCX: 00007f218801197b
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.029730] RDX: 00000000ffffffff RSI: 00007f218801197b RDI: 00007f2258369540
messages.1-Jan 13 20:05:59 ip-172-26-1-6 kernel: [417948.035794] RBP: 00007f2258369670 R08: 00000000ffffff9b R09: 0000000000000003
--
`
@dloszewski dloszewski added the tech-issues The user has a technical issue about an application label Jan 18, 2024
@github-actions github-actions bot added the triage Triage is needed label Jan 18, 2024
@jotamartos
Copy link
Collaborator

I suggest you take a look at these guides to know if there is any performance issue or if there is a bot/attacker accessing your site with malicious intentions

https://docs.bitnami.com/general/faq/troubleshooting/troubleshoot-server-performance/
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/deny-connections-bots-apache/

Apart from that, please install a security plugin like WordFence to analyze the application and check if there is any malicious code running in your server.

If the issue happens when updraft is generating the backup, I also suggest you ask the updraft developers to know more about how to avoid the issue.

@jotamartos jotamartos changed the title Bitnami Wordpress Running out of memory - memory leak? [WordPress] Running out of memory - memory leak? Jan 22, 2024
Copy link

github-actions bot commented Feb 7, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Feb 7, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed wordpress
Projects
None yet
Development

No branches or pull requests

3 participants