With the need to monitor some of the Apache servers that require high availability, in addition to professional monitoring and alerting devices, it is a good idea to write a script that automatically monitors Apache status on the Apache server at low cost. Search on the Internet a lot of similar scripts, but because of
Linux monitoring (OS, MySQL, Tomcat, Apache), tomcatapache
My Opinion on gradually moving away from the development position has been approved by the boss. My next major job is "O M + database management". I would like to thank Jie Minmin and Xiao Ma for accepting my harassment and then harassing them. I will also harass Ye Dong, Mr. Xiaogang, zhishen, and pig. Thank you. At the same time, I would like to
httpd is the main program of Apache, it implements all the functions of Apache, we can control it well by parameters.
- D name: Verify that the contents of the
- DDirectory: Specifies a new ServerRoot (that is, the service root directory).
- FFile: Use the specified file as the Apache configuration file.
- C "directive": The configuration of the d
In the design of large web site systems, with the popularity of distributed architectures, especially microservices architectures, we decouple the systems into smaller units and build complex systems by constantly adding new, smaller modules, or reusing existing modules. With the increasing number of modules, a single request may involve more than 10 or even dozens of services of the collaborative processing, so how to accurately and quickly locate to the online failure and performance bottlenec
About the gradual departure from the development position, the boss has approved, and then my main work is "operation and maintenance + database management." Thank Chey brother and pony Brother can accept my harassment, and then will go to harass them, but also to harass Dong uncle, small just total, heart elder brother, pork brother, thank you. At the same time also want to thank Wu Louda, Leaf boss, fall total, seven total, orange elder brother them.Because have not learned to play Zabbix, so
In the%jboss_home%/bin/run.sh file
java_opts= "$JAVA _opts-dprogram.name= $PROGNAME"
Modified to:
java_opts= "$JAVA _opts-dprogram.name= $PROGNAME-dcom.sun.management.jmxremote.port=9999- Dcom.sun.management.jmxremote.authenticate=false-dcom.sun.management.jmxremote.ssl=false "
#-djava.rmi.server.hostname=192.168.2.2 #this must is added for TOMACAT6
For Tomcat ... find #Execut the requested Command in catalina.sh file.
Remote monitoring can be ac
1. According to the Apache log, get the maximum number of concurrent records in the second day
tail-10000./demo.fdipzone.com_access_log.2014-01-16_01 | Cut-d "["-F 2 | awk ' {print $} ' | Sort | uniq-c | Sort-nr | Head
tail-10000./demo.fdipzone.com_access_log.2014-01-16_01 | Awk-f "[" ' {print $;} ' | awk ' {print $} ' | Sort | uniq-c | Sort-nr | Head
Run Result:
fdipzone@ubuntu:~$ tail-100000./demo.fdipzone.com_access_log.2014-01-16_01 | Cut-d "
Enable server-status monitoring for apache in CentOS
1. Enable mod_status.so Module[Plain] view plaincopy
Cd/usr/local/apache/conf
Vihttpd. conf
Find LoadModule status_module modules/mod_status.so and remove the previous # (No by default, if any)
2. Configure the server-status Service
Method 1:
Add in httpd. conf
[Plain] view plaincopy
SetHandl
The original text hereHTTPd failed to start under CentOS, reported(13) Permission denied:make_sock:could not bind to address [::]:8000Because a port less than 1024 can only be rooted, but 8000 is already greater than this value.Google, found that the original is the role of the SELinux security mechanism.Check out the pre-defined#semanage port-lhttp_cache_port_t TCP 3128, 8080, 8118, 11211, 10001-10010http_cache_port_t UDP 3130, 11211http_port_t TCP 80, 443, 488, 8008, 8009, 8443soundd_port_t TC
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.