In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to solve the bug caused by Linux hard disk full, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Some time ago, a bug appeared in one of the company's projects, and there will be network problems when uploading large files using ajax. When you use the chrome developer tool to view the web request, you find that the error is ERR_CONNECTION_RESET. When I see this error, I think of what happens when I visit Google, . Then use IE's developer tool to view the network request, and the error code is 403.
The code has not been updated during this time, and the local test is also OK. But something went wrong when deployed to the server. Because the server rents the Taobao gathering Tower, is it because of the firewall? But only this page has a problem, and everything else is normal.
Nginx and tomcat are installed on the server. Check the access log of nginx and find that there are too many records and give up. Check the error record and find that there is not enough disk space for the log to be written.
Decisively check the disk usage with df-lh and find that the mount point / is full. Change to the root directory, run du-sh * to check the size of each folder, and find that var takes up more than 30 GB. Continue to du-sh / var/* and finally find the folder / var/spool/clientmqueue takes up more than 30 GB.
The reason why the folder Google / var/spool/clientmqueue is too large is found to be
Some users in the system open cron, and the program executed in cron has output, which will be sent to cron users in the form of mail, while sendmail does not start, so these files are generated.
All right, delete everything under the / var/spool/clientmqueue folder decisively. Retest and find that bug has disappeared.
Then go to / etc/cron* to see what kind of scheduled tasks there are, and find that there are many, which should be created by creating a cluster tower server, and it is not easy to modify. Then we have to adopt circuitous tactics. Create a new file rmclientmqueue under / etc/cron.daily:
#! / bin/shrm-rf / var/spool/clientmqueue/*chmod Ubunx rmclientmqueue Thank you for reading this article carefully. I hope the article "how to solve the bug caused by Linux hard disk full" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.