'분류 전체보기'에 해당되는 글 2491건
- 2020.11.17 JMeter ppt
- 2020.11.17 Jenkins 외부 jar 추가하기
- 2020.11.17 Django로 Pinterest 따라하기!
- 2020.11.17 tomcat heap size 설정
- 2020.11.16 [CentOS7] Minimal 버전 설치 이후
- 2020.11.16 [CentOS7] Tomcat 설치 및 설정
- 2020.11.16 java.lang.VerifyError: Inconsistent stackmap frames 오류 해결
- 2020.11.16 리눅스 성능 측정 sysbench 사용법
- 2020.11.16 [톰캣] Tomcat 서버 로그(log)파일인 catalina.out을 날짜별로 생성되도록 수정하기
- 2020.11.13 input validation and representation fortify java 1
- 2020.11.13 maven-surefire-plugin 에러
- 2020.11.13 Unreleased Resource
- 2020.11.12 공개SW를 활용한 소프트웨어 개발보안 점검가이드(2016.02.)
- 2020.11.12 jenkins 를 통한 소스코드 진단하기
- 2020.11.12 spring annotation-driven 시 bean name 중복(충돌,conflicts) 해결
- 2020.11.12 java 시큐어코딩 가이드
- 2020.11.11 null 포인터 역참조(null Pointer Dereference)
- 2020.11.09 [JAVA] Secure 코딩, 취약점 해결, 보안을 위한 방법 정리
- 2020.11.09 HP Fortify Static Code Analyzer
- 2020.11.09 WiKi Security Corporation
- 2020.11.03 Active X 대체 기술 Custom URL Schemes
- 2020.11.02 redirect 값 전달 RedirectAttributes 의 유의사항
- 2020.11.02 한국인터넷진흥원(KISA) 기술안내서 가이드 (시큐어 코딩 가이드 etc)출처
- 2020.10.31 jdk-6u45-linux-x64.bin error while loading shared libraries: libnsl.so.1
- 2020.10.28 커스텀 브라우저 프로토콜로 응용프로그램 실행 - custom url schemes in windows
- 2020.10.28 크롬(chrome)에서 로컬 exe파일 실행하는 방법(ActiveX 대체)[출처] 크롬(chrome)에서 로컬 exe파일 실행하는 방법(ActiveX 대체)|작성자 Marie
- 2020.10.27 Weblogic administration console way too slow
- 2020.01.30 docker mysql 올리기
- 2019.04.29 centos mariadb datadir
- 2019.04.10 How to optimize Apache performance on CentOS 7
vulncat.fortify.com/ko/detail?id=desc.dataflow.abap.cross_site_scripting_poor_validation
www.slideshare.net/TJSeo/ss-64076500
wiki.wikisecurity.net/guide:java_%EA%B0%9C%EB%B0%9C_%EB%B3%B4%EC%95%88_%EA%B0%80%EC%9D%B4%EB%93%9C
www.koreascience.or.kr/article/JAKO201304163995076.pdf
blog.naver.com/taeyoun795/220603999059
addFlashAttribute 여러번 set 할 경우 모두 null 떨어짐... map 으로 객체 set 하는게 좋을듯...
한국인터넷진흥원(KISA) 기술안내서 가이드 (시큐어 코딩 가이드 etc)
출처: https://iamfreeman.tistory.com/entry/한국인터넷진흥원KISA-기술안내서-가이드 [자유인을 위하여~ *^^*]
커스텀 브라우저 프로토콜로 응용프로그램 실행 - custom url schemes in windows
출처: https://mvcp.tistory.com/entry/커스텀-브라우저-프로토콜로-응용프로그램-실행-custom-url-schemes-in-windows [Pragmatic Programmer]mvcp.tistory.com/entry/%EC%BB%A4%EC%8A%A4%ED%85%80-%EB%B8%8C%EB%9D%BC%EC%9A%B0%EC%A0%80-%ED%94%84%EB%A1%9C%ED%86%A0%EC%BD%9C%EB%A1%9C-%EC%9D%91%EC%9A%A9%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8-%EC%8B%A4%ED%96%89-custom-url-schemes-in-windows
http://pseg.or.kr/pseg/infoinstall/8417
grant all privileges on kotidb.* to koti@'%';
grant all privileges on kotidb.* to 'koti'@'%' identified by '1234' with grant option;
flush privileges;
How to optimize Apache performance on CentOS 7
Posted on December 12, 2017 by VPSCheap Team
Apache is one of the most popular and powerful web servers. And of course, it is open source. It is also known as httpd server. Apache web servers are designed to provide a balance of portability, flexibility, and high performance. Optimizing Apache plays a crucial role in determining the overall performance of the system. Apache is easy to configure and provides simple performance tuning options, which we will discuss in detail today.
PrerequisiteS–
A live CentOS 7 server
Apache web server installed and running
First, let us walk you through the process of installing Apache, incase you haven’t done it already. To install Apache, use the command – sudo yum install httpd as shown below-
installation
The installation will take some time. After the installation, you will be able to see a message on the console as shown below-
installation complete
The main configuration file (httpd.conf) can be seen in location /etc/httpd/conf.
The httpd.conf file contains some default parameters. You can also add your own parameters based on your requirements. Let’s now start with some performance optimizations.
KEEP ALive TIMEOUT-
KeepAliveTimeout is a parameter that defines the number of seconds before closing a connection. This is the maximum seconds Apache will wait for a new request before closing the connection. By default, this parameter is disabled in CentOS 7. However, it is generally good practice to have a KeepAliveTimeout value.
This parameter can be set to a very low value, between 1 and 5. To make this change you can edit the httpd.conf file at location- /etc/httpd/conf
You can add the following line:
KeepAliveTimeout 5
Max Keep-Alive Requests-
MaxKeepAliveRequests is the maximum number of requests which can be served on a TCP connection. This will allow you to limit the number of allowed connections and will help in effective utilization of network bandwidth, without causing traffic congestion. This is a numeric value which when set to 0, will allow unlimited requests.
The recommended value here is 500. To add this parameter you will have to edit the httpd.conf file
You can add the following line-
MaxKeepAliveRequests 500
Keep-Alive-
KeepAlive is a parameter which determines whether more than one request per connection is allowed or not. This helps in ensuring one client does not consume all of the server’s resources. By default, this parameter is disabled in CentOS 7. If you expect Apache to be getting multiple requests from different IPs at once, then this should be turned ON. This can be edited in the httpd.conf file.
In order to turn on this parameter, you can add the following line-
KeepAlive On
Configure Multi-Processing Module-
One of the reasons for slow performance in Apache can be its inability to deal with load. In such cases, a multi-processing module will help.
mpm_prefork_module is part of CentOS 7 and is enabled by default. To confirm this is running, you can use the command- sudo apachectl -t -D DUMP_MODULES |grep mpm
multiprocessing module
If mod_deflate is enabled it will display mpm_prefork_module (shared)
For better performance, you can also use Apache MPM prefork module. This can be set in the httpd.conf file.
You can add the following lines in the file-
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 3000
Once the file is saved, you can restart Apache using command- sudo apachectl restart.
Here is a brief explanation of the mentioned parameters-
StartServers – This sets the number of child server processes created at startup. Initially, this can be kept as a small number and can be gradually increased on a high payload server. This helps in ensuring the right utilization of server resources.
MinSpareServers – This sets the minimum number of idle child server processes and can be tuned for high payload servers.
MaxSpareServers – This sets the maximum number of idle child server processes. In case the number of idle child server processes exceeds this value, then the idle processes are killed.
MaxClients – This is the maximum number of simultaneous requests Apache can handle. Once this limit is reached, the connection will be queued.
MaxRequestsPerChild – This indicates how many requests a child process will handle before terminating. Once this limit has been reached, the child process will die. If this value is set to 0, then the process will never die.
Allow Over ride-
The parameter AllowOverride can be set to ‘All’. However, if this is included within a simple directory tag then it will open an .htaccess file for every directory it visits. So if you have the following configuration-
DocumentRoot /var/www/html/example
AllowOverride All
What will happen is that if you make a request to URL /index.html, then Apache will open an .htaccess file for /, /var/, /var/www/, /var/www/html/, /var/www/html/example
To avoid this waste, you can configure AllowOverride for a specific directory, such as:
DocumentRoot /var/www/html/example
<Directory /var/www/html/example/admin>
AllowOverride All
DNS LOOKUPS
Another factor that can slow Apache down is the time required to perform DNS lookups. Apache records the full hostname of each incoming request in the access.log file. Resolving each of these can be time consuming.
This is configured with the parameter- HostnameLookups in the httpd.conf file. This enables DNS lookups so that hostnames can be logged instead of IP address. In Apache, by default, this parameter is turned off. This property is defined in the httpd.conf file as-
HostnameLookups Off
Once you’re done making all of the above changes, restart Apache using the command- sudo apachectl restart
And that’s it! Your Apache web server should now be way more efficient than it was before.