Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 18, 2011 7:55 pm 
Offline
Newbie

Joined: Sun Feb 27, 2011 3:24 am
Posts: 2
I upgraded my ubuntu vsp from 11.04 to 11.10 using the following guide: http://library.linode.com/troubleshooting/upgrade-to-ubuntu-11.10-oneiric. The upgrade went as expected but now I am experiencing abnormally high CPU usage. While trying to track down the cause, I've noticed a process (fuser -s ./sess_e5jeolldk7gvn73ugcobp7ao16) that continues to run and consume large amounts of CPU. I'm not sure if this is the culprit, or what this process is trying to do. I am using the latest 3.0 kernel (3.0.4-linode38). Any help is appreciated.

I've also noticed the following process running (which seem to be calling fuser):

/bin/sh -c [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1- maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) ! -execdir fuser -s {} 2>/dev/null \; -delete

find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +24 ! -execdir fuser -s {} ' -delete

What would be spawning these processes?


Last edited by flipperWhip on Wed Oct 19, 2011 9:04 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Wed Oct 19, 2011 1:57 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
That looks like the php session cleanup cron. Due to permissions on /var/lib/php5 debian and ubuntu have a cron to clean up old sessions instead of letting php do it itself. The command is quite different to that of the one used in lucid
Code:
[ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm


If you have a lot of sessions I can see this chewing up cpu. What I do is either store sessions in something like redis or change the session.save_path ini setting and let php clean up itself.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Wed Oct 19, 2011 9:04 pm 
Offline
Newbie

Joined: Sun Feb 27, 2011 3:24 am
Posts: 2
Obs is right. The cron job for PHP session garbage collection was causing abnormally high CPU usage.

I disabled the cron job and installed APC and Memcached to handle sessions and everything is back to normal.

Still not sure why upgrading from 11.04 to 11.10 caused this issue.


Top
   
 Post subject:
PostPosted: Thu Oct 20, 2011 1:58 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You should consider raising this issue on launchpad as a bug, I imagine the script has changed between 11.04 and 11.10

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group