Yes that is right. The main node app is a web socket server, and the child node processes are listeners that wait for entries to arrive on a keyed data queue (one child per key). When they get data, they pass it back to main process to broadcast to the subscribed clients.
One thing I did notice when I started looking at the stats was that my main process was consuming a ridiculous amount of CPU. A major worry......until I realise what it was. My app is actually a Sails.js app that uses Express.js under the covers. Sails also uses something called Grunt that watches for changes to certain files and then redeploys them. That was totally superfluous to my requirements, so I disabled Grunt and the CPU usage returned to next to nothing. Phew! I didn't have the time or inclination to find out why Grunt was doing this. I suspect I needed to reconfigure it slightly for this platform - but I couldn't be bothered.
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: 02 September 2015 13:54
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Question about Node.JS and XMLSERVICE
Thanks for that information, Kevin. I seem to recall from previous discussions that you were using Node to support Web-socket connections. Is that what those JOBS and threads are for?
On Tue, Sep 1, 2015 at 12:12 PM, Kevin Turner < kevin.turner@xxxxxxxxxxxxxxxxxxxx> wrote:
OK on my system the main job (that starts the first node app) the
thread count is 1 and the temporary storage is 4Mb.
The job for the main node process: 6 threads and 65mb.
Each child process: 2 threads and 14mb
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/
________________________________
NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.
--------------------------------------------------------------------------------
CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
As an Amazon Associate we earn from qualifying purchases.