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

Centos6.5 cpu 100% #6

Open
iamluodong opened this issue May 24, 2016 · 6 comments
Open

Centos6.5 cpu 100% #6

iamluodong opened this issue May 24, 2016 · 6 comments

Comments

@iamluodong
Copy link

Windows platform is OK.but Centos have problem( use 64Bit node0.12.x,node4.4.x,node6.6.x same problem )

server:

self.enetserver = enet.createServer({
        address: {
            address : "0.0.0.0",
            port:  16882
        },
        peers: 256,
        channels: 2,
        down: 0,
        up: 0
    }

Client

  self.enetserver = enet.createServer({
        address: {
            address : "0.0.0.0",
            port: 16881
        },
        peers: 256,
        channels: 2,
        down: 0,
        up: 0
    }

I use this host connect server,send message by channel 0 ,Send three times.Server Sometimes redevie one or two,I restart client sample,The server no response. CPU 100%.

@iamluodong
Copy link
Author

If client use

enet.createClient({})

to communication with server,it ok.But I need use enet.createServer to bind spec port.

@oldmud0
Copy link

oldmud0 commented May 24, 2016

Does changing peers/channels have any effect?

@iamluodong
Copy link
Author

no effect.I use channel 0 or 1 cpu up to 100%

@iamluodong
Copy link
Author

The problem is enableCompression,when close the feature,the problem solve.

@oldmud0
Copy link

oldmud0 commented Jun 1, 2016

Weird. Are all the libraries in your distribution up to date?

@iamluodong
Copy link
Author

Yes,latest.

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