# Natural RPCs

**URL:** <https://techcommunity.softwareag.com/t/natural-rpcs/97368>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Remote-Procedure-Call-RPC\
**Created:** [June 8, 2011, 3:26pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368 "2011-06-08T15:26:23Z")\
**Posts on this page:** 7\
**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:** [June 8, 2011, 3:26pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/1 "2011-06-08T15:26:23Z")

</div>

Good day

I have 7 production rpcs (Rpcs are servers being called from WEB via Entire X, natural modules that are called, write to a DB2 database) running at the moment but the usage on CPU is very high, I would like to know the following please :-

1. Will adding more RPCs reduce the CPU time?
2. Is there a way to monitor or get statistics for a single RPC, i. e. the subprograms called and how many times they were called,
3. Is there any mechanism or module to get statistics on RPCs

many thanks

---

<div class="post-metadata">

**Author:** ![Brian\_Johnson1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/brian_johnson1/32/163_2.png) [@Brian\_Johnson1](https://techcommunity.softwareag.com/u/Brian_Johnson1)\
**Post date:** [June 8, 2011, 11:13pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/2 "2011-06-08T23:13:50Z")

</div>

I don’t think adding RPC servers would reduce your CPU consumption. This would increase your throughput if your throughput is actually constrained. But is there a reason you believe your throughput is constrained or that your RPC servers are consuming the CPU?

If you have DB2… God only knows what is chewing your CPU.

Convert to Adabas… that will help! 🙂

---

<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:** [June 9, 2011, 11:50am UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/3 "2011-06-09T11:50:06Z")

</div>

Where exactly is the high CPU noted? EntireX Broker? DB2? Natural RPC Servers?

You can get counts of number of calls to the servers from SMH/CIS services.

If the modules being called are only called from the Natural RPC Servers, and the servers are using the Global Buffer Pool, you can use SYSBPM to get counts of usage.

If they are called from elsewhere, can you set up a GBP just for the Natural RPC Servers to use? That would enable you to track module usage.

You could start the RPC server with TRACE=1 and count the CALLNATs it reports. Other options include using user exit NATRPC02/03 to log statistical information, or use SYSRDC (more work to set up, but more control over what gets tracked).

---

<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:** [June 9, 2011, 12:12pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/4 "2011-06-09T12:12:31Z")

</div>

good day

many thanks for the responses,

the cpu usage can be observed on the txt file attached.

Please advise if anything else is required.  
[rpc usage.txt](https://techcommunity.softwareag.com/uploads/short-url/oh3izVLLFKlBAMIXtwd8cktHP4W.txt) (498 Bytes)

---

<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:** [June 14, 2011, 1:40pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/5 "2011-06-14T13:40:24Z")

</div>

The inverse proportionality EXCP-Cnt / CPU-Time is interesting …

There is no easy way of monitoring a single RPC server “from outside”.  
You don’t have Review Natural Monitor (RNM), I assume ?

What you could do is

1.) use the Data Collector (SYSRDC) to get some insight  
[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat427mf/utis/rdc.htm](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat427mf/utis/rdc.htm)

2.) Establish a local bufferpool for every RPC server instance and dump its contents from time to time

---

<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:** [June 14, 2011, 1:44pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/6 "2011-06-14T13:44:33Z")

</div>

good day, many thanks for all your valuable input, will look at the SYSRDC option.

---

<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, 3:00pm UTC](https://techcommunity.softwareag.com/t/natural-rpcs/97368/7 "2021-04-02T15:00:23Z")

</div>


