Solve the problem of Real buffer

xiaoxiao2021-03-06  44

Effectively reduce customer buffering phenomenon in RealServer service - reprint

Most of the methods of the following methods are reflected, but I think ... It is difficult to understand that RealServer will have this funny place, I use a RealServer to achieve a good effect, some netizens use 5 or buffers

http://souxin.gzras.net/dvbbs/dispbbs.asp?boardid=2&star=1&replyid=42766&id=108&skin=0&page=1[url=http://www.7ctv.com/helix] Click here to watch: Helix Installation , Configuration, ODBC certification and cloning [/ url] Thank you for your attention. In order to see the convenience, I summarize the discussion of the top 60 posts. Often see some complaints, no matter how good servers are in total, there is always a medium buffer. After observation, every time the number of connectors reach a certain value, the customer has the phenomenon of playback, and the server's CPU usage, memory occupancy rate, bandwidth, etc. are very low, and there is no reason to suspect that the server at this moment. This problem has always been plagued me, and later attempts to assign average 554, 7070 port to play, the situation is not fundamentally improved. One day, I suddenly think of it can be taken in parallel, that is, the same machine is used for several realserver to see, please refer to http://service.real.com/help/library/guides/server8/htmfiles/started.htm#35132. According to the instructions, the original RMSERVER.CFG is copied to the bin directory, renamed RM2.cfg, the name is short, and the same directory for the same directory and RMSERVER.EXE. Plus the ports in RM2.cfg 1, such as 554, 7070 to 555, 7071, and the like. First, how to install multiple services [Reference Lucian (Hyne) single-machine installation multiple Helix Server Raiders] First copy the above configuration file, modify your individual port settings with the text editor, if you want multiple, then save it to multiple Different configuration files. Then register the system service: CMD is turned to ../bin directory: RMSERVER -INSTALL: RM1 "Your actual path /RM1.cfg", where RM1 is your name, you can name your will. The return message should be the Success Installed The RM1 Service. If you want to install the RM2 Service, you will be done in the same way. You can launch this new service in DOS: RMServer.exe rm2.cfg. Real also provides a way: RMServer.exe -Import: RMREG2 RM2.cfg first, RMServer.exe -Install: RM2 "RmReg2" registration service, start the service with RMServer.exe registry: RM2 . I personally think this is more trouble, it is not easy to modify, not recommended. Finally, you can find newly added RM1 ... services in service management, modify its properties to start, so that each restart machine, the service will run automatically. Tip: RMSERVER -INSTALL: RM1 "????", if this path does not contain spaces, you can start directly. If you need a space, you need to enter the registry, search the keywords such as RM1.cfg, modify the StartUpparams item, check if its path is consistent with you, if there is a space, must put the quotation number, such as: "C: / program files / real / helixserver / rm1.cfg.

It is recommended that you have to check this, because sometimes, as RealServer8.x writes a wrong path there, there is always someone saying RealServer8.0 can't, in fact, you can modify the registry to modify it. The ports in each rmx.cfg cannot be the same, otherwise port conflicts will occur, causing unable to start services, which is why many of many people have first tried failure. My experience is to fully configure the first service, such as loading points, IP restrictions, etc., then copy this configuration file, not only quickly configure other services, but also guarantee the synchronization of the configuration. Second, the effectiveness of most people have been trying to be effective, but there is no effect as XXZhou, he started 4 services, 120 or more, the client will buffer, "and when the HTTP mode is changed, this server can I am doubtful for the 600-700 non-buffered playing 500K. " First of all, I declare that this method is effective, and I summarized through practice. First of all, you have to confirm that your machine has a margin, for example, when I am 60 people, the CPU usage is only 10%, and the memory is more than enough. At this time, the multi-service is effective. But the more service is not, the better, 2-4 is good, then the CPU can go to 50-60%. At this time, the load is already very heavy, and can be 40-50% is the best. In addition, the client's machine and software status is not good, and it is also an important reason for buffering, and if you really do service balance. I also found that not all machine effects are obvious, especially playing high bandwidth, such as 400-500K above, the number of people can decline sharply. Bandwidth is also the cause of 100M bandwidth is how much? It's hard to say, there is a transceiver, can the switch reach 100m? We have no effective means to test, the professional instruments are too expensive, and you can't afford it. But I know that the fiber transceiver is high-tech products. In fact, the small plant can be produced, two or three hundred yuan can be bought, and the quality is mixed, we have repeatedly despised the decline in actual bandwidth because the transceiver performance decreases. I personally think that the so-called 100g may only play 60-80M capabilities, so how many people do you do? More than 200 people online, if you also provide web pages, games such as web pages, games, etc., may play more. The "600-700 does not buffer playing 500K movie", how much is the bandwidth? 100M is impossible, only is a Gigabit network, is this all channels? The inscription, the internal personnel of the telecommunications finally admitted that 1M ADSL can only look at 225K movie, 2M watch 350K, because when others report buffer, they use 8M, the result is normal, I guess this may be ADSL exchange Not very good, but who dares to guide the telecommunications! So specifically, this is a comprehensive problem of a system, and it cannot be diamonded one place. In short, I used the performance of the server to the limit, and the rest can only look at it. It is good to use HTTP. I once used this approach. The result is good. When you come, you can't come. And people can download high speed, and once a slight buffer starts to download, http is not good to limit the thread, and the result is more crowded more tired machine, and it will eventually be played. In addition, it is not possible to continue, and it is not easy to drag and drop. I personally think that the efficiency of the RM service software is not good. As for the version, it is estimated that the dollar is bought, if there is such a big gap between D and Zheng, it will not fight the D version, this is how good advertisement. .

