Skip to content

High IOWait causing high server load requiring reboot #201

Closed
ghost opened this Issue Feb 21, 2012 · 2 comments

2 participants

@ghost
ghost commented Feb 21, 2012

I was trying to have Socket.io and HTTP requests over SSL and it works except for usually after 2.5 hours, the CPU IOWait spikes to 95% in top and the server loads becomes really high (9.0 + ) and doesn't subside. The server then has to be rebooted. I was wondering if anyone has any ideas. The setup is:

var fs = require('fs');

var https = require('express').createServer({
    key: fs.readFileSync('/home/app/server/server.key'),
    cert: fs.readFileSync('/home/app/server/ssl.crt'),
    ca : fs.readFileSync('/home/app/server/intermediate.crt')
});

var httpProxy = require('http-proxy');```

var nginxProxy = new httpProxy.HttpProxy({
    target: {
        host: '127.0.0.1',
        port: 81
    }
});

var socketProxy = new httpProxy.HttpProxy({
    target: {
        host: '127.0.0.1',
        port: 82
    }
});

https.get('/events/*',function(req,res) {
    socketProxy.proxyRequest(req, res);
});

https.post('/events/*',function(req,res) {
    socketProxy.proxyRequest(req, res);
});

https.on('upgrade', function(req, socket, head) {
    socketProxy.proxyWebSocketRequest(req, socket, head);
});

https.get('/*',function(req,res) {
    nginxProxy.proxyRequest(req, res);
});

https.post('/*',function(req,res) {
    nginxProxy.proxyRequest(req, res);
});

https.listen(443);
@cronopio
cronopio commented Jun 5, 2012

still an issue for you @yuriydyrenko ??

@indexzero
nodejitsu member

Suspect this is just node.js core not handling SSL that well.

@indexzero indexzero closed this Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.