Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: /home/username/.xsession-errors is constantly growing to an enormous size

  1. #1

    Default /home/username/.xsession-errors is constantly growing to an enormous size

    /home/username/.xsession-errors constantly grows until about once a month or so, it reaches an enormous size, taking up my entire drive that I have set to be used as the /home directory. Once this happens, anything and everything graphical still works, but gets very slow and unresponsive, and I get a warning that /home has low disk space, so I delete .xsession-errors manually on the command line using the rm -rf command. Once I delete it, the command line acts as though it has been immediately deleted, but it is such a large file, that it is actually still in the process of being deleted for many hours, sometimes even more than a day, so the computer does not become quick and responsive again for a very long time, often requiring a reboot, but the reboot cannot happen properly since the file is still in the process of being deleted, so then reiserfs file system errors always occur on reboot, and it takes a few tries at rebooting it, which scares me, because this is a web server, not just a personal comupter, so I don't want to corrupt the file system and have the system offline for any longer than necessary. I'm not sure what is causing .xsession-errors to constantly grow like that. Is there any way to prevent the file from being written in the first place? I'm never going to use it for anything anyway; all it does is cause me problems. This is an openSUSE 12.1 system with all updates available already applied to it. Thanks for any assistance.

    Code:
    drwxr-xr-x  2 LUB997 users           96 Nov 18  2011 .xdg_menu_cache
    -rw-r--r--  1 LUB997 users         1940 Jul 22  2010 .xim.template
    drwxr-xr-x  2 LUB997 users           80 Dec 22  2010 .xine
    -rwxr-xr-x  1 LUB997 users         1446 Jul 22  2010 .xinitrc.template
    -rw-------  1 LUB997 users 243784122368 Aug  7 10:52 .xsession-errors
    -rw-r--r--  1 LUB997 users       342706 Jun 28 23:23 .y2log
    -rw-r--r--  1 LUB997 users          281 Mar 22  2011 .y2usersettings

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,161
    Blog Entries
    3

    Default Re: /home/username/.xsession-errors is constantly growing to an enormous size

    Code:
    -rw------- 1 rickert users 115627 Aug  7 13:21 .xsession-errors
    That's after around 3 days. I logout and log back in twice a week.

    I am not sure that removing ".xsession-errors" does anything. When I check with "lsof" there are a bunch of processes that have it open for file descriptors 1 and 2. They will keep it open, even if deleted. So deleting removes the directory entry, but not the file. Only terminating all of the processed that have the file open will free up the file and the space that it uses.

    I recommend that you occasionally logout, then login again. Another possibility is:
    Code:
    cd
    cp /dev/null .xsession-errors
    That should clear out most of the disk space. The file might still look huge, but will probably be a sparse file with most of the fine content not really existing.

    Best advice is still to occasionally logout then login.
    openSUSE Leap 15.1; KDE Plasma 5;

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    On 2012-08-07 20:16, lub997 wrote:

    > I'm not sure what is causing .xsession-errors to constantly grow like
    > that.


    Did you look inside yet? That's the first thing to do. Use 'less'.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 "Asparagus" GM (bombadillo))

  4. #4
    Join Date
    Jan 2009
    Location
    Prague
    Posts
    23

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    My .xssession-errors is also growing, over 100 MB in a week. Most errors are about:

    kopete(4087)/kopete (jabber) JabberAccount::slotResourceAvailable: New resource available for ".." (or other errors associated with Kopete)
    knotify(3939) KNotify::event: 2090 ref= 0
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    knotify(3939) KNotify::event: 2080 ref= 0
    kglobalaccel(3924) KGlobalAccelImpl::x11Event: Got XKeyPress event
    kglobalaccel(3924) GlobalShortcutsRegistry::keyPressed: "Alt+F4" = "Window Close"
    knotify(3939) KNotify::event: 2081 ref= 0
    knotify(3939) KNotify::event: 2082 ref= 0
    kwin(3943) KWin::Workspace::updateClientArea: screens: 2 desktops: 4
    kwin(3943) KWin::Workspace::updateClientArea: Done.
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Enabled: false
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Handler: 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Exclude: 0x0 Match? false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: Gesture ungrab
    knotify(3939) KNotify::event: 2083 ref= 0
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    knotify(3939) KNotify::event: 2084 ref= 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Enabled: false
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Handler: 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Exclude: 0x0 Match? false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: false
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    X Error: BadWindow (invalid Window parameter) 3
    Major opcode: 20 (X_GetProperty)
    Resource id: 0x84000b7
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    knotify(3939) KNotify::event: 2080 ref= 0
    kglobalaccel(3924) KGlobalAccelImpl::x11Event: Got XKeyPress event
    kglobalaccel(3924) GlobalShortcutsRegistry::keyPressed: "Alt+F4" = "Window Close"
    knotify(3939) KNotify::event: 2081 ref= 0
    knotify(3939) KNotify::event: 2082 ref= 0
    kwin(3943) KWin::Workspace::updateClientArea: screens: 2 desktops: 4
    kwin(3943) KWin::Workspace::updateClientArea: Done.
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Enabled: false
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Handler: 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Exclude: 0x0 Match? false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: Gesture ungrab
    knotify(3939) KNotify::event: 2083 ref= 0
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 604 440 770
    knotify(3939) KNotify::event: 2084 ref= 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Enabled: false
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Handler: 0
    kded(3916)/khotkeys KHotKeys::Gesture::update_grab: Exclude: 0x0 Match? false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: false
    kded(3916)/khotkeys KHotKeys::Gesture::grab_mouse: Gesture ungrab
    lancelot(4001)/libplasma Lancelot::CustomList:: Private::updateSizeInfo: Sizes 522 380 665
    kglobalaccel(3924) KGlobalAccelImpl::x11Event: Got XKeyPress event
    kglobalaccel(3924) GlobalShortcutsRegistry::keyPressed: "F12" = "toggle-window-state"
    knotify(3939) KNotify::event: 2085 ref= 0
    yakuake(4011)/kdeui (KWindowInfo) KWindowInfo::desktop: Pass NET::WMDesktop to KWindowInfo
    akregator(4089)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1
    ] 0
    akregator(4089)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::moveTo: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ]
    Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1
    ] 0
    akregator(4089)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::moveTo: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ]
    Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1
    ] 0
    akregator(4089)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::moveTo: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1 ]
    Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )
    akregator(4089)/khtml (caret) DOM::Selection::validate: Selection[ Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 ) 1
    ] 0
    akregator(4089)/khtml (caret) DOM::Selection::validate: [character:baseIsStart] true Position( 0x0 "null" : 0 ) Position( 0x0 "null" : 0 )

  5. #5

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    @vojtaeus,
    Nothing to worry about. Just log out from time to time!

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    On 2012-08-08 14:06, please try again wrote:
    >
    > @vojtaeus,
    > Nothing to worry about. Just log out from time to time!


    Before hibernation started to fail on me, I stayed on the same session for a month, and the file was
    small.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 "Asparagus" GM (bombadillo))

  7. #7

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    Quote Originally Posted by robin_listas View Post
    On 2012-08-08 14:06, please try again wrote:
    >
    > @vojtaeus,
    > Nothing to worry about. Just log out from time to time!


    Before hibernation started to fail on me, I stayed on the same session for a month, and the file was
    small.
    You're not using KDE, which generates a huge amount of pointless warnings.

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: /home/username/.xsession-errors is constantly growing to an enormoussize

    On 2012-08-09 05:16, please try again wrote:
    >
    > robin_listas;2479046 Wrote:
    >> On 2012-08-08 14:06, please try again wrote:
    >>>
    >>> @vojtaeus,
    >>> Nothing to worry about. Just log out from time to time!

    >>
    >> Before hibernation started to fail on me, I stayed on the same session
    >> for a month, and the file was small.
    >>
    >>

    >
    > You're not using KDE, which generates a huge amount of pointless
    > warnings.


    Could be.
    And they can not be tuned out, those messages?

    Perhaps using a named pipe? (wild idea)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 "Asparagus" GM (bombadillo))

  9. #9
    josephkk NNTP User

    Default Re: /home/username/.xsession-errors is constantly growing to an enormous size

    On Tue, 07 Aug 2012 18:36:02 GMT, nrickert
    <nrickert@no-mx.forums.opensuse.org> wrote:

    >
    >Code:
    >--------------------
    >
    > -rw------- 1 rickert users 115627 Aug 7 13:21 .xsession-errors
    >
    >--------------------
    >
    >That's after around 3 days. I logout and log back in twice a week.
    >
    >I am not sure that removing ".xsession-errors" does anything. When I
    >check with "lsof" there are a bunch of processes that have it open for
    >file descriptors 1 and 2. They will keep it open, even if deleted. So
    >deleting removes the directory entry, but not the file. Only
    >terminating all of the processed that have the file open will free up
    >the file and the space that it uses.
    >
    >I recommend that you occasionally logout, then login again. Another
    >possibility is:
    >
    >Code:
    >--------------------
    >
    > cd
    > cp /dev/null .xsession-errors


    Hmmm. Not "cp but "mv"; cp won't remove the source file.
    >
    >--------------------
    >
    >That should clear out most of the disk space. The file might still
    >look huge, but will probably be a sparse file with most of the fine
    >content not really existing.
    >
    >Best advice is still to occasionally logout then login.


  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,161
    Blog Entries
    3

    Default Re: /home/username/.xsession-errors is constantly growing to an enormous size

    Quote Originally Posted by josephkk View Post
    > cd
    > cp /dev/null .xsession-errors


    Hmmm. Not "cp but "mv"; cp won't remove the source file.
    That misses the whole point.

    When an existing process has the file open, then it is referencing the file by its inode, not by the file name. Using "mv" changes the file name, but keeps the inode. Processes that are writing to the file will continue to write to the same file, even though it now has a different name.
    openSUSE Leap 15.1; KDE Plasma 5;

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •