Discover apache performance tuning linux, include the articles, news, trends, analysis and practical advice about apache performance tuning linux on alibabacloud.com
extensive database connection pool components are c3p0, DBCP, PROXOOL;C3P0 is a database connection pool that accompanies hibernate and is closely connected with hibernate;4. In the JDK, the new operation is quite efficient and does not need to worry about the performance impact of the frequent new operation on the system. However, the class constructor called by the new operation may be very time consuming, and for these objects, pooling can be cons
Performance Tuning Experience SummaryThe problem arises:In the daily environment, a server, for example, the machine's number of visits per second is around 368, the maximum number of visits at 913. The performance of the external service is that every two or three hours there is a second level of time client request timeout, in the case of increased traffic, the
for new TCP connections, which defaults to 0, which means shutdown; Net.ipv4.tcp_tw_recycle = 1 indicates a fast recovery of time-wait sockets in a TCP connection, and the default is 0, which means close; NET.IPV4.TCP_FIN_TIMEOUT=30 modifies the default timeout time for the system . If the above configuration tuning performance is not ideal, you can continue to modify the configuration:Vi/etc/sysctl.co
improve performance. This is the default setting of True.Connectionlinger: The number of seconds to close when this connector will continue to use the socket. The default value is-1, which disables the socket delay time.Server: Hide Tomcat version information, first hide version information in HTTP header
6. Hide or modify the Tomcat version number
# cd/usr/local/tomcat/lib/# Unzip Catalina.jar # CD Org/
Performance Tuning for Nginx1 Modify the core number of CPUs corresponding to the Nginx work process this is generally your CPU core number of twice times, founder is multiples, specific to several times to see the specific hardware configuration2 Modifying the file descriptor 65536 ulimit-n Permanent effect can be changed/etc/sysctl.conf3 Modifying the Linux ker
.
rbd cache max dirty object: The maximum Object number of objects, by default, is 0, which is rbd cache size calculated by librbd default, the disk image is logically sliced in 4MB, each chunk object is abstracted as one, and Object librbd the cache is Object managed in units. Increasing this value can improve performance.
Reviews: This value is smaller in ceph-0.94.1 and is recommended to be increased by the calculation
The DB2 tutorial you are looking at is: IBM DB2 basic Performance tuning. Buffer pool
If you have experience using DB2 UDB, you should know that the buffer pool is a space in memory that is allocated separately to the DB2 database manager, allowing it to add new data to the database or to respond to a query that returns a buffer from the disk to some data data pages.Because accessing data from memory is bo
Label:MySQL performance checking and tuning methodPublished: October 4, 2009 published by: OurmysqlSource: Sudone.com was read: 3,524 times only 1 ReviewsI have been using MySQL this database software, it works relatively stable, high efficiency. In the face of severe performance problems, there are generally several possibilities:
1, the index is no
large, you may need to add-j-xmx512m This parameter specifies the maximum heap memory, which is jhat-j-xmx512m-port9998/tmp/dump.dat. Then you can enter the host address in the browser: 9998 viewed:4. Jstat (JVM Statistical monitoring tool)Jstat [generaloption | outputoptions vmid[interval[s|ms] [count]]Vmid is the Java Virtual machine ID, which is generally the process ID on the Linux/unix system. Interval is the sampling time interval. Count is the
described in the previous article, and the same bufferedwrtier and bufferedreader efficiency is also very high. The buffer is used preferentially.
Using static methods: Static methods can be used directly without building an instance, and because the method area GC is rarely recycled, and the JVM caches commonly used classes, some common tool classes are more likely to encapsulate static performance. And it is more expressive than function overlo
xf master# cd major-mysqltuner-perl-993bc18/#./ mysqltuner.pl You will receive detailed reports and recommended tips for MySQL usage. The following is an example of the output from the default MariaDB installation: MySQL Performance Optimization 15. Optimize and Repair MySQL database Sometimes tables in the MYSQL/MARIADB database can easily crash, especially if the server shuts down unexpectedly, the file system suddenly crashes, or the database is
for a while, so we went on the Performance Tuning journey of the Erlang network connection ~~ The process is really exciting. We soon passed the 1024 mark ~~ We were very excited when we reached 4999 connections.
But why are there 4999 connections? Check the code and find that echo_server.erl defines a macro with the maximum number of connections being 5000 ~~After the compilation is modified, the number o
Detailed configuration:
port= "protocol=" "http/1.1"connectiontimeout= "20000"redirectport= "8443"/>
1, Tomcat's external tuningJava Virtual Machine (JVM) performance optimization allows you to set the size of the virtual machine using memory,-xmsThe size of these two values is generally set as needed. The size of the initialization heap performs the size of the memory that the virtual machine requests to the system at startup. Generally speaking, th
Apache or IIS (server) to open gzip, you can read this article.Intermediate Performance ImprovementAre you sure you have mastered the above basic-level optimization schemes? But the reality is that sometimes some solutions are not as obvious as those, and they often depend heavily on how you structure and write your app. The following recommendations are for these scenarios.9. Reuse and lazy load (lazy loa
sysstat.x86_64Perform:$sar-P All 1 100Note:-P all means monitoring all cores;1 indicates the acquisition every 1 seconds;100 means acquisition 100 times;5. Turn on slow logSlowlog = log/$pool. Log.slowRequest_slowlog_timeout = 2Note:The above is to open php-fpm slow log, Time threshold value of 2 seconds;Perform:Grep-v "^$" Php.slow.log | Cut-d ""-F 3,2 | Sort |uniq-c | SORT-K1,1NR | Head-n 50Note:Sort: Sorting wordsUniq-c: Displays unique rows and the number of occurrences of the bank in the f
physical deployment of the Hadoop cluster performance comparison and optimization, the experiment shows that the virtualization Hadoop cluster can support the production environment well.
Performance comparisons between virtualized and physical environments
Figure 1 shows the deployment style for the performance tuning
Tags:/etc/serve linux show via experience performance help insertionMySQL restricts the size of packets accepted by the server according to the configuration file.Sometimes large inserts and updates are limited by the Max_allowed_packet parameter, resulting in failure.View current configurationShow VARIABLES like '%max_allowed_packet% ';The results shown are:+--------------------+---------+| variable_name |
, the most important of which is how long the thread has been running. Consider this factor to allow each thread to get the chance to run. So, regardless of how low the priority of the thread is set, they always get the chance to run.In addition, the weight of the thread priority set on the different OS is different. On Unix-based systems, the execution time of a thread is a factor in the current priority of the dominant thread, which means that the thread priority set is rarely "referenced". On
order to better match the permission record in the Mysql.user (some are defined by hostname).If the MySQL server has a DNS server set up and the client IP does not have a corresponding hostname on the DNS, then this process is slow and causes the connection to wait.After adding skip-name-resolve, I skipped a process.If the table scan rate exceeds 4000, indicating that too many table scans have been performed, it is likely that the index has not been built, and that increasing the read_buffer_si
, insufficient use of resources or the structure of the program is unreasonable.For Java applications, the method of looking for performance bottlenecks is typically to analyze resource consumption first, and then combine some Java tools to query for code that causes excessive resource consumption in the program. CPU Consumption AnalysisContext SwitchesEach CPU can execute only one thread at a time,andLinux uses preemptive scheduling, that is, each th
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.