Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

cluster: v0.11.13, cluster crashed in windows 2008r2 running on VMWare. #7667

Closed
missing1984 opened this issue May 23, 2014 · 0 comments
Closed

Comments

@missing1984
Copy link

var cluster = require('cluster');
var http = require('http');
var numCPUs = 1;

if (cluster.isMaster) {
    // Fork workers.
    console.log("size=" + numCPUs);
    for (var i = 0; i < numCPUs; i++) {
        cluster.fork();
    }

    console.log('master ' + process.pid + ' online');
    cluster.on('online', function(worker) {
        console.log('worker ' + worker.process.pid + ' online');
    });
    cluster.on('exit', function(worker, code, signal) {
        console.log('worker ' + worker.process.pid + ' died');
    });

} else {
    // Workers can share any TCP connection
    // In this case its a HTTP server
    http.createServer(function(req, res) {
        //process.send("pingfrom" + process.pid);
        res.writeHead(200);
        res.end("hello world\n");
    }).listen(8000);
}

cluster was started successfully with one worker

size=1
master 2088 online
worker 820 online

However, once i visit http://localhost:8000, the cluster crashed with following error.

Assertion failed: cb->IsFunction(), file g:\jenkins\workspace\nodejs-msi\22874dd8\src\async-wrap-inl.h, line 230

My system info,

Host Name:                 WIN-GGOAQOAG30L
OS Name:                   Microsoft Windows Server 2008 R2 Enterprise
OS Version:                6.1.7601 Service Pack 1 Build 7601
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows User
Registered Organization:
Product ID:                00486-001-0001076-84452
Original Install Date:     4/12/2014, 6:01:43 PM
System Boot Time:          5/22/2014, 4:53:41 PM
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 70 Stepping 1 GenuineIntel ~2294 Mhz
BIOS Version:              Phoenix Technologies LTD 6.00, 7/31/2013
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC-08:00) Pacific Time (US & Canada)
Total Physical Memory:     2,047 MB
Available Physical Memory: 853 MB
Virtual Memory: Max Size:  4,095 MB
Virtual Memory: Available: 2,773 MB
Virtual Memory: In Use:    1,322 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\WIN-GGOAQOAG30L
Hotfix(s):                 1 Hotfix(s) Installed.
                           [01]: KB976902
Network Card(s):           1 NIC(s) Installed.
                           [01]: Intel(R) PRO/1000 MT Network Connection
                                 Connection Name: Local Area Connection
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.20.254
                                 IP address(es)
                                 [01]: 192.168.20.133
                                 [02]: fe80::7465:4c1f:4a1c:7479
  1. once i increased the worker count >2, the issue gone.
  2. the issue is not reproducible with v10.x node.
  3. the issue is not reproducible if i start the server directly without cluster.
@missing1984 missing1984 changed the title v0.11.13, cluster crashed in windows 2008r2 running on VMWare. cluster: v0.11.13, cluster crashed in windows 2008r2 running on VMWare. May 23, 2014
@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants