Home Backend Development PHP Tutorial 网站变慢 重启apache后通常

网站变慢 重启apache后通常

Jun 13, 2016 pm 01:21 PM
apache cpu ping

网站变慢 重启apache后正常
网站变慢 重启apache后正常,重启后一段时间又变慢了,服务器cpu和内存都正常,而且用的都很少的,ping反应也快,一般10多ms,不过就是出现打开网站慢的情况,最近出现的,请问大牛们应该这个排查,额,不要回答就说查apache日志哈,最好说哈应该咋个查,估计是那种情况出现的问题,如果出现了在日志里表现是怎么样的.....

------解决方案--------------------
其实我也遇到过,过了一阵自己就好了,至今原因未知。
------解决方案--------------------
关键就在于 用的都很少的
由于用的很少,所以 apache 所需的内存被挤到硬盘上去了,甚至所需的动态链接库都被从内存中卸载了
等到用的时候再从硬盘中加载,甚至还要加载动态链接库。那当然就慢啦
------解决方案--------------------
重启apache后正常
原因根本就是apache

重新安装后,试一试。


------解决方案--------------------
老大这个解释似乎不妥啊,如果是你说的这个原因,那只要用浏览器访问几次,应该就能恢复正常了,楼主恐怕也就不会提这个问题了。

探讨
关键就在于 用的都很少的
由于用的很少,所以 apache 所需的内存被挤到硬盘上去了,甚至所需的动态链接库都被从内存中卸载了
等到用的时候再从硬盘中加载,甚至还要加载动态链接库。那当然就慢啦

------解决方案--------------------
优化一下参数试试。。
------解决方案--------------------
可能服务器问题吧,
------解决方案--------------------
清清缓存试试
------解决方案--------------------
apache的连接数怎么样? 带宽够用吧
------解决方案--------------------
首先确定是apache问题,会不会是解析url变慢了,重启一下机器能不能好点呢
------解决方案--------------------
重启后一切都正常,表明apache什么的都没问题, 过段时间就变慢了,,这下问题就出现了,,,你在慢慢排查吧,,,
这问题表示很蛋疼...
------解决方案--------------------
win还是linux?
------解决方案--------------------
确实挺蛋疼的...
------解决方案--------------------
探讨
网站变慢 重启apache后正常,重启后一段时间又变慢了,服务器cpu和内存都正常,而且用的都很少的,ping反应也快,一般10多ms,不过就是出现打开网站慢的情况,最近出现的,请问大牛们应该这个排查,额,不要回答就说查apache日志哈,最好说哈应该咋个查,估计是那种情况出现的问题,如果出现了在日志里表现是怎么样的.....

------解决方案--------------------
是不是跟程序有关? 程序写得不好也会让apache很累的。。。即使访问量比较少
------解决方案--------------------
http://www.blogjava.net/itvincent/archive/2009/12/11/305522.html
------解决方案--------------------
电脑的原因吧……
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

144-core, 3D-stacked SRAM: Fujitsu details next-generation data center processor MONAKA 144-core, 3D-stacked SRAM: Fujitsu details next-generation data center processor MONAKA Jul 29, 2024 am 11:40 AM

According to news from this website on July 28, foreign media TechRader reported that Fujitsu introduced in detail the FUJITSU-MONAKA (hereinafter referred to as MONAKA) processor planned to be shipped in 2027. MONAKACPU is based on the "cloud native 3D many-core" architecture and adopts the Arm instruction set. It is oriented to the data center, edge and telecommunications fields. It is suitable for AI computing and can realize mainframe-level RAS1. Fujitsu said that MONAKA will achieve a leap in energy efficiency and performance: thanks to technologies such as ultra-low voltage (ULV) technology, the CPU can achieve 2 times the energy efficiency of competing products in 2027, and cooling does not require water cooling; in addition, the application performance of the processor It can also reach twice as much as your opponent. In terms of instructions, MONAKA is equipped with vector

Leak reveals key specs of Intel Arrow Lake-U, -H, -HX and -S Leak reveals key specs of Intel Arrow Lake-U, -H, -HX and -S Jun 15, 2024 pm 09:49 PM

IntelArrowLakeisexpectedtobebasedonthesameprocessorarchitectureasLunarLake,meaningthatIntel'sbrandnewLionCoveperformancecoreswillbecombinedwiththeeconomicalSkymontefficiencycores.WhileLunarLakeisonlyavailableasava

AM4 refuses to die, news says AMD will launch Ryzen 9 5900XT/7 5800XT: clocked at up to 4.8GHz AM4 refuses to die, news says AMD will launch Ryzen 9 5900XT/7 5800XT: clocked at up to 4.8GHz Jun 05, 2024 pm 09:43 PM

