Discover mysql performance tuning parameters, include the articles, news, trends, analysis and practical advice about mysql performance tuning parameters on alibabacloud.com
Before doing stress testing in a customer, the performance is not going to go, later adjusted the network parameters of AIX performance improved.The records are as follows:OS (AIX): Requires root access/usr/sbin/no-p-O tcp_sendspace=4194304/usr/sbin/no-p-O tcp_recvspace=4194304/usr/sbin/no-p-O rfc1323=1/usr/sbin/no-p-O sb_max=8388608Results can be set by no–l che
multiple frames. B. Polling: Process queue is processed with timed interrupts. B. The drive will automatically adjust the interrupt handling under high load. C. Summary: A. Reduce CPU service time and utilization.B. Increase the receive buffer by some C. When the load is low, increase the delay. D. Different strategies are used to adjust throughput based on different characteristics of the packet.13.12 Tuning Interrupt handlingAdjust interrupt handli
script file Ssh_user=rootSsh_port=22 Repl_user=repluserrepl_password=123456 User=rootpassword=123456 [Server1]hostname=192.168.36.51port=3306Candidate_master=1 [Server2]hostname=192.168.36.52port=3306Candidate_master=1 [Server3]hostname=192.168.36.53port=3306Candidate_master=14.3 Start the Management Service and view the service status]# Masterha_manager--conf=/etc/mha/app1.cnf--remove_dead_master_conf--ignore_last_failover[Server4]hostname=192.168.36.54port=3306No_master=1 [Server5]hostname=19
different application load requirements, it provides many adjustable system parameters. The main parameters related to performance tuning include:
(1) Global Cache-Size; default value: 32 MB
(2) Write-Cache-Size for each file. The default value is 1 MB.
(3) number of I/O concurrency. The default value is 16.
(4) Read-
Jvm-related parameters, tuning
Common jvm parameters are as follows:
-Xmx1024m: Set the JVM maximum available memory to 1024 MB.-Xms1024m: Set JVM to enable the memory to be 1024 MB. This value can be set to the same as-Xmx to avoid JVM re-allocating memory after each garbage collection.-Xmn512m: Set the young generation size to 512 m. Memory size of the entire J
Guide
Performance tuning has always been one of the most important work of operations engineers, if you are in a production environment encountered a slow system response, hard disk IO throughput anomalies, data processing speed is lower than expected, or such as CPU, memory, hard disk, network and other system resources have been exhausted for a long time, Then this article will really help you, if no
Brief introduction
IBM WebSphere Application Server is a reliable enterprise application server that provides a set of core components, resources, and services for developers to use in their applications. Each application has unique requirements and often uses the resources of the application server in a very different way. To provide a high degree of flexibility and support for this wide range of applications, WebSphere application Server provides a comprehensive set of
value directly affects the performance of data read.
tuning : Of course, the bigger the better, if read than write less, open to 0.4-0.5 is no problem. If read and write more balanced, about 0.3. If you write more than read, be decisive by default. When setting this value, you should also refer to Hbase.regionserver.global.memstore.upperLimit, which is the maximum percentage of the heap Memstore, two
Performance Tuning is not a simple task. There is no omnipotent solution at all, but you can use some basic principles to implement it.
In general, performance tuning is the role of DBA. however, DBA does not have time to carefully check every change made to the stored procedure. so learning some basic
, default is 2
Reviews: These two parameters control the merging and splitting of the PG directory, and when the number of files in the directory is less than filestore_merge_threshold that, the object files of the directory are merged into the parent directory, and if the number of files is greater than the directory filestore_merge_threshold*16*filestore_split_multiple , the directory is split into two subdirectories. Set a reasonable
Basically, the main considerations for Hibernate performance tuning are as follows:? database Design Tuning? HQL optimization? Proper use of APIs (e.g., different collections and query APIs based on different business types)? Main configuration parameters (log, query cache, fetch_size, batch_size, etc.)Map file optimiz
indicates how many new connection requests are allowed to wait in the queue when all threads are used to process requests. When the queue is full, any new request will be rejected. The default value is 100.The configuration example is as follows:
Maxthreads is the maximum number of threads started by Tomcat. The default value is 200. acceptcount is the number of requests queued when the number of threads started by Tomcat reaches the maximum. The default value is 100, the two values work toget
ObjectiveAfter getting started with the JVM garbage collection mechanism, you can then learn the performance tuning. There are two main parts of the content:
The use of JDK tools.
Tuning strategy.
Weapon Spectrum JPSList the running virtual machine processes, using the following:JPS [-option] [HostID]
Options
function
1 read the Apache configuration optimization recommendations below, then adjust the relevant parameters to observe the status of the server.2 Apache Configuration Tuning Recommendations:3Enter/usr/local/apache2/conf/under the extra directory4 Apache optimization,5 after the above operation, Apache has been able to run properly. However, for sites with a slightly larger number of accesses, the Apache default
Liferay The default is not to turn on tuning parameters, so run slower, we can open some parameters to achieve better performance:
Today I did the following configuration:
(1) The following parameters are configured in the $liferay_home/portal-ext.properties:
Last.modifie
of disk sorting will be greatly increased. This is mainly because at the end of the month, users will make statistics on the transaction data for the month. So at the beginning of the month, because of the number of transactions, so there will be more disk sorting occurs. In this case, it is necessary for the database administrator to adjust the relevant parameters. However, this adjustment is a temporary adjustment, until the cycle has passed, still
PID is not appropriate. In this mode, the live sub-argument is not valid.- J Pass parameters to the JVM that Jmap started.Examples are as follows:After obtaining the heap snapshot file, we can use a variety of tools to analyze the file, such as JHAT,VISUALVM.5.jhat: You can parse a Java application's heap snapshot file in the following syntax format:Jhat after the analysis is complete, use the HTTP server to show the results of the analysis, and acce
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 kernel scheduling algorithm Epoll4 Modifying the
compressing and extending the heap space:-xx:minheapfreeratio: Sets the minimum idle scale for heap space. The default is 40. When the free memory in the heap space is less than this value, the JVM expands the heap space.-xx:maxheapfreeratio: Sets the maximum idle scale for heap space. The default is 70. When the free memory in the heap space is greater than this value, the heap space is compressed and a smaller heap is obtained.When-xms and-xmx are equal, both
change the concurrency count to 200. found that about 50% of the return to 502.
Then I will keystone-api instead of Keystone own service Openstack-keystone. Again with 200 concurrent pressure test: The discovery processing is normal, did not return 502.
Ab-r-N 100000-c 200-h "user-agent:python-keystoneclient"-H "accept:application/json"-H "x-auth-token:65e194" htt p://keystonehost:35357/v2.0/
Probably know that the problem should be on nginx and UWSGI, limiti
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.