当前位置:网站首页>IIS WCF 808 port service access exception
IIS WCF 808 port service access exception
2022-06-24 12:44:00 【shawyang】
A problem has been solved recently IIS+SqlServer Environmental ERP Software problems
The environment is relatively simple :IIS+SqlServer+ERP+ESET
In the system 3 A software :ERP、SqlServer(ERP need )、ESET( Consider the influence of independent variables of anti-virus protection software , It has been uninstalled. The problem remains )
Generally, when you can't visit , netstat -ano|findstr :808 see Established Of IP, Usually just a few , But there are a few connections compared to others IP More
Statistics 808 Number of built connections , use netstat -ano|findstr :808|find /c " Intranet IP:808"
such as netstat -ano|findstr :808|find /c "172.16.0.16:808"
The server configuration is high , All indicators are not very high , When you can't visit , some IP Always with 808 port Established There are many connections, but the number of connections at the server level is not a bottleneck , It mainly depends on ERP What are the special restrictions
If it's normal IIS Website , It is impossible to access eight or nine clients , There are some ERP There is a set meal 、 Special configuration and other restrictions , Every time you can't visit 808 Established The highest number IP It was restored after prohibition , Still doubt ERP What are the special configurations or limitations of the software , ask ERP The software side ,ERP People over there say they have more customers , I haven't encountered such a problem
because ERP The after-sales service of the software side can't keep up , It's hard to contact the software provider , I have to do my own research
1、wcf relevant 4 A service
2、wcf Related programs and configuration files
32 position :
C:\Windows\Microsoft.NET\Framework\v4.0.30319\SMSvcHost.exe
C:\Windows\Microsoft.NET\Framework\v4.0.30319\SMSvcHost.exe.config
64 position :
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SMSvcHost.exe
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\SMSvcHost.exe.config
3、 performance tuning
① With the help of Microsoft information and consulting for Microsoft billing
Found 1 Microsoft documentation for related scenarios , involve 2 Indicators :maxPendingAccepts and maxPendingConnections .
After that, I will send a bill to Microsoft to consult the best practices , Microsoft suggests :
maxPendingAccepts:5-10
maxPendingConnections :100-200
According to the Product Team, you shouldn't increase “maxPendingAccepts” too much. 5-10 would be a good number. It means it spawns 5-10 concurrent threads to pull connections.
Feel free to increase the maxPendingConnections value according to your needs (you can also set 1000, even though I'd wonder why if you needed so many connections. 100-200 can be considered a good choice).
Finally, it was adjusted to the following way, but it still didn't work , Problems still happen every day
https://docs.microsoft.com/en-us/archive/blogs/andreal/net-tcpip-port-sharing
② seek ERP Software support or best practice documentation , Unable to contact the software party , give up
③ Research ERP Software , It is IIS Running in the environment , Careful study IIS Environmental Science , Find out w3wp.exe Only 3 A process , Each corresponds to an application pool , this 3 The application pool is just the user's 3 Virtual sites , Learn from the user 3 The visit pressure of each station is different , Try to configure different application pools for different sites Maximum Worker Processes, It is found that the effect is obvious , Combined server CPU、 Memory 、 disk 、 The capability range and business performance of the network will finally 3 Of application pools Maximum Worker Processes Adjusted to a suitable value
The experience here is ,1 individual Worker Process Probably occupy 500MB Memory , Leave enough memory for the database and the operating system itself ,
Amount of memory left (MB)/ 500(MB)= n
Be safe n-1 Almost Maximum Worker Processes The value of the
Of course , If you really don't know how much to set , Then specify as 0 Under observation
iisreset /restart After the execution of the command , Generally in 5 Within minutes ,w3wp.exe The quantity of will change from 1 Gradually increase to all Worker Process The sum of the numbers , The total is... Of the application pool in use Maximum Worker Processes The sum of , It can be used powershell perform get-process w3wp | measure Statistics w3wp.exe A change in number .
Final , By calling the application pool Maximum Worker Processes Adjusted to a suitable value to solve the problem .
How to set the maximum number of working processes : According to each working process, it can carry 30 A concurrency principle is used to determine the maximum number of worker processes in the application pool . At the same time, pay attention to , Each work process will occupy approximately 500M Left and right system memory , When setting the maximum number of working processes , Do not exceed the maximum available memory of the system . In general , It is recommended to increase each time 5 The maximum number of worker processes is adjusted by the number of worker processes , After adjustment, observe the website for a period of time , If still unable to meet the requirements , Continue to increase 5 Number of worker processes .
边栏推荐
- A good habit that makes your programming ability soar
- How to evaluate software development projects reasonably?
- How does easygbs, a national standard platform, solve the problem that information cannot be carried across domains?
- Babbitt | metauniverse daily must read: 618 scores have been announced. How much contribution has the digital collection made behind this satisfactory answer
- What is the reason why the video intelligent analysis platform easycvr is locally controllable but the superior equipment cannot control the subordinate equipment?
- How to do research on plant endophytes? Special topic on Microbiology
- Istio Troubleshooting: uneven grpc service load
- How do websites and we media tap user needs? Deeply expose the secrets behind the keywords!
- How does Argo family bucket make Devops easier?
- A "full cloud" journey of a quasi financial system
猜你喜欢

How can a shell script (.Sh file) not automatically close or flash back after execution?

Parse NC format file and GRB format file dependent package edu ucar. API learning of netcdfall

Babbitt | metauniverse daily must read: 618 scores have been announced. How much contribution has the digital collection made behind this satisfactory answer

MySQL foreign key impact

使用开源工具 k8tz 优雅设置 Kubernetes Pod 时区

关于被黑数据库那些事

Codereview tool chain for micro medicine

WPF从零到1教程详解,适合新手上路

QT -- the qtabwidget supports dragging tabbar items

一纸英雄帖,激起千层浪,横跨10国,一线大厂都派人来了!-GWEI 2022-新加坡
随机推荐
The pod is evicted due to insufficient disk space of tke node
How does easygbs, a national standard platform, solve the problem that information cannot be carried across domains?
Ghost, a synonym for blog system
Continuous testing | making testing more free: practicing automated execution of use cases in coding
Jupyter notebook service installation and startup
Engage in audio and video development? Several things I have to say about SRT live broadcast protocol
一纸英雄帖,激起千层浪,横跨10国,一线大厂都派人来了!-GWEI 2022-新加坡
The programmer's graduation project is still bald after a year
2021-06-02: given the head node of a search binary tree, it will be transformed into an ordered two-way linked list with head and tail connected.
What is SCRM? What is the difference between SCRM and CRM
IOMMU (VII) -vfio and mdev
生成 4维 的 气压温度的 nc文件,之后进行代码读取(提供代码)
Opencv learning notes - regions of interest (ROI) and image blending
Pinduoduo press the user accelerator key
Common special characters in JS and TS
What if the WordPress website forgets its password
Data stack technology sharing: open source · data stack - extend flinksql to realize the join of flow and dimension tables
【2022国赛模拟】摆(bigben)——行列式、杜教筛
Sms service sms
On the value foam of digital copyright works from the controversial nature of "Meng Hua Lu"