So far I compare the surrounding streaming service, I am best in the same hardware conditions. Of course, there are still many unsatisfactory, so public experience, I hope to have better suggestions and programs. Usually streaming media servers are dedicated, so close the unwanted ports, prevent hackers from attacking, I am attacked. Close the unwanted service, try to release system resources, you can try it, as long as you do not affect the runs and services. I don't think of these software such as firewalls, anti-virus software, which involve system kernel operations, consumers, do not know how much. Since it is a server, you won't play games above, see the web, and there is no way to infect viruses. Netizen quake777 called his small server, accidentally installed a Ruixing anti-virus, Haha ~, 25 people walked. Changed a Norton Enterprise Edition, running crazy when 40 people gline, indicating that these software have an impact. Third, about REAL official redundancy and dynamic load balancing about Helix's redundancy, I don't know if you read it carefully, it needs multiple Helix servers, this good office, machine is not lacking. But your content adds a point? I am nearly 1T, 3 Helix services, you need extra 2T content space, but also to ensure synchronization, I see it is more troublesome. If I really have, I will also take content, not to do redundancy. On the upstairs, a DNS dynamic balance is also for multiple Helix services, and different machines are allocated via DNS to provide services. Of course, you can use a dedicated disk array, which is also the Helix legend, multiple Helix servers share this array, balance these servers, balanced services via DNS assignment or otherwise. But what is investment? Don't say a dedicated array, some SCSI hard drives know how expensive. To know that most people's services are free, many are personal enthusiasts, like me, do the server with ordinary microcomputer, and did not find the IDE hard drive is a bottleneck. Those professional configurations don't have to be considered. And everyone also saw the discussion, the 120 people of the 2 CPUs buffered, can't catch up with the 2 servers of my 5,000 yuan (the display is not available, remote control), huh, what do you say? My key is a machine. While performing multiple processes, it is trying to play a machine, and REAL official statement is two different concepts. Fourth, port balance HYNE algorithm is very good: randomize rndcount = int (rND * 3) if rndcount = 0 Then Response.write "PNM: //*.*.*: 7070" URL END IF RNDCOUNT = 1 Then Response.write "PNM: //*.*.*7071" URL end if if rndcount = 2 Then Response.write "PNM: //*.*.*.*: 7072" URL END IF I It is an ASP.NET programming, mainly involving the following, and the relevant personnel will understand. First set the number of services and ports, in Web.config:

The program automatically looks for HELIXPORT, WebPort and Ftpport plus the incremented serial number until it is not found, if you find HelixPort3 or WebPort2, it is found that there is no existence. The latter value is the format I set myself, which is the name plus port. The program will automatically use the port of HELIXPORT1 as a group of statistics, and simultaneously put all the Helix types, so that the web page can reflect the number of people in real time, and their distribution. Finally, there is such a structural array, [port number, no repetition] [Group, refers to Helix1, FTP1] [Category, refers to Helix, Web].

Public Structure moviePortDefine Dim TCP_port As Integer 'port number Dim GroupID As Integer' Classification Index Dim GroupName As String 'category name Dim Cnt As Integer' number of online Dim TypeID As Integer 'port number End Structure then there is a program for the individual ports to scan: DIM P as new process () p.startinfo.filename = "netstat.exe" p.startinfo.arguments = "-n" p.startinfo.useshellexecute = false p.startinfo.redirectstandardoutput = true p.Start () 'executed NetStat.exe -n Command Dim output as string = p.standardoutput.readtoend () p.WaitForexit () DIM SS () AS STRING = Output.Split (VBCRLF) DIM SSTCP () AS STRING DIM I, J, K As Long For i = 1 to ss.getupperbound (0) 'Looking for Established, representing the port IF INSTR (1, SS (i), "Established", CompareMethod.Text)> 0 THEN K = INSTR (SS (i), ":") IF K> 0 THEN J = INSTR (k 1, ss (i), "", 1) IF J> K THEN K = VAL (MID (SS (I), K 1, J - K)) for j = 0 to nowfindedport.getupperBound (0) if k = no) (j) .tcp_port the nowfindedPort (j) .Cnt = 1 EXIT for end if next end if end if next to the last statistical number, provide an online report, give the least number of ports, generate a super connection.

转载请注明原文地址:https://www.9cbs.com/read-52872.html

New Post(0)