chat's Introduction
chat's People
chat's Issues
localhost로 붙을 때 2초 간격으로 연결되는 현상
192.168.0.53
localhost
범주 = Synchronization
하위 범주 = Kernel Synch
지연 = 1008.351ms
ntoskrnl.exe!0x3ff293
ntoskrnl.exe!0x3feae6
ntoskrnl.exe!0x2550b0
ntoskrnl.exe!0x2545df
ntoskrnl.exe!0x257f13
ntoskrnl.exe!0x257948
ntoskrnl.exe!0x6b9b6d
ntoskrnl.exe!0x4096b8
ntdll.dll!0x9ce64
// Windows NT BASE API Client DLL.
kernelbase.dll!0x61a7f
// Microsoft .NET Runtime Common Language Runtime
coreclr.dll!0xe9773
원인
for문 안에서 출력을 찍었는데 출력도 딜레이 됨.
client.TestRun 은 async Task라서 딜레이가 발생할 수 없음? 아님 첫 await까지는 같은 스레드임.
여기서 TcpClient가 connection을 동기로 하고 있었음...
그래서 ThreadPool도 여유 있고 Task Queue가 쌓인 것도 없는데 딜레이가 있었던 거임.
근데 그럼 TcpClient에서 remotehost는 딜레이가 없고 localhost는 딜레이가 걸린다는 건데... 그것도 거의 정확히 1초씩... 이유가 뭐지
대응
TcpClient 생성을 비동기로 감싸버림. 근데 이러면 worker thread에서 IO를 하게 될텐데... 그냥 소켓을 직접 쓰는 게 나을 듯
또 한 가지 queue가 엄청 쌓이다가 한 번에 해소되는 현상 있음 (threadCount, pendingWorkerItemCount, tid)
다만 대응 이후 실제로 메시지 전송이 이루어졌는지는 확인하지 않음. (머리 자르러 가야 함)
800명 유입 후 종료시 서버 CPU 80% 치는 현상
aws CD
백로그
interface property로 수정 필요
로그인 구현
DB (uid - user_info)
Redis (uid - session)
빌드 버전 자동 증가
500명 유입 네트워크 트래픽 계산
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.