# Natural RPC (remote procedure calls)

**URL:** <https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Mainframes, Natural-Database-and-TP-Monitor-Interfaces-on-Mainframes\
**Created:** [December 13, 2010, 3:13pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646 "2010-12-13T15:13:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaheer3](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/zaheer3/32/305_2.png) [@Zaheer3](https://techcommunity.softwareag.com/u/Zaheer3)\
**Post date:** [December 13, 2010, 3:13pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646/1 "2010-12-13T15:13:48Z")

</div>

Good day Douglas, just a follow up from the last session,

We have a C# interface using natural Services, the jcl used is provided below, see attached text file.

We need to create 7 more RPCs running where C# front end calls Natural Services to do the capturing, updating and deletion of DB2 data.

What paramters in the JCL needs to change to ensure the best performance of the RPCs and also best use of the SQL statements to handle the data coming in.

Many thanks  
[jcl.txt](https://techcommunity.softwareag.com/uploads/short-url/2fJowx8TftiOimkVjzFMjdmptUw.txt) (3.47 KB)

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [December 13, 2010, 11:13pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646/2 "2010-12-13T23:13:12Z")

</div>

It is still not clear what you are asking to do here…do you need 7 more RPC servers or are you exposing 7 more Natural subprograms as services?

If you just need to expose 7 more Natural subprograms, then use the Software AG EntireX Designer tool (Eclipse plug-in) and extract the IDL using the Software AG Extractor for Natural, then generate your C# wrappers.

If you need additional RPC Servers to handle the load, then you need to look at the NTASKS subparameter. If this is the case, why has 7 been chosen as the number of servers needed?

---

<div class="post-metadata">

**Author:** ![Zaheer3](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/zaheer3/32/305_2.png) [@Zaheer3](https://techcommunity.softwareag.com/u/Zaheer3)\
**Post date:** [December 14, 2010, 1:26pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646/3 "2010-12-14T13:26:58Z")

</div>

Hi Douglas, many thanks for your response, we need 7 more rpc servers to run, I am not sure why 7 has initially been chosen.

many thanx

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [December 15, 2010, 2:45am UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646/4 "2010-12-15T02:45:14Z")

</div>

ok, then you need to read the chapter “Considerations for Mainframe Natural RPC Servers with Replicas” at [http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat427mf/rpc/start.htm#start\_Considerations\_for\_Natural\_RPC\_Servers\_with\_Replicates](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat427mf/rpc/start.htm#start_Considerations_for_Natural_RPC_Servers_with_Replicates)

The steps for using the re-entrant Natural are important.

As a general rule, monitor your servers from System Management Hub when under load, watching particularly for the “pending conversations” values - if this is 1 or 0, you don’t need more servers. If the number starts to climb, you may need more servers. Putting in too many servers can be counter-productive - if they aren’t busy, they’re just swapped out and burning cycles at each timeout. (In one extreme, a customer had 150 servers on a single CPU machine. Trimming the servers back to 15 improved overall throughput substantially.)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:59pm UTC](https://techcommunity.softwareag.com/t/natural-rpc-remote-procedure-calls/95646/5 "2021-04-02T14:59:31Z")

</div>


