• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

'sort' running server out of memory

HostaHost

Regular Pleskian
Anyone from Parallels want to chime in on why servers are being run out of memory by the 'sort' command even when the logs are small? Here's what is currently on a site:

-rw-r--r-- 2 root root 22392143 Mar 26 11:40 access_log
-rw-r--r-- 2 root root 68018869 Mar 26 10:50 access_log.processed.1
-rw-r--r-- 3 root root 67671664 Mar 26 09:50 access_log.processed.2
-rw-r--r-- 1 root root 69908 Mar 26 10:50 access_log.stat
-rw-r--r-- 2 root root 45209044 Mar 26 10:50 access_ssl_log.processed
-rw-r--r-- 1 root root 0 Mar 26 10:50 access_ssl_log.stat
-rw-r--r-- 2 root root 355728 Mar 26 11:38 error_log
-rw-r--r-- 2 nginx root 19863420 Mar 26 11:40 proxy_access_log
-rw-r--r-- 2 nginx root 2238322 Mar 26 11:40 proxy_access_ssl_log
-rw-r--r-- 2 root root 0 Mar 26 10:50 xferlog_regular
-rw-r--r-- 2 root root 2357 Mar 26 10:50 xferlog_regular.processed
-rw-r--r-- 1 root root 0 Mar 26 10:50 xferlog_regular.stat

I have the site set to rotate at 100 MB, keep 1 file, and run

50 * * * * /usr/local/psa/admin/bin/statistics --calculate-one --domain-name=<domain>

hourly. Yet here's what is still happening:

Out of memory: Kill process 8569 (sort) score 879 or sacrifice child
Killed process 8569, UID 0, (sort) total-vm:5567932kB, anon-rss:3573156kB, file-rss:232kB
master invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
master cpuset=/ mems_allowed=0
Pid: 1814, comm: master Not tainted 2.6.32-504.12.2.el6.x86_64 #1
Call Trace:

What is your software doing that sort needs 5 gigs of memory to complete?

See this unanswered thread:

http://talk.plesk.com/threads/webst...to-sort-command-on-access_log-webstat.325220/
 
Can you share some additional information?

Output of the commands (via ssh under root user):
1. plesk version
2. free -m

IP address of your server (to check error reports from your server on our side).

Typical size of files in logs directory (output of "ls -la" command).
 
Back
Top