cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to see sap work process from linux

Former Member
0 Likes
6,337

Hi All,

  I am using Solaris operating system, I tried to check work process from O/S level by "dpmon pf=<SID>_DVBMGS<instance no>_server " so its working fine in my quality and dev system, but when i am trying same steps in my PRD ,so it is not working with the below error

"

bash-3.00$ dpmon pf=IEP_DVEBMGS01_ITZECCAP

dpmon=>sapparam(2): fopenU("IEP_DVEBMGS01_ITZECCAP","r"): No such file or directory

dpmon=>No Profile used.

dpmon=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline

DpMonInit failed - possibly no dispatcher running

DpMon: External/Internal dplib version: 110/247"

My PRD is on cluster, in this we have 3 application,

Please guide me how can i proceed the action in PRD.

Thanks and Regards,

Aziz.

View Entire Topic
Reagan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello

dpmon=>sapparam(2): fopenU("IEP_DVEBMGS01_ITZECCAP","r"): No such file or directory

So it is evident that the profile is not available in the directory you are calling from.

Provide the output after executing the below commands

ps -ef | grep ms.sap

su - iepadm

cdpro

pwd

ls -la

Regards

RB

Former Member
0 Likes

Hi,

Please find as u suggest,

# ps -ef | grep ms.sap

  iepadm  7539  7518   0   Apr 21 ?          31:00 ms.sapIEP_ASCS00 pf=/usr/sap/IEP/SYS/profile/IEP_ASCS00_itzeccascs

    root 22406 22404   0 17:06:03 pts/1       0:00 grep ms.sap

# su - iepadm

All activites on this Host are loged please submit change request form before you commit any configuration changes on this Host

node2-eccdb:iepadm 1% cdpro

node2-eccdb:iepadm 2% pwd

/sapmnt/IEP/profile

node2-eccdb:iepadm 3% ls -la

total 158

drwxr-xr-x   4 iepadm   sapsys      2048 Mar  2 21:39 .

drwxr-xr-x  11 iepadm   sapsys       512 Mar  2 16:16 ..

-rw-r--r--   1 iepadm   sapsys       245 Jun 29  2009 DEFAULT.1.PFL

-rw-r--r--   1 iepadm   sapsys       333 Jun 30  2009 DEFAULT.2.PFL

-rw-r--r--   1 iepadm   sapsys       408 Jun 30  2009 DEFAULT.3.PFL

-rw-r--r--   1 iepadm   sapsys      1955 Jul  2  2009 DEFAULT.4.PFL

-rw-rw----   1 iepadm   sapsys      2599 Mar 13 17:06 DEFAULT.BAK

-rw-rw----   1 iepadm   sapsys      2714 Mar 13 17:06 DEFAULT.PFL

-rw-r--r--   1 iepadm   sapsys       998 Jul 16  2009 IEP_ASCS00_itzeccascs

-rw-r--r--   1 iepadm   sapsys      5940 Jun  6  2012 IEP_D01_itzeccap1

-rw-rw----   1 iepadm   sapsys      5811 Oct 17  2011 IEP_D01_itzeccap1.BAK

-rw-r--r--   1 iepadm   sapsys      6248 Jun 11  2012 IEP_D01_itzeccap2

-rw-rw----   1 iepadm   sapsys      6119 Jun 11  2012 IEP_D01_itzeccap2.BAK

-rw-r--r--   1 iepadm   sapsys      6223 Jun  6  2012 IEP_DVEBMGS01_itzeccap

-rw-rw----   1 iepadm   sapsys      6091 Oct 17  2011 IEP_DVEBMGS01_itzeccap.BAK

-rw-r--r--   1 iepadm   sapsys       923 Jul 16  2009 IEP_ERS10_itzeccers

-rw-r--r--   1 iepadm   sapsys        71 Jul  7  2009 INSTSTAT

-rw-r--r--   1 iepadm   sapsys      1551 Jul 16  2009 START_ASCS00_itzeccascs

-rw-r--r--   1 iepadm   sapsys      3190 Jun  6  2012 START_D01_itzeccap1

-rw-r--r--   1 iepadm   sapsys      3165 Jun  6  2012 START_D01_itzeccap2

-rw-r--r--   1 iepadm   sapsys      3566 Jun  6  2012 START_DVEBMGS01_itzeccap

