"Linux" process do not open too much, or the system will be stuck!

Source: Internet
Author: User

Running a mission today, probably like this.

Python task.py-s input/

The input folder has more than 200 files, such as 1.txt, 2.txt and so on, and task.py will read and do the operation sequentially.

I think it's not too slow. So I wrote a shell script.

Python task.py-s input/1.txt &-S Input/2.txt&-S Input/3.txt &...

And then it was tragic.

More than 200 processes start, the whole system is stuck! It's not moving at all!!!

Now think of the solution:

Ps-aux|grep python task.py

Then kill all related processes.

The key problem is that the system is unresponsive now and cannot input commands/(ㄒoㄒ)/~~

"Linux" process do not open too much, or the system will be stuck!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.