DataPower

DataPower

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.

 View Only
Expand all | Collapse all

High Memory Usage in IDG datapower

  • 1.  High Memory Usage in IDG datapower

    Posted Tue April 25, 2023 05:04 PM

    Hi,

    High memory usage is observed in one of the datapower with 98%. We have ensured that all probes are disabled through CLI. We have also ensured that domains are restarted and caches are cleared. However, the memory utilization still stays at 98%. We are also unable to login to Web GUI. It is login intermittently and GUI is behaving unstable. Thus unable to generate any error report or backups. 

    Can you please suggest how this issue can be resolved? The memory we have is 16gb. I would like to get the memory usage to stable condition along with access to web GUI.

    Thanks ! 



    ------------------------------
    Prathamesh Dixit
    ------------------------------


  • 2.  RE: High Memory Usage in IDG datapower

    Posted Tue April 25, 2023 06:06 PM

    Try to reload the firmware.  If that doesn't clean it up, it will require a restart.



    ------------------------------
    Joseph Morgan
    ------------------------------



  • 3.  RE: High Memory Usage in IDG datapower

    Posted Wed April 26, 2023 04:12 AM

    Restart did the job. However I need to analyse why memory went so high. I had to login to VMConsole (CLI) and do "shutdown reboot 30" which restarts the whole datapower in 30 seconds. Thanks for your input.



    ------------------------------
    Prathamesh Dixit
    ------------------------------



  • 4.  RE: High Memory Usage in IDG datapower

    Posted Thu April 27, 2023 06:58 AM

    Hi do you have monitoring in place? Can you see if the mem growth was slow or fast?

    I would start by looking at 'expected' drivers of mem growth; was there higher traffic at this time?

    Were the caches getting full or were they constant?
    Any recent changes or is the system static?

    and so on



    ------------------------------
    Matthias Siebler
    MA
    ------------------------------



  • 5.  RE: High Memory Usage in IDG datapower

    Posted Thu April 27, 2023 10:22 AM

    Hi Matthias, 

    Thanks for your detailed inputs. There is no external monitoring in place. All we have is inside datapower in form of logs.

     
    1. I would say memory spike up was sudden. As I had mange to login the environment successfully prior days.
    2. I would not expect any heavy traffic being non-prod environment.
    3. I did try to clear stylesheets during intermittent logins. However, the memory was constant to 98% still. 

    In raised PMR, I managed to provide IBM post restart error report (which was hardly useful to debug actual cause). However, IBM identified that in few MQ managers retry attempt was set to 0. This appears as known issue to CPU/memory spikes. I would be investigating on that part as well now. 

    Keeping close eye on environment. Currently memory is stable to 11%.

    Thanks ! 

    - Prathamesh 



    ------------------------------
    Prathamesh Dixit
    ------------------------------



  • 6.  RE: High Memory Usage in IDG datapower

    Posted Thu April 27, 2023 10:50 AM
    Edited by Ivan Heninger Thu April 27, 2023 10:53 AM

    The json and xsl compile events can spike memory.  Things like validation schemas are "differed" compile, compiled on first execution, so they can appear long after bootstrap.

    You can use the data found in default domain's temporary://dpmon/ directory to observe mem, cpu, disk and network metrics.  Add the .nmon file name extension to the dpmon logs and load them into your favorite nmon data rendering tool, I like NMONVisualizer.  In the "top" data you will see drouter process, this is the main drouter runtime, and you can review the ResidentSetSize(RSS).

    The 9 files in dpmon directory contain about 2 hrs of history.



    ------------------------------
    Ivan Heninger
    ------------------------------



  • 7.  RE: High Memory Usage in IDG datapower

    Posted Thu April 27, 2023 12:15 PM

    Hi Ivan, 

    Thanks for the detailed input. This is really something new to me. Glad I posted the issue here. Would you say that temp directory will have the data even after the appliance/VM restart? Since I restarted the appliance, I believe I would have lost that data from the perticular day. 

    In such case , would you recommend to pull the dpmon files from CLI to somewhere else and debug? 

    - Prathamesh 



    ------------------------------
    Prathamesh Dixit
    ------------------------------



  • 8.  RE: High Memory Usage in IDG datapower

    Posted Wed April 26, 2023 03:52 AM

    Hi,

    are you able to login using CLI? Here is a technote that might help to debug and to address the issue:

    https://www.ibm.com/support/pages/datapower-mitigation-high-memory



    ------------------------------
    Hermanni Pernaa
    ------------------------------



  • 9.  RE: High Memory Usage in IDG datapower

    Posted Wed April 26, 2023 04:14 AM

    I did read these earlier. However very few were relavent to the issue I had. I am yet analysing the root cause. I now managed to restart the datapower through VMConsole using "shutdown reboot 30" command. This did the job. Now I can login to web GUI as well. Memory utilization back to 10% now. Thanks for the help !



    ------------------------------
    Prathamesh Dixit
    ------------------------------



  • 10.  RE: High Memory Usage in IDG datapower

    Posted Wed April 26, 2023 09:45 AM

    Does your integration use Kerberos?  That has caused memory issues for a long time, and only recently fixed in the 10.0.1 FW versions.
    Check the size of your document and stylesheet caches as well.



    ------------------------------
    Joseph Morgan
    ------------------------------



  • 11.  RE: High Memory Usage in IDG datapower

    Posted Wed April 26, 2023 04:15 AM

    After restart, no services/configurations were harmed. All cofigs were intact. However I would suggest to take a VMSnapshot with memory just for the cautious approach.



    ------------------------------
    Prathamesh Dixit
    ------------------------------