ibmruntimes / node

This repository is moving to: https://github.com/ibmruntimes/node-zos
69 stars 24 forks source link

Problem when running a node.js "hello world" application #155

Closed shzhoujq closed 4 years ago

shzhoujq commented 4 years ago

When I try to run a node.js "hello world" application, a file containing: 

// script.js
console.log("hello world")

node script.js seems to hang.

Are there any other places or suggestions for getting past this "hang" problem?

Note: This question has been migrated from the IBM DeveloperWorks community "IBM SDK for Node.js". It was originally posted on Jun 23, 2017 by user dkelosky.

shzhoujq commented 4 years ago

This problem should no longer be reproducible with SDK for Node.js - z/OS V6, V8, or V12.

Please make sure that the address space is at least 700MB. This is the minimum requirement. See https://www.ibm.com/support/knowledgecenter/en/SSTRRS_12.0.0/com.ibm.nodejs.zos.v12.doc/limitation.htm. This may have been the cause of your problem in previous releases of Node.js on z/OS (V6), but with the current support versions of Node.js on z/OS, you should experience an "out of memory" error.

In addition, please validate that your process limits are not restricting Node.js in any way, which may cause your application to hang. core file         8192b cpu time          unlimited data size         unlimited file size         17179869176b stack size        unlimited file descriptors  64000 address space     unlimited memory above bar  6144m

The above limits are typically a process limit configuration for a Node.js z/OS application.