Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

推送服务器CPU过高 #58

Open
baadf opened this issue Jul 3, 2015 · 4 comments
Open

推送服务器CPU过高 #58

baadf opened this issue Jul 3, 2015 · 4 comments

Comments

@baadf
Copy link

baadf commented Jul 3, 2015

你好,我想请教一个问题,最近发现linux机器上的icomet-server 推送服务cpu过高,达到80%甚至90%,不知道是什么原因,通道也不多,每天大约800个左右,想问一下是什么原因?

@ideawu
Copy link
Owner

ideawu commented Jul 3, 2015

推送消息的量和频率有多少? log.txt 有什么异常显示吗?

@baadf
Copy link
Author

baadf commented Jul 7, 2015

量不多,每分钟10个左右吧。下面是log的部分信息:
-bash: syntax error near unexpected token (' [root@HW8NH42 logs]# [root@HW8NH42 logs]# 2015-06-25 16:28:13.271 [DEBUG] server.cpp(249): 127.0.0.1:34493 sub 09507BDA15BAADC860D095AD9F762B84_inputstate, seq: 52, subs: 2 -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# -bash: syntax error near unexpected token `('

[root@HW8NH42 logs]# 2015-06-25 16:28:13.288 [DEBUG] server.cpp(249): 127.0.0.1:34494 sub 52CEB6F2CFAE50964E5908955F0D71C1_inputstate, seq: 58, subs: 2
-bash: syntax error near unexpected token (' -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# [root@HW8NH42 logs]# 2015-06-25 16:28:13.289 [DEBUG] server.cpp(249): 127.0.0.1:34495 sub F16FAE3C2424996EA00349BA4F265C6E, seq: 3, subs: 2
-bash: syntax error near unexpected token (' [root@HW8NH42 logs]# -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# 2015-06-25 16:28:13.289 [DEBUG] server.cpp(249): 127.0.0.1:34496 sub 8E061812624ABB73705E9A7FE20F9688, seq: 25, subs: 2^C
-bash: syntax error near unexpected token (' -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# [root@HW8NH42 logs]# 2015-06-25 16:28:13.291 [DEBUG] server.cpp(249): 127.0.0.1:34497 sub 7DD58C9765FD683DBB2744BDF16F85CE, seq: 1, subs: 2
-bash: syntax error near unexpected token (' [root@HW8NH42 logs]# -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# 2015-06-25 16:28:13.295 [DEBUG] server.cpp(249): 127.0.0.1:34498 sub BFE6B231AE6F9DC27FD95841451ECD58_inputstate, seq: 61, subs: 2
-bash: syntax error near unexpected token (' -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# [root@HW8NH42 logs]# 2015-06-25 16:28:13.306 [DEBUG] server.cpp(249): 127.0.0.1:34499 sub BE83F072EDA0A792FEF793C22D59966C_inputstate, seq: 12, subs: 2
-bash: syntax error near unexpected token (' [root@HW8NH42 logs]# -bash: syntax error near unexpected token('
[root@HW8NH42 logs]# 2015-06-25 16:28:13.314 [DEBUG] server.cpp(249): 127.0.0.1:34500 sub 246012C05A52B083D428FD19F1E17C6E, seq: 3, subs: 1
-bash: syntax error near unexpected token (' -bash: syntax error near unexpected token('

@baadf
Copy link
Author

baadf commented Jul 7, 2015

今天的日志都是正常的:
2015-07-07 15:58:41.125 [DEBUG] server.cpp(249): 127.0.0.1:50484 sub 52A3DA5A32D4CE2DA50A723EB287B26E_inputstate, seq: 20, subs: 2
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 8554EEEEE6BDF3EF36E7B715B413FF7C, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 49E76F53972308E622CE97FAB6E738E5, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 8CE0EE012A5DFC40E598738B71F81A88, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end C19308C75A99792AF7FD063CDA6E975A, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end EA1D11B51D142DF2FC7A8C868C56ABD3, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 11A912BC276025202DA96A9EC95D1159_inputstate, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end DDEDDF701A1D6E84182FDD780DE7907C, subs: 0,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end E5E8ED70D60244371986AD817A79D9F9_inputstate, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end D838CE0A2149C64F6C557A3D3E9586BF, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 38780C4052380865DB904613D152266B, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 4166C61D6A3DD7A0E9A8E66C58E3375D_inputstate, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 357D903CA93FF917E92910D52E896891, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 941BFBF229DD95D3215A72684BCA5F5A_inputstate, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end B3EAD3637431CC7674208ED2CC8D6527, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 5046781B9B4EBCC4951B1BF0B47FCAC7, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end A98766BBCCB4DC8B35C41C486E971E37, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end F8FF20570196DD3BDDD59A2C9604D6B3_inputstate, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 6A03F36AA6A7150FB8DF912E31E418A8, subs: 1,
2015-07-07 15:58:43.085 [DEBUG] server.cpp(192): sub_end 6A03F36AA6A7150FB8DF912E31E418A8_inputstate, subs: 1,

@baadf
Copy link
Author

baadf commented Jul 7, 2015

每秒大约有100次请求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants