Hello friends, i am having an issue on my Natural environment on Linux Red Hat Server, some times the process of the Natural is reaching 100% and the system is getting slower.
I imagine that one bad program its consuming all CPU, but, how can i get information about the programs running over the Natural on this time?
I guess you’re using the command “top” to see the CPU-consuming process. Try “ps -ef | grep 1234” (while 1234 is the regarding Process-ID, to find out more details.
Example. The top-command shows an output like this:
Memory: 128G real, 3025M free, 32G swap in use, 164G swap free
PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
10756 user1 1 59 0 6448K 2672K sleep 30:34 0.02% top
25469 user2 2 59 0 59M 47M sleep 9:13 0.00% natural
25585 user3 2 59 0 43M 31M sleep 8:55 0.00% natural
May be you have a look at the buffer pool. With natbpmon you can get values of a Natural object such as “current number of concurrent users”, “peak number of concurrent users” or “number of usages”.
Another idea is to use the debugger and have especially an eye on performance.
If you have the source code of this application you may use the Natural statement SET TIME. The SET TIME (or SETTIME) statement is used in conjunction with the Natural system variable *TIMD to measure the time it takes to execute a specific section of a program.