Very high Xorg memory usage with Ubuntu 18.04












5















I'm having a memory leak issue with Xorg and it's taking up huge portions on my memory. Right now, it's up to 41.2% of memory and I haven't even been using the computer that much.



This is some output regarding it.



    Linux grant-N501VW 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root 1402 0.0 0.6 400860 99080 tty1 Sl+ Jul29 0:03 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root 2097 0.0 34.4 6136080 5608064 tty2 Sl+ Jul29 4:26 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
grant 23603 0.0 0.0 21536 1096 pts/0 S+ 23:11 0:00 grep --color=auto xorg

total used free shared buff/cache available
Mem: 15903 7914 5325 352 2663 7450
Swap: 716 0 716


All drivers are updated as well. Restarting will reset the memory usage but it still creeps up over time.










share|improve this question























  • did you try to set memory limits

    – desertangels
    Aug 3 '18 at 3:29











  • I dont see anything wrong with your memory use

    – Panther
    Aug 3 '18 at 3:58











  • @Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

    – NUTsTUN
    Aug 3 '18 at 18:46











  • Unused ram is wasted ram. Is it causing some sort of problem?

    – Panther
    Aug 3 '18 at 19:19











  • @Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

    – danzel
    Aug 26 '18 at 15:12


















5















I'm having a memory leak issue with Xorg and it's taking up huge portions on my memory. Right now, it's up to 41.2% of memory and I haven't even been using the computer that much.



This is some output regarding it.



    Linux grant-N501VW 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root 1402 0.0 0.6 400860 99080 tty1 Sl+ Jul29 0:03 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root 2097 0.0 34.4 6136080 5608064 tty2 Sl+ Jul29 4:26 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
grant 23603 0.0 0.0 21536 1096 pts/0 S+ 23:11 0:00 grep --color=auto xorg

total used free shared buff/cache available
Mem: 15903 7914 5325 352 2663 7450
Swap: 716 0 716


All drivers are updated as well. Restarting will reset the memory usage but it still creeps up over time.










share|improve this question























  • did you try to set memory limits

    – desertangels
    Aug 3 '18 at 3:29











  • I dont see anything wrong with your memory use

    – Panther
    Aug 3 '18 at 3:58











  • @Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

    – NUTsTUN
    Aug 3 '18 at 18:46











  • Unused ram is wasted ram. Is it causing some sort of problem?

    – Panther
    Aug 3 '18 at 19:19











  • @Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

    – danzel
    Aug 26 '18 at 15:12
















5












5








5


0






I'm having a memory leak issue with Xorg and it's taking up huge portions on my memory. Right now, it's up to 41.2% of memory and I haven't even been using the computer that much.



This is some output regarding it.



    Linux grant-N501VW 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root 1402 0.0 0.6 400860 99080 tty1 Sl+ Jul29 0:03 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root 2097 0.0 34.4 6136080 5608064 tty2 Sl+ Jul29 4:26 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
grant 23603 0.0 0.0 21536 1096 pts/0 S+ 23:11 0:00 grep --color=auto xorg

total used free shared buff/cache available
Mem: 15903 7914 5325 352 2663 7450
Swap: 716 0 716


All drivers are updated as well. Restarting will reset the memory usage but it still creeps up over time.










share|improve this question














I'm having a memory leak issue with Xorg and it's taking up huge portions on my memory. Right now, it's up to 41.2% of memory and I haven't even been using the computer that much.



This is some output regarding it.



    Linux grant-N501VW 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

root 1402 0.0 0.6 400860 99080 tty1 Sl+ Jul29 0:03 /usr/lib/xorg/Xorg vt1 -displayfd 3 -auth /run/user/120/gdm/Xauthority -background none -noreset -keeptty -verbose 3
root 2097 0.0 34.4 6136080 5608064 tty2 Sl+ Jul29 4:26 /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
grant 23603 0.0 0.0 21536 1096 pts/0 S+ 23:11 0:00 grep --color=auto xorg

total used free shared buff/cache available
Mem: 15903 7914 5325 352 2663 7450
Swap: 716 0 716


All drivers are updated as well. Restarting will reset the memory usage but it still creeps up over time.







18.04 xorg ram memory-leak






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 3 '18 at 3:20









NUTsTUNNUTsTUN

412




412













  • did you try to set memory limits

    – desertangels
    Aug 3 '18 at 3:29











  • I dont see anything wrong with your memory use

    – Panther
    Aug 3 '18 at 3:58











  • @Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

    – NUTsTUN
    Aug 3 '18 at 18:46











  • Unused ram is wasted ram. Is it causing some sort of problem?

    – Panther
    Aug 3 '18 at 19:19











  • @Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

    – danzel
    Aug 26 '18 at 15:12





















  • did you try to set memory limits

    – desertangels
    Aug 3 '18 at 3:29











  • I dont see anything wrong with your memory use

    – Panther
    Aug 3 '18 at 3:58











  • @Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

    – NUTsTUN
    Aug 3 '18 at 18:46











  • Unused ram is wasted ram. Is it causing some sort of problem?

    – Panther
    Aug 3 '18 at 19:19











  • @Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

    – danzel
    Aug 26 '18 at 15:12



















did you try to set memory limits

– desertangels
Aug 3 '18 at 3:29





did you try to set memory limits

– desertangels
Aug 3 '18 at 3:29













I dont see anything wrong with your memory use

– Panther
Aug 3 '18 at 3:58





I dont see anything wrong with your memory use

– Panther
Aug 3 '18 at 3:58













@Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

– NUTsTUN
Aug 3 '18 at 18:46





@Panther Xorg memory usage increases over time. It's gotten to 9GB of just Xorg when I wasn't even doing anything. Since I have 16GB of RAM it hasn't slowed me down too much but I want to pin point the issue.

– NUTsTUN
Aug 3 '18 at 18:46













Unused ram is wasted ram. Is it causing some sort of problem?

– Panther
Aug 3 '18 at 19:19





Unused ram is wasted ram. Is it causing some sort of problem?

– Panther
Aug 3 '18 at 19:19













@Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

– danzel
Aug 26 '18 at 15:12







@Panther how would you justify 9GB of RAM used by Xorg? Of course, using RAM for caching etc. when it is not used by applications is reasonable. But applications shouldn't occupy more RAM than they need; and Xorg occupying 9GB sounds like a memory leak, especially because it happens over time.

– danzel
Aug 26 '18 at 15:12












1 Answer
1






active

oldest

votes


















0














UPDATE:



I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.



Unfortunately I lost the .service files so I don't have any more information for further research.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1061900%2fvery-high-xorg-memory-usage-with-ubuntu-18-04%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    UPDATE:



    I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.



    Unfortunately I lost the .service files so I don't have any more information for further research.






    share|improve this answer




























      0














      UPDATE:



      I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.



      Unfortunately I lost the .service files so I don't have any more information for further research.






      share|improve this answer


























        0












        0








        0







        UPDATE:



        I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.



        Unfortunately I lost the .service files so I don't have any more information for further research.






        share|improve this answer













        UPDATE:



        I managed to figure out that the issue was a custom wallpaper systemd service that I was running to update the wallpaper every 30 seconds using pscirlce. Apparently I misconfigured the service and it wasn't removing something from memory properly. I don't know the exact cause of the issue, but removing this fixed my issue.



        Unfortunately I lost the .service files so I don't have any more information for further research.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 at 19:00









        NUTsTUNNUTsTUN

        412




        412






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1061900%2fvery-high-xorg-memory-usage-with-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido