vi pegs the cpu

  • ffillah
  • Born
  • Born
  • No Avatar
  • Joined: Mar 02, 2003
  • Posts: 2
  • Status: Offline

Post March 2nd, 2003, 10:45 am

Is it common for an unattended vi session to peg the CPU to 100% over the course of a few hours? For example, a user logs in, vi's a file and after a period of inactivity the session timesout, leaving the vi PID still running, but orphaned.

Thanks.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 2nd, 2003, 10:45 am

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post March 2nd, 2003, 4:15 pm

Hmmm, so you are basically saying that someone was using Vi and then left it open and eventually the system kicked them off but left the Vi session open on the server... which at this point it pegs out your cpu?

The only case in which I would see something like Vi or Pico pegging out the CPU is if someone was trying to open a very very large file. Other than that I have never experienced myself the problem you are having, and it does not sound very normal
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post March 2nd, 2003, 4:18 pm

You might read this link though, I have found a few others who have had the problems you are having. Apparently Vi is getting stuck in a loop possibly

http://mail-index.netbsd.org/port-sparc ... /0000.html

Here he says "However, at times it appears that if a telnet connection is dropped and you are in the middle of vi, the vi command goes into a loop consuming all of the CPU. I was wondering if anybody else encountered a similar problem or has"

Sounds to me like the exact problem you are having.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8922
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post March 2nd, 2003, 4:22 pm

I have not found a solution yet, but you might try downloading and installing the latest version of Vi if you have not already. That itself may fix your problem if in fact the problem is with Vi
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • ffillah
  • Born
  • Born
  • No Avatar
  • Joined: Mar 02, 2003
  • Posts: 2
  • Status: Offline

Post March 2nd, 2003, 6:05 pm

Thanks for looking into this.

My hosting provider has disabled SSH access for me because of this. So I really can't do any analytics. I'm not sure if my shell is killed, or hung, or what.

I'm negotiating with them right now about access. Based on the link you sent, I'm making the same suggestion...write a cronjob that looks for and kills a user PID with >x% CPU utilization.

thanks again.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 50 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.