LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2019, 01:51 AM   #1
f.fricano
LQ Newbie
 
Registered: Apr 2019
Location: Italy
Posts: 3

Rep: Reputation: Disabled
Sudden increase in processes


Good morning everyone. I have a big problem.

I have a number of domains with an internet service provider. Normally only one process is active. The process is this one:

CROND
/bin/bash -c /usr/bin/php /home/bs1pcgbn/mysite/api/cron.php >/dev/null 2>&1 0% 1
/opt/cpanel/ea-php56/root/usr/bin/php-cgi /home/bs1pcgbn/mysite/api/cron.php

The Physical Memory used is normally under 300 M.

One day the processes started to increase suddenly reaching more than 50 contemporary processes. The Physical Memory also increase to reach 934 M.

At this point it became impossible to reach the domains.

The increase in processes is due ... to the same process. Let me explain. As I wrote, before the increase, the only process was as follows:

CROND
/bin/bash -c /usr/bin/php /home/bs1pcgbn/mysite/api/cron.php >/dev/null 2>&1 0% 1
/opt/cpanel/ea-php56/root/usr/bin/php-cgi /home/bs1pcgbn/mysite/api/cron.php

Subsequently, this process, without any intervention, is replicated several times. If I take a snapshot, the list is full of this process repeated several times

The provider states that I need to check the installed plugins. But I didn't install any plugins .... Can you help me?
 
Old 04-15-2019, 06:11 AM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
How is this process executed? If you manually run this, does it replicate?
Instead of /dev/null, how about redirect to an actual file and see if it gives you anything useful?
 
Old 04-15-2019, 06:19 AM   #3
f.fricano
LQ Newbie
 
Registered: Apr 2019
Location: Italy
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for your reply.
At the moment I have no active cron but this process continues to operate. I deleted all site-related installations but nothing changed. If you look at the attachments, in the first attachment (picture 1) there is a photograph of when the situation has changed (10 of aprile about 13:00 AM Italy time). In the second picture (picture 2) the indicated process. Before 10 of april 2019 there were only 1 process active. Now I have a lot of the same process
Attached Thumbnails
Click image for larger version

Name:	picture 1.png
Views:	14
Size:	140.6 KB
ID:	30354   Click image for larger version

Name:	picture 2.png
Views:	13
Size:	132.7 KB
ID:	30355  
 
Old 04-15-2019, 06:21 AM   #4
f.fricano
LQ Newbie
 
Registered: Apr 2019
Location: Italy
Posts: 3

Original Poster
Rep: Reputation: Disabled
The provider says it must be the fault of some plugins I have installed. But I didn't install any plugins. And all domains are unattainable at the moment.
BTW, I can't modify this process because ... it doesn't exist. This cron does not exist in all directories ... Unfortunately I don't have access to the machine (only the provider can do it)

Last edited by f.fricano; 04-15-2019 at 06:23 AM.
 
Old 04-17-2019, 01:01 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,792

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Please run
Code:
pstree
to see if the php script runs other processes that are hung.
Also helpful, run an strace on cron
Code:
strace -fp `pgrep -ox crond`
and see what it does. Unfortunately cron does other jobs, so the strace might also follow some of these jobs.
Ctrl-c will stop the strace (if not then try Ctrl-z and "pkill -9 -x strace").

Last edited by MadeInGermany; 04-17-2019 at 01:05 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudden increase in Windows users on LQ? jdkaye General 27 11-03-2010 09:22 AM
any way to increase CD-ROM buffer, increase spindown delay, XMMS buffer r00tb33r Linux - Hardware 5 06-12-2009 12:10 AM
Help! imapd is spawning multiple processes, all of a sudden, for no reason! fishsponge Linux - Server 1 02-26-2009 10:55 AM
USB time out value (to increase or not increase) lynxgogo Linux - Hardware 0 07-24-2003 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration