The number of jobs spawned from my process doesn't seem to be any different whether I loop on the queue every second or every 60 seconds. I just see messages like this:
"Job 089269/QUSER/QSQSRVR used for SQL server mode processing."
And it uses the same handful of jobs (six in my case) but I am the only user on the LPAR. It may well be plenty more than that in a multi-user environment, but it certainly doesn't appear to be starting/stopping on each loop. So I still cannot really comprehend how it is killing the server.....yet.


-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: 13 October 2015 20:36
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Why does node's Toolkit for i, use a database connection to execute CL commands?

Many thanks - you have done the donkey work for me :)

The documentation is pretty woeful....although probably better than mine!

Sent from my iPad

On 12 Oct 2015, at 21:42, Nathan Andelin <nandelin@xxxxxxxxx> wrote:

I have never used xmltoolkit directly. Here I am just using the new
itoolkit node offering(s)
which I am sure uses xmltoolkit under the covers, but there is no
reference to an IPC value
at the level I am working with :(


The documentation is spread out between DeveloperWorks and YIPs.
Search the following page for "ipc":

http://tinyurl.com/nufv2gk

Here's an example of assigning a value to "ipc" and passing it as a
parameter to the iConn() function in Node.js:

var xt =
require("/QOpenSys/QIBM/ProdData/Node/os400/xstoolkit/lib/itoolkit");

var options = {

ipc : "/tmp/whatever"

};

var conn = new xt.iConn("*LOCAL", "USER", "PASSWORD", options);

Before you begin playing with "ipc" you might want to test the
hypothesis about your Node.js program starting and ending JOBS in a loop:

DSPLOG MSGID(CPF1124 CPF1164)

Monitor for JOB "start" and "end" messages. Fill in other DSPLOG
command parameters to limit the search if you know the JOB names.

You could set your queue wait time back to 5 seconds to do a stress test.

Tony Cairnes mused that the acronym "ipc" was derived from the Unix
command "ipcs", which displays a list of processes which are using
shared memory for inter-processes communications.
--
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
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
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
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.