-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
CPU100% on Windows Server 2012 #27
Comments
I want to know the problem is Cool.io or libev. http://codefundas.blogspot.jp/2010/09/create-tcp-echo-server-using-libev.html |
And it happens only on Widows Server 2012? |
CPU Usage value is different, but think it is the same problem. I will check more. |
Anybody has a help to use libev on Windows ? |
Building libev with |
I've done it now, forget it, thank you.
I will continue to check on ev.c. |
@okahashi117 It means above code doesn't work on Windows corretly with libev 4.15, right? On my Mac, the result is below(I fixed some #include for Mac manner). $ gcc -L. -lev test_code.c
% ./a.out
Successfully connected with client.
1 client(s) connected.
message:hoge
message:foo
message:hoge
peer might closing: Undefined error: 0
0 client(s) connected. Client side: % gcc -o client test_code_client.c
% ./client
warning: this program uses gets(), which is unsafe.
hoge
message: hoge
foo
message: foo
hoge
message: hoge |
Hi,
I'm not sure because I might me making a mistaken. I'm not familiar with gcc so much, you know, and some changes to were required to build the sample code you suggeseted, especially to use WinSock. |
Ah? |
Ah, I see.
No, MinGW is correct. I also compile Cool.io with MinGW for windows binary. |
@repeatedly Do I need some option to compile libev correctly ? |
@okahashi117 Hmm... how about use |
@repeatedly |
@okahashi117 Hmm. On Windows, libev should use |
OK, HAVE_SELECT and HAVE_SYS_SELECT_H has been required. |
@repeatedly Hi. |
@okahashi117 Okay.
I'm not familiar with Windows debug tools. |
Same problem occurs with Cool.io 1.2.2 |
From @okahashi117 , |
My investigation is here: The problem is For example, if Second, I tried to use Other status. There are several approaches to resolve this issue:
|
Avoid Ruby and Windows FD utilities conflict to fix #27
I got a problem with version 1.2.1.
CPU Usage becomes 100% on Widows Server 2012, Ruby version is 1.9.3 p545
Please try this code.
The text was updated successfully, but these errors were encountered: