Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Memory leaks while navigating

AndrejusJul 24 2019 — edited Sep 3 2019

Problem: OJET app consumes memory while navigating within the app, when data is already cached. This problem becomes critical for OJET apps with complex forms, switching from one module to another within OJET app keeps reserving memory, without releasing it - until browser crash.

Test case: sample app and screen recording available on my DropBox: https://www.dropbox.com/sh/5bne0acy63k3vsm/AAARABKUYCtbhugwvlcnXjsQa?dl=0

Steps to reproduce:

1. Download and extract the sample app

2. ojet restore

3. ojet serve

4. Open Task Manager in Google Chrome (assuming you are running sample app in the same browser) and locate the record for the sample app, monitor memory allocation

5. Keep clicking sequentially on Dashboard and Incidents tabs within the sample app to produce navigation event (same as in screen recording), with an interval of 2-3 seconds (make sure UI finishes rendering, before clicking). Repeat clicking 20-30 times

Now notice:

1. Task Manager shows memory increase with each navigation. This should not happen, data is already fetched and is retrieved from the cache

2. Wait for 10-15 minutes after the test, you will see that part of the reserved memory was released, but it never drops to the initial level

3. In the sample app, memory grow amount is not dramatic, but in real complex OJET apps, grow within each navigation is around 100 MB

Comments

Post Details

Added on Jul 24 2019
3 comments
331 views