IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Too much SAP JCO logs

    Posted 01/08/26 06:54 AM

    Hello!

    I hope you're fine!

    I was checking our Integration Server folders contents and I found the following directoy with lots of jco_rfcXXXXXXX.trc files inside of it:

    /WebM/IS01/IntegrationServer/instances/default/packages/WmSAP/logs

    When checking its content, it's not something we'd like to keep storing in our server. Also, it's consuming more than 4GB in our filesystem.

    Could you please let me know which setting should I change on the I.S so these logs aren't written anymore?

    Thank you in advance



    ------------------------------
    Renan Kaic Lopes
    ------------------------------


  • 2.  RE: Too much SAP JCO logs

    Posted 01/09/26 02:33 AM

    Hello Renan,

    Please verify these steps in your admin UI >:

    • Adapters > IBM webMethods Adapter for SAP:

      • Connections > select your SAP connection(s) > RFC Trace = Off
      • Listeners > select your SAP listener(s) > RFC Trace = Off
      • delete old trace files: Logging > Delete all

    • Extended Settings:

      • Remove extended setting watt.sap.debug.CPICtrace

      • Change the WmSAP log level once – no restart is required → this is done in next step

    • Logging > Server Logger > Adapter for SAP: verify if it is not set to Trace

    Maybe the first step is enough but it is best to verify the other two steps as well.

    Best regards,

    Theo



    ------------------------------
    Theo van Dijk
    ------------------------------



  • 3.  RE: Too much SAP JCO logs

    Posted 01/09/26 07:29 AM

    Hello Theo!

    Thank you very much for all steps you provided!

    With them we managed to free more than 15GB total in our integration servers filesystems.

    Have a great day!



    ------------------------------
    Renan Kaic Lopes
    ------------------------------



  • 4.  RE: Too much SAP JCO logs

    Posted 01/09/26 07:45 AM

    Hi Renan,

    one more important reminder when you had the trace writing enabled in the past.
    Every time you install a WmSAP fix, a backup copy is made.
    e.g. in Windows world into:  C:\webMethods111\install\fix\backup

    This contain also your trace files and with it waste disk space as well as it make patching slow.
    You might want to check and cleanup there as well. 👍😁

    Best regards,

    Holm.



    ------------------------------
    Holm Steinland
    IBM
    Ehningen
    ------------------------------



  • 5.  RE: Too much SAP JCO logs

    Posted 01/09/26 08:40 AM

    Hello,

    I am not sure if this still applies to the IBM webMethods Adapter for SAP, but in earlier versions the Adapter Logger in IS was always set to Trace and the real log level was set in the settings of the SAP Adapter.

    For the case, that the JCo Trace files are needed:
    There is a service inside the WmSAP package which can be configured as a scheduled task in IS to clean up these files on a regular basis only keeping the last x days.

    Regards,
    Holger



    ------------------------------
    Holger von Thomsen
    Software Developer
    Deutsche Telekom IT GmbH
    Darmstadt
    ------------------------------



  • 6.  RE: Too much SAP JCO logs

    Posted 01/09/26 08:30 AM

    Not sure if this is an alternative for that particular use-case. But in general I recommend to keep log files of reasonable granularity (so no DEBUG in production, unless really needed) for a certain time and delete them later.

    In fact, depending on the details this is not even a technical question. Quite often there are also legal implications and/or other compliance aspects.

    As for deleting log files, this should of course be automated. For webMethods I have created a solution many years ago and used it in production for a number of years.

    For details, please have a look at https://github.com/JahnTech/webmethods-suite-logfile-archiver



    ------------------------------
    All the best,
    Christoph
    ------------------------------



  • 7.  RE: Too much SAP JCO logs

    Posted 01/09/26 11:07 AM

    Hi,

    Check whether the trace is enabled in SM59 for your RFC destination? 



    ------------------------------
    Kumaraswamy Gorra
    ------------------------------