first request the most urgently needed files, while NGINX already supports (the SPDY solution should be simpler ).
Now, you need to decide whether to migrate to HTTP/2, and the key is to know how to use it to the maximum extent. This article will show you why to make this decision and how to implement it from the perspective of performance. Next we will discuss seven small suggestions on HTTP/2 performance one by one.
Whether to migrate to HTTP/2
Terminate HTTP/2 and
5993 5990 0 11:44 pts/0 00:00:00 bashroot 6270 6266 0 11:56 pts/1 00:00:00 -bashroot 6379 6270 0 12:00 pts/1 00:00:00 grep bashroot@dremi-desktop:~#
If you know the full name of the process, use this command to facilitate the pidof process name.
root@dremi-desktop:~# pidof bash5993root@dremi-desktop:~#
2. Find the entry and exit ID, and view the running space of the process directly. You can check the/proc/Pid/maps file or print it between pmap commands.
root@dre
ztgame 0 1409m 1.2g 4252 S 0.0 7.4 2:42.18 Imvchannelserve
3, through the command pstack process ID display thread stack, LWP 24729 corresponding thread ID of the stack, is to occupy the highest CPU stack, can be specific analysis of what the cause.
$ pstack 24714 Thread (thread 1084229984 (LWP 24716)): #0 0x00000039c5a901d5 in __nanosleep_nocancel () from/lib64/tl
S/libc.so.6 #1 0x00000039c5ac3058 in Usleep () from/lib64/tls/libc.so.6 #2 0x000000
From: http://blog.csdn.net/cz_hyf/archive/2006/02/19/603022.aspx
If a user node wants to obtain the corresponding "dpt1The IP address of. SEU. edu. cn. The processing of this node is as follows:1) send a "Answer" request to the local DNS server. To improve work efficiency, use the connectionless datagram service. If the local DNS server knows the corresponding dpt1. Seu. edu. if the local DNS server knows
--- convert the C interface to Java and generate a Java class.
Download an ndk and Package C into A. So file.
This is done with cmusph00000.7 (So sphinxbase 0.7 and pocketsph00000.7). The files are archived at the end of the article. The process also require access to a Linux machine and the Eclipse IDE.
Download sphsf-base and pocket sphinx (http://cmusphinx.sourceforge.net/wiki/download)
Create a directory somewhere, untar both to./sphinxbase and./pocketsphinx (lose the-0.x version suf
0.0 7.4 0:00.00 Imvchannelserve24727 ztgame15 0 1409m 1.2g 4252 S 0.0 7.4 0:00.76 Imvchannelserve24728 ztgame16 0 1409m 1.2g 4252 S 0.0 7.4 0:00.53 Imvchannelserve24730 ztgame16 0 1409m 1.2g 4252 S 0.0 7.4 2:42.18 Imvchannelserve3, through the command pstack process ID display thread stack, LWP 24729 corresponding to the thread ID stack, is the highest CPU stack, you can specifically analyze what caused the cause.$ pstack 24714Thread (thread 1084229984 (LWP 24716)):#0 0x00000039c5a901d5 in __na
¥pstree-p Work | grep ad
SSHD (22669)---bash (22670)---ad_preprocess (4551)-#43; -{ad_preprocess} (4552)
|-{ad_preprocess} (4553)
|-{ad_preprocess} (4554)
|-{ad_preprocess} (4555)
|-{ad_preprocess} (4556)
'-{ad_preprocess} (4557)
Work for workers,-p to display process identification code, ad_preprocess a total of 6 child threads, plus the main thread a total of 7 threads
2. Ps-lf
¥PS-LF 4551UID PID PPID LWP C nlwp stime TTY STAT time CMDWork 4551 22670 4551 2 7 16:30 pts/2 sl#43; 0:02./ad_prepr
Dubbo Registration Center Cluster Zookeeper-3.4.6Dubbo recommends using zookeeper as the registry for the service.As long as more than half of the nodes in the zookeeper cluster are normal, then the entire cluster is available externally. It is based on this feature that the number of nodes in the ZK cluster should be odd (2n+1:3, 5, 7 nodes) is more appropriate.ZooKeeper architecture diagram with Dubbo service clusterServer 1:192.168.1.81 port: 2181, 2881, 3881Server 2:192.168.1.82 port: 2182,
Turn over the official website of Pycharm, suddenly see from official website Blog Introduction:http://blog.jetbrains.com/pycharm/2015/10/announcing-pycharm-edu-2-0-2-checkio-integration/Still remember 11-12 years, often on Checkio (http://www.checkio.org/)Practice Python and familiarize yourself with the basic usage of Python by solving small problems. The follow-up about 12 began to change, gorgeous transformation, and then later, the domestic netwo
book, Can see the Bird Brother Linux Foundation, if can look down, before learning to find a lot of beginners to see the bird brother, because bird elder brother too verbose, some content also difficult to understand, here to recommend a set of absolute value Basic video, (2015 5-June latest recording).1, hands-on with you easy to master the Linux basic introduction and AdvancedHttp://edu.51cto.com/pack/view/id-285.htmlHere is not to the teacher adve
authentication result to the source server.3.3 encryption although SASL provides an advanced authentication mechanism, both parties must pass the specific authorization authentication before normal communication can be conducted, but the login information is generally important information such as passwords and usernames, most of them are transmitted in plain text, so they are easily eavesdropped. To solve this problem, XMPP uses the "STARTTLS" extension based on the Transport Layer Security Pr
Source: http://www.xymyeah.com/979.html
1. pstree
Pstree displays processes in a tree structure$ Pstree-P work | grep adSshd (22669) --- bash (22670) --- ad_preprocess (4551)-+-{ad_preprocess} (4552)|-{Ad_preprocess} (4553)|-{Ad_preprocess} (4554)|-{Ad_preprocess} (4555)|-{Ad_preprocess} (4556)'-{Ad_preprocess} (4557)
Work is the working user,-P is the display process identifier, ad_preprocess has started 6 sub-threads, and a total of 7 main threads
2. PS-lf
$ PS-lf 4551Uid pid ppid lwp C nlwp
. Writing service-side code
Defines a listener object, the address that the server listens to
lis,err: = Net. Listen ("TCP", ": 7051")
//Create GRPC server option and populate
var serveropts []grpc. Serveroption
//Create a standard GRPC server
= Grpc. NewServer (serveropts ...)
Create a service-side object that implements the service-side interface
type eventsever{...}
based on the interface definitions generated in XXX.pb.go. Func (e *eventsever) Chat (...) {
Transferred from: http://www.ruanyifeng.com/blog/2014/02/ssl_tls.htmlOverview of the operating mechanism of SSL/TLS protocolNanyiDate: February 5, 2014Internet communication security, based on the SSL/TLS protocol.This paper briefly introduces the operating mechanism of SSL/TLS protocol. The emphasis of this article is on the design idea and the running process,
HTTPS, also known as HTTP over TLS. The predecessor of TLS is SSL,TLS 1.0, which is typically marked as SSL 3.1,TLS 1.1 for SSL 3.2,tls 1.2 for SSL 3.3. This article focuses on the 1.2 version of the TLS protocol.Describes the rel
51cto college specially sorted out "2014 soft test programmer-General test knowledge point review notes [summary]" in the soft test preparation season to help schools pass through smoothly! For more software proficiency test counseling and questions, please pay attention to the 51cto college-soft exam classification!
View summary:2014 soft test programmer-frequent test knowledge point review notes [summary]650) This. width = 650; "alt =" popular article "src =" http://www.exam8.com/images/hot.
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.