Skip to Content
author's profile photo Former Member
Former Member

Confused about Trace Concept

There are two different directory to store trace file shown below:

1. /usr/sap/DEV/DVEBMGS00/work/dev_*

2. /usr/sap/DEV/DVEBMGS00/log/TRACE

Here is my opinion,

1. Those files dev_* are created by SAP system automatically when error occurs, and we can not switch on/off them manually.

2. TRACE file is created by ST01 or ST05, we can switch on/off them manually.

Please advise whether my opinion is right or not.

Another confused thing, eg, RFC trace, we can get it from ST01, ST05, and dev_rfc, dev_rfc0 and so on. What's the difference between them? Please advise.

Thanks so much.

James

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 04, 2008 at 05:50 AM

    There are two types of traces:

    One is Developer trace other one is system trace.

    Developer Trace:

    rdisp/TRACE=<n> option set to the instance.

    We can even use the SM50 and choose the WP and activate the trace or increase/decrease the trace.

    Default location in OS level is /usr/sap/SID/D*/Work

    Can be see from St11 or at OS level.

    These are recommended for system monitoring and problem analysis.

    System Trace:

    ST01/ST05 We can on/off the trace for particular activity .

    rstr/filename this profile parameter is used to set the location of the System trace file location.

    Usually it is /usr/sap/SID/D*/log/TRACE

    To view ST01-->Analysis (once trace is on and activity is completed Trace off then we can view this )

    These are used to record the SAP internal activities.

    =========================================

    Even I not clear with the following :

    RFC (Remote Function Call) facility

    dev_rfc, dev_rfc<n>

    dev_rfc traces RFC calls to external functions (written in C or Visual Basic).

    dev_rfc<n> traces RFC calls that are executed in SAP work processes. <n> is the number of the work process in the server . A work process uses the same log file across RFC calls.

    ==============================

    Under trace Directory the files get created if we on the trace for the RFC call.

    Other wise I think ingeneral it will get recorded in work Directory as a normal process due to system is generally traced for level 1.

    Some help :

    http://help.sap.com/saphelp_nw2004s/helpdata/en/1f/8311664bc511d189750000e8322d00/frameset.htm

    http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/frameset.htm

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 03:41 AM

    Dear James,

    You are right about the trace file.

    And regarding the RFC trace, if you want to perform a trace, than you need ST01 (ST05 for SQL trace for perfomance) and dev_rfc<n> trace file was generate by you workprocess, this file contain all the system log and you can use this log to analyst for error also.

    Regards,

    Fendi Suyanto

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      What's the difference between TRACE file and dev_rfc<n> files, since both of them contains RFC trace information?

      Since these two kind of files are created in different directories. I am not sure which program creates TRACE file and which program creates dev_rfc<n> files?

      Thanks

      James

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2008 at 05:39 AM

    Hi,

    The difference between logs and trace files are

    1) Logs are mainly addresssed by administrators and traces by devolpers to check a particular compent in the application is wroking properly(performance) after the compenent got changed.

    2) Any error message(of severity ERROR and FATAL) has to be written as a log message.It is recommended that the messages of severity ERROR and FATAL must not be written as trace Messages.

    3) During normal operation devolpers and supporters are not looking on running of the system.On the other hand the administrator has to check the system regularly.This implies that traces have not to be shown during normal operation, but logs do.

    Hope this helps you.

    Thanks

    Rama

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.