According to news from this website on June 1st, the source @CodeCommando tweeted today, sharing some screenshots of AMD’s upcoming presentation documents at the Computex2024 event. The content of the tweet was “AM4 will never die”, and the accompanying picture showed two new Ryzen5000XT series processors. The screenshots show the following two products: Ryzen 95900 Ryzen75800XT It is a faster variant of AMD's existing Ryzen75800X processor. Both processors are clocked up to 4.8G

Intel confirms LGA9324 Oak Stream-AP platform supports Diamond Rapids Xeon processors Intel confirms LGA9324 Oak Stream-AP platform supports Diamond Rapids Xeon processors Aug 22, 2024 am 11:16 AM

According to news from this site on August 22, X platform user 포시포시 (@harukaze5719) noticed that Intel listed two adapter boards suitable for LGA9324-OKS-AP platform power supply testing on its official website DESIGN-iNTOOLSstore. ▲BLU version adapter board, in addition to RED version Intel wrote in the description of these two products that the LGA9324-OKS-APOakStream platform supports DiamondRapids, which positively confirms the next-generation Xeon performance core after Xeon 6 "GraniteRapids" The existence of processors and corresponding platforms. Current information on DiamondRapids processors and OakStream platforms

Solution to Intel 13th and 14th generation processor stability issues Solution to Intel 13th and 14th generation processor stability issues Jun 18, 2024 pm 06:01 PM

13th and 14th generation processors experienced game crashes, blue screens of death, automatic computer restarts and other failures. It was previously suspected to be caused by the nvidia graphics card. After nvidia inquired, it was the fault of the Intel processor. Recently, Intel blamed the stability issues of the 13th/14th generation processors. For motherboard and BIOS system manufacturers. Now Intel has also proposed a solution. Let’s take a look with the editor below. It is possible that the setting options in the BIOS of the 600 and 700 series motherboards involving the voltage, frequency, power consumption and stability of the 13th and 14th generation Core processors are incorrectly set, or the setting values ​​are outside the range officially allowed by Intel. It will cause or increase the risk of unstable processor operation. Intel’s recommended settings are as follows (see the figure below): [C

Intel CPU size and core scheduling issues, CPU size and core optimization settings above 12 generations Intel CPU size and core scheduling issues, CPU size and core optimization settings above 12 generations Jun 19, 2024 am 01:42 AM

Inteli5-12600 and above CPUs, i5-13400 and above CPUs have P-Core performance cores (large cores) and E-Core energy efficiency cores (small cores). Due to the scheduling problem of "big and small cores", some games may drop frames. , lag, not as good as the old CPU before. In fact, the system thinks that to cope with the current scene, the younger one can handle it, and there is no need to dispatch the older one, so the older core has been resting and not working. The editor below will teach you how to solve this problem. Create a new text document on the desktop, copy the following content, save it as 1.reg, and then right-click to merge. WindowsRegistryEditorVersion5.00[HKEY_LOCAL_MACHINE\SY

How to conduct concurrency testing and debugging in Java concurrent programming? How to conduct concurrency testing and debugging in Java concurrent programming? May 09, 2024 am 09:33 AM

Concurrency testing and debugging Concurrency testing and debugging in Java concurrent programming are crucial and the following techniques are available: Concurrency testing: Unit testing: Isolate and test a single concurrent task. Integration testing: testing the interaction between multiple concurrent tasks. Load testing: Evaluate an application's performance and scalability under heavy load. Concurrency Debugging: Breakpoints: Pause thread execution and inspect variables or execute code. Logging: Record thread events and status. Stack trace: Identify the source of the exception. Visualization tools: Monitor thread activity and resource usage.

Application of algorithms in the construction of 58 portrait platform Application of algorithms in the construction of 58 portrait platform May 09, 2024 am 09:01 AM

1. Background of the Construction of 58 Portraits Platform First of all, I would like to share with you the background of the construction of the 58 Portrait Platform. 1. The traditional thinking of the traditional profiling platform is no longer enough. Building a user profiling platform relies on data warehouse modeling capabilities to integrate data from multiple business lines to build accurate user portraits; it also requires data mining to understand user behavior, interests and needs, and provide algorithms. side capabilities; finally, it also needs to have data platform capabilities to efficiently store, query and share user profile data and provide profile services. The main difference between a self-built business profiling platform and a middle-office profiling platform is that the self-built profiling platform serves a single business line and can be customized on demand; the mid-office platform serves multiple business lines, has complex modeling, and provides more general capabilities. 2.58 User portraits of the background of Zhongtai portrait construction

See all articles