-rw-r--r--   1 iepadm   sapsys      1285 Jul 16  2009 START_ERS10_itzeccers

-rw-r--r--   1 iepadm   sapsys       747 Aug  8 16:45 dev_dpmon

-rw-r--r--   1 iepadm   sapsys       257 Mar 23  2010 dev_msprot

-rw-r--r--   1 iepadm   sapsys      1040 Apr 21 14:33 dev_sapstart

-rw-r--r--   1 iepadm   sapsys       415 Jul  7  2009 enquelog

drwxr-xr-x   2 iepadm   sapsys       512 Aug 12  2009 old_temp

drwxr-xr-x   2 iepadm   sapsys       512 Jun 30  2009 oracle

-rw-r--r--   1 iepadm   sapsys       726 Mar  2 21:39 sqlnet.log

Regards,

Faizan Aziz.

Reagan
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello

You used this :

bash-3.00$ dpmon pf=IEP_DVEBMGS01_ITZECCAP

On Unix/Linux machines file names are case sensitive

So you need to do this

su - iepadm

cdpro

dpmon pf=IEP_DVEBMGS01_itzeccap

Good Luck

RB

Former Member
0 Likes

HI,

cd to to relevant directory

cd /usr/sap/IEP/SYS/profile/

Verify your current directory with command pwd

then check your user with command whoami your user should be iepadm

Now if you do ls -ltr in directory of /usr/sap/IEP/SYS/profile/ you should see the profile as you did in your previous that was all correct.

Now run command dpmon pf=IEP_DVEBMGS01_ITZECCAP

You will see the following:

Dispatcher Load Statistics

+------+---------+---------+---------+

|  Typ |     LA1 |     LA5 |    LA15 |

+------+---------+---------+---------+

|  DIA |   1.306 |   0.828 |   0.795 |

+------+---------+---------+---------+

|  UPD |   0.000 |   0.000 |   0.000 |

+------+---------+---------+---------+

|  ENQ |   0.000 |   0.000 |   0.000 |

+------+---------+---------+---------+

|  BTC |   0.842 |   0.850 |   0.791 |

+------+---------+---------+---------+

|  SPO |   0.000 |   0.000 |   0.000 |

+------+---------+---------+---------+

|  UP2 |   0.000 |   0.000 |   0.000 |

+------+---------+---------+---------+

    q - quit

    m - menue

Use option m and  and then option p

Dispatcher-Monitor-Menue

    ------------------------

    d - dispatcher queue statistics

    r - request queue statistics

    p - work-process-admin-table

    l - work-process-admin-table (long)

    y - vm-container-admin-table

    t - trace level/components for wp

    w - wp_ca blocks

    a - appc_ca blocks

    b - dump binary content of shared memory blocks

    c - comm adm blocks

    j - j2ee adm area

    m - mbuf status

    s - service buffer status

    v - tm_ad dump

    z - sys_ad dump

    e - maintain profile parameters

    q - quit

Option P will list this:

28 BTC    29634 Wait          yes   no   565    0

29 BTC    13795 Wait          yes   no   369    0

30 BTC     8597 Wait          yes   no   387    0

31 BTC    11258 Wait          yes   no   591    0

32 BTC     5070 Wait          yes   no     0    0

33 BTC    26101 Wait          yes   no   611    0

34 SPO    17926 Wait          yes   no   605    0

35 UP2    24041 Wait          yes   no   511    0

36 UP2     5909 Wait          yes   no   511    0

    s - stop workprocess

    k - kill workprocess (with core)

    r - switch restart flag

    q - quit

    m - menue

And it should list all your processes you want to see, if it still give you error you may gave to set permissions with chmod.

Regards,

Johan




Former Member
0 Likes

@Reagan:

Good point Reagan, that's why I asked him to do this -->

try to start dpmon with pf=/usr/sap/IEP/SYS/profile/your-instance-profile (full directory).

With hope that he will copy-n-paste the instance-profile correctly....

@Faizan:

You did get cdpro correctly executed (from your list at 2:30 pm):

# su - iepadm

All activites on this Host are loged please submit change request form before you commit any configuration changes on this Host

node2-eccdb:iepadm 1% cdpro

node2-eccdb:iepadm 2% pwd

/sapmnt/IEP/profile