XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XOA - Memory Usage

    Scheduled Pinned Locked Moved Xen Orchestra
    45 Posts 8 Posters 2.2k Views 9 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • acebmxerA Online
      acebmxer
      last edited by acebmxer

      @florent @mathieura

      XOA is giving alart about Memory running low.... I have not rebooted xoa or aything since @florent applied patchs to xoa. Support tunnel still open.

      Screenshot 2026-04-14 140230.png

      florentF 1 Reply Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @acebmxer
        last edited by

        @acebmxer thanks to you we have discove a new class of candidates for the fix : the TLS session that stayed behind each connection.

        the branch is here https://github.com/vatesfr/xen-orchestra/pull/9725 , as soon as we are done on a QA we will patch your xoa

        fbeauchamp opened this pull request in vatesfr/xen-orchestra

        closed fix(xo-server): TLSSocket memory leak — stoppable + http-server-plus incompatibility #9725

        P acebmxerA 2 Replies Last reply Reply Quote 1
        • P Offline
          Pilow @florent
          last edited by

          @florent http 401 error on the pull 😕 odd

          florentF 1 Reply Last reply Reply Quote 0
          • acebmxerA Online
            acebmxer @florent
            last edited by

            @florent

            This is from when patch was applied today.

            Screenshot 2026-04-15 094913.png

            florentF 1 Reply Last reply Reply Quote 0
            • florentF Offline
              florent Vates 🪐 XO Team @Pilow
              last edited by

              @Pilow said:

              @florent http 401 error on the pull 😕 odd

              can you retry ?

              P P 2 Replies Last reply Reply Quote 0
              • florentF Offline
                florent Vates 🪐 XO Team @acebmxer
                last edited by

                @acebmxer said:

                @florent

                This is from when patch was applied today.

                Screenshot 2026-04-15 094913.png

                I am exactly on the same screen, but I won't jinx it and emit a hope before at least a few more hours

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pilow @florent
                  last edited by

                  @florent even in private navigation
                  8bd6322e-dab8-41f0-9140-9b400ed0a10a-image.jpeg

                  acebmxerA 1 Reply Last reply Reply Quote 0
                  • acebmxerA Online
                    acebmxer @Pilow
                    last edited by acebmxer

                    @Pilow

                    Page loads for me.

                    Screenshot 2026-04-15 101925.png

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      ph7 @florent
                      last edited by

                      @florent
                      I get the same result as @pilow
                      I'm not logged in if that has anything to do with it

                      florentF 1 Reply Last reply Reply Quote 0
                      • florentF Offline
                        florent Vates 🪐 XO Team @ph7
                        last edited by

                        @ph7
                        a9ebbee8-7a34-4469-8f48-8b76af15adf6-image.jpeg
                        let's call it a day

                        @acebmxer after 3 hours the consumption was slightly rising, so we also deployed the latest rest api patch which is already on master : https://github.com/vatesfr/xen-orchestra/commit/0fef765ce6b4bc96b28e6af9be3d3dba3fa7dc1e

                        0 MathieuRA committed to vatesfr/xen-orchestra
                        fix(rest-api): fix memory-leak on subscription (#9707)
                        P 1 Reply Last reply Reply Quote 0
                        • acebmxerA Online
                          acebmxer
                          last edited by acebmxer

                          Looks good so far. Thanks for all your help.

                          Screenshot 2026-04-15 143021.png

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Pilow @florent
                            last edited by

                            @florent was finally able to read the pull
                            /clap ! the fix seems totally legit and consistant with XOA ram ramping up !

                            when will this be officially published ? 😛
                            so we can disable daily reboot of XOA & XO PROXies 😃

                            1 Reply Last reply Reply Quote 0
                            • florentF Offline
                              florent Vates 🪐 XO Team
                              last edited by

                              that's better but it still grew during the night
                              50dbd90c-5235-4b0d-be4c-279d8281d3b2-image.jpeg
                              (and the process did an aout of memory when I asked for a memory dump)

                              I reduced the memory allocated to the rest api and will continue monitoring

                              M 1 Reply Last reply Reply Quote 1
                              • M Offline
                                MajorP93 @florent
                                last edited by

                                Hello @bastien-nollet @florent

                                moving the discussion from this thread (link), to this one as it seems to be tackling the same issue.

                                This is the RAM usage of my Xen Orchestra instance before applying "fix(rest-api): fix memory-leak on subscription" 7b109c5e-67b5-4994-95f1-4e51815807a0-image.jpeg

                                Between 04/07 and 04/10 the system was not rebooted. The RAM usage increased step by step as shown in the screenshot caused by backup runs. Each backup run increased RAM usage and it did not go back to where it was before the backup run.

                                This is the RAM usage after applying said fix via branch "mra-fix-rest-memory-leak".

                                5a8bfa32-a467-4fa5-b88e-4904b5603a7e-image.jpeg

                                Between 04/14 and 04/16 the VM was not restarted.
                                Backup jobs are scheduled to run every day.
                                RAM usage still increased a bit by each backup run but it seems to be less.
                                Looks like an improvement (which is great!) but maybe the issue is not fully fixed yet.

                                I can not fully tell as I need to keep monitoring this a bit more.

                                I will keep having an eye on this and report back.

                                Thanks for working on this and best regards.

                                florentF 1 Reply Last reply Reply Quote 0
                                • M MajorP93 referenced this topic
                                • acebmxerA Online
                                  acebmxer
                                  last edited by

                                  After backup jobs ran last night...

                                  Screenshot 2026-04-16 094136.png

                                  Screenshot 2026-04-16 094037.png

                                  1 Reply Last reply Reply Quote 0
                                  • florentF Offline
                                    florent Vates 🪐 XO Team @MajorP93
                                    last edited by

                                    @MajorP93 I think there are multiple issue for memory . Pillow and acebmxer uses proxy , so the backup memory is handled differently

                                    are you using XO from source or a xoa ? would you be ok to export a memory heap ?

                                    florentF M 2 Replies Last reply Reply Quote 0
                                    • florentF Offline
                                      florent Vates 🪐 XO Team @florent
                                      last edited by

                                      maybe a good news ?
                                      d8d2e80c-a644-4bd6-88b5-090edf1c3a6b-image.jpeg

                                      is completely stable since yesterday's patch

                                      1 Reply Last reply Reply Quote 2
                                      • M Offline
                                        MajorP93 @florent
                                        last edited by

                                        @florent Yes I am using XO from sources:

                                        f3222523-abf2-4c99-a9ce-30574cf8615d-image.jpeg

                                        Currently on the branch that @bastien-nollet asked me to test.

                                        Yeah sure I can export a memory heap. Can you give me instructions for that?
                                        Also: currently I have one backup job running. Is it better to take the memory heap snapshot while backup is running or afterwards?

                                        Best regards

                                        florentF 1 Reply Last reply Reply Quote 0
                                        • florentF Offline
                                          florent Vates 🪐 XO Team @MajorP93
                                          last edited by

                                          @MajorP93 I am not sure of which branch.
                                          can you switch to https://github.com/vatesfr/xen-orchestra/pull/9725

                                          then

                                          when running this branch :

                                          wait for the memory to fill
                                          find the process running xo ( dist/cli.mjs )
                                          send signal : kill -SIGUSR2
                                          a file is created in `/tmp/xo-server-${process.pid}-${Date.now()}.heapsnapshot` 
                                          

                                          Note that these exports can contain sensitive data. This will freeze you xo from a few seconds to 2 minutes, and the memory consumption after will be higher after, but this will be very usefull to identify exactly what is leaking

                                          The file will be a few hundred MB

                                          fbeauchamp opened this pull request in vatesfr/xen-orchestra

                                          closed fix(xo-server): TLSSocket memory leak — stoppable + http-server-plus incompatibility #9725

                                          florentF 1 Reply Last reply Reply Quote 1
                                          • florentF Offline
                                            florent Vates 🪐 XO Team @florent
                                            last edited by

                                            we merge the code into master ( including the code to allow a heap memory export )

                                            M 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post