Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    24

    Default vim sessions use 100% CPU

    I'm wondering if this is a common issue or not. Every now and then our server will seem really sluggish, so I'll hop in over ssh, and top shows that a vim process uses 99.9% of our CPU, bringing our load average to 1.5 or so.

    The crazy vim processes seem to be after someone's been editing something (with vim); I don't think they're randomly starting. Does anyone know what causes this? Is there a way to proactively stop these, rather than just killing them? (They won't respond to signal 15; you have to use 9.)

  2. #2
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    It's usually because someone does not exit vim properly, you'll need to educate them on the proper way to exit vim.
    Regards,
    David
    Forum Moderator

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    24

    Default

    Quote Originally Posted by dgbaker
    It's usually because someone does not exit vim properly, you'll need to educate them on the proper way to exit vim.
    They usually come from one of the administrators (most other users don't even know what SSH is). He definitely mastered the :wq thing several years ago.

    In fact... how do you uncleanly exit vi? Pounding Ctrl+C, Ctrl+D, or Ctrl+Q repeatedly didn't do anything.

  4. #4
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    CTRL+Z and forgetting about will cause this.

    Losing your SSH session in the middle of editing will cause this.

    DO - locate .swp to find all files that have been edit by vim and not exited cleanly.



    Those are some other ways.
    Regards,
    David
    Forum Moderator

Similar Threads & Tags
Similar threads

  1. roundcube using 100% cpu
    By sehh in forum E-mail Discussions
    Replies: 2
    Last Post: 09-27-2009, 09:05 PM
  2. neomail.pl sessions 99.9% cpu usage. --help?
    By aboleth in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-20-2006, 12:20 AM
  3. What is kswapd. It's using 100% of cpu
    By phantom2 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-08-2005, 08:04 PM
  4. neomail.pl uses near 100% cpu
    By Wako in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-14-2004, 06:42 AM
  5. 100% CPU Load? What do these mean:
    By N9ne in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-31-2003, 09:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube