PHP Session Locks - High Io Wait

Feb 11, 2008

For the past couple of days, I've noticed that there is alot of apache processes running in the "D" state and that my IO wait is up to %80. I straced one of the processes and the result is its locking on a php session:

$ strace -p 3230

06:57:12 open("/var/lib/php/session/sess_86ecf346c6f7adba93cb1077f6b95d43", O_RDWR|O_CREAT,
0600) = 44
06:57:12 flock(44, LOCK_EX

And this is the output of lsof

[root@xeon ~]# lsof | grep session
mysqld 3212 mysql 178u REG 8,33 275456 26099994 /hd/mysql/sitebuilder3/session.MYI
mysqld 3212 mysql 183u REG 8,33 354592 26099937 /hd/mysql/sitebuilder3/session.MYD
bash 6426 root cwd DIR 8,21 1060864 25133096 /var/lib/php/session
httpd 6698 apache 44uW REG 8,21 115 9814967 /var/lib/php/session/sess_e0f1bb824667860260f9e5bd53da54e9
httpd 6704 apache 44u REG 8,21 138 25135115 /var/lib/php/session/sess_325b2701fcb8fb2d8371d1dd72660e8b
httpd 6718 apache 44u REG 8,21 138 9814423 /var/lib/php/session/sess_a28662f28c3fe91926c7c96267fe324f
httpd 6723 apache 44u REG 8,21 115 9814794 /var/lib/php/session/sess_79249a69f0a929318c3a8d25b1102ff4
httpd 6765 apache 44u REG 8,21 14 9815234 /var/lib/php/session/sess_0983ce89bad9d37eccec89fe83985945
httpd 6773 apache 44u REG 8,21 141 9815254 /var/lib/php/session/sess_298731e4cb90e58f223bc1b1b2da8cef
httpd 6782 apache 44uW REG 8,21 175 9814514 /var/lib/php/session/sess_608cf6bb40ba33a7505f3857e32c3854
httpd 6786 apache 44u REG 8,21 139 9814480 /var/lib/php/session/sess_10913da266608052ffd08e5fa39356c7
httpd 6787 apache 44uW REG 8,21 138 9814292 /var/lib/php/session/sess_3e0fac0590d02b4f111ce4bee9a8bfe1
httpd 6790 apache 44u REG 8,21 14 9815287 /var/lib/php/session/sess_cdfeac2790c55a62744a66caef886857
httpd 6794 apache 44u REG 8,21 138 9814423 /var/lib/php/session/sess_a28662f28c3fe91926c7c96267fe324f
httpd 6798 apache 44uW REG 8,21 93 9814971 /var/lib/php/session/sess_fa0f81edfd26e8653bc94bc9f9af6f6d
httpd 6801 apache 44u REG 8,21 138 9814423 /var/lib/php/session/sess_a28662f28c3fe91926c7c96267fe324f
httpd 6802 apache 44uW REG 8,21 138 9814423 /var/lib/php/session/sess_a28662f28c3fe91926c7c96267fe324f
httpd 6811 apache 44uW REG 8,21 115 9814802 /var/lib/php/session/sess_396f6670549934766bd8268f0b5628fc
httpd 6822 apache 44u REG 8,21 153 9815061 /var/lib/php/session/sess_0d1fcc65d1964fc3d354e4b94f3638eb
httpd 6833 apache 44uW REG 8,21 153 9815173 /var/lib/php/session/sess_05ed9e41766579f10cfdaa2f7e737a1a
httpd 6846 apache 44u REG 8,21 236 9815142 /var/lib/php/session/sess_23b5cad8471778391bf9748d0f4f1230

View 9 Replies


ADVERTISEMENT

High Io Wait But Sy And Us Is Nothing

Jul 31, 2007

My VPS had some high %wa this two days,when i refresh(F5) WHM %wa will go to 18-20% and us sy just 1 or 2

Is it my vps provider have a very bad oversell?

View 1 Replies View Related

High I/O Wait

Aug 21, 2007

I/O Wait is increasing on my server, please advise what to do: some times it is within 30 % and sometime it is up to 90%

top - 04:40:44 up 5:30, 2 users, load average: 4.57, 2.64, 3.24
Tasks: 171 total, 2 running, 169 sleeping, 0 stopped, 0 zombie
Cpu(s): 18.3% us, 4.3% sy, 0.0% ni, 0.0% id, 77.0% wa, 0.3% hi, 0.0% si
Mem: 1027556k total, 1021944k used, 5612k free, 85460k buffers
Swap: 2040244k total, 2068k used, 2038176k free, 147752k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
16754 apache 15 0 96140 58m 5948 S 8.3 5.8 0:04.95 httpd
19760 psaadm 15 0 36936 3628 1548 S 4.7 0.4 0:00.14 httpsd
5417 apache 15 0 103m 67m 5984 S 2.0 6.7 0:13.00 httpd
2738 mysql 15 0 394m 79m 4660 S 0.7 7.9 1:25.08 mysqld
28294 apache 15 0 104m 68m 6076 S 0.7 6.9 0:25.33 httpd
39 root 16 0 0 0 0 S 0.3 0.0 0:06.16 kswapd0
2857 root 16 0 4788 752 628 S 0.3 0.1 0:03.09 couriertcpd
3022 qmails 15 0 2304 484 372 S 0.3 0.0 0:09.28 qmail-send
32688 apache 15 0 96112 58m 6000 S 0.3 5.8 0:10.76 httpd
5632 popuser 15 0 35588 29m 2344 D 0.3 2.9 0:30.44 spamd
9850 apache 16 0 100m 65m 5996 S 0.3 6.5 0:09.85 httpd
12418 apache 16 0 99796 62m 6296 S 0.3 6.2 0:08.56 httpd
19578 qmaild 15 0 4008 840 692 S 0.3 0.1 0:00.01 qmail-smtpd
1 root 16 0 1652 552 472 S 0.0 0.1 0:00.70 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.29 ksoftirqd/0
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
4 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
5 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
19 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
37 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
38 root 15 0 0 0 0 S 0.0 0.0 0:01.07 pdflush
40 root 11 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
20 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
186 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
295 root 15 0 0 0 0 D 0.0 0.0 0:06.68 kjournald
1373 root 6 -10 1904 456 380 S 0.0 0.0 0:00.01 udevd
1606 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
1648 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 kmirrord
1672 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
1673 root 19 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
2360 root 15 0 2160 552 456 S 0.0 0.1 0:07.27 syslogd
2364 root 16 0 2620 384 316 S 0.0 0.0 0:00.00 klogd
2391 rpc 15 0 1952 548 452 S 0.0 0.1 0:00.00 portmap
2410 rpcuser 18 0 2400 724 620 S 0.0 0.1 0:00.00 rpc.statd
2436 root 16 0 4628 340 172 S 0.0 0.0 0:00.00 rpc.idmapd
2507 root 17 0 3060 508 300 S 0.0 0.0 0:00.00 smartd

View 14 Replies View Related

Plesk 11.x / Linux :: High CPU Wait I/O And Load Average During Backup

May 20, 2014

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk Panel 11.5.30 MU #44 CentOS 6.5 (Final) 64bit

2 of our our servers are suddenly experiencing high Wait I/O Times, and high Load Averages during the backup process. During this period the Plesk grinds to a halt, sometimes crashing out completely (although SSh is still possible. We have been in talks with our server suppliers (assuming this would be node related) however they have done a lot of testing etc. and categorically state the node is fine , with no other users affecting it.

STEPS TO REPRODUCE : We backup the server using the scheduled backup service and Wait I/O immediately goes up.

ACTUAL RESULT: Plesk downtime / Website downtime

EXPECTED RESULT: No downtime, successful back up

Some other info :
All other processes (MYSQL, apache, Nginx etc) are all running between 1 - 10%

Partition "/usr" utilization 4.2% used (1.81 GB of 43.3 GB) (?)
Partition "/var" utilization 50.6% used (61.8 GB of 122 GB) (?)

We are struggling to identify what has changed on the server that would cause this sudden change.

View 3 Replies View Related

(error) IP Address Changed Amidst Session. Possible Session Hijacking

Oct 7, 2007

I have just got a resellers VPS and my host installed HyperVM 2.0 and when I logged in it works but then I get logout and then get this error:

IP Address Changed Amidst Session. Possible Session Hijacking.

then it takes my host admin time to fix it and now they will not do any think so i can not now use it (login). Not Good is there something I can do?

all I can think is that it is my ISP IP (Dynamic IP Address) which keeps changing.

View 13 Replies View Related

Dreamhst Terminates Account Locks Me Out Of Sites

Feb 10, 2009

Looks like Im not the only one being canned for alleged "black hat seo, scaping" reason. I have no idea what that was about? Blogda that used RSS feeds? What bothers me the most is lack of response from them about giving be access to get data for my sites. Terri from DH just deleted my support tickets. Does anyone have other contacts at DH? I was being a*hole or anything, just asked what exactly did I do wrong and get access to db and content.

View 14 Replies View Related

Simultaneous Connections Wait

Jun 16, 2007

I have Apache2 installed on my dedicated server. I would like to install a mod / configure my Apache Server in order to limit simultaneous connections / IP.

The thing that I want is that for example if I want a maximum of 2 simultaneous connections / IP, when that IP reaches the LIMIT, I would like to delay its next request, and NOT display him a 503 error like most mods DO.

View 6 Replies View Related

LeaseWeb - Wait Two Weeks For Server Setup

Apr 1, 2009

I've ordered server from LeaseWeb two weeks ago and still wait for the server setup. Its looks to slow for me - we are used to wait only a few hours for servers setup in datacanters in the US.

I'm afraid that such slow response will be also in response and level of the support. Do you think I should cancel this service and look for other provider in Europe? If yes please suggest such provider.

I've paid in advance by paypal for 3 month(~ 500 EURO). Do you think I will be able to cancel that payment?

View 11 Replies View Related

Downtime, Switch Shared Hosts Or Wait It Out

Sep 2, 2008

I'm with one of the big shared hosts. Support is patchy at best, which isn't a problem until you require help at which point it's agonising as you have to wait an age to get an unsatisfactory response.

At the moment the server I'm on is suffering from consistent outages (it's been up and down over the last few days). Support has been hard to get hold of at times (right now my site is completely unacceptable for me and there's no-one tending the live support chat - which is the only chance of getting a prompt response).

My question is should I be actively looking to improve my situation (it's amazingly frustrating to spend the best part of a day doing small updates, which because of instability, take hours instead of minutes) or should I just wait until it blows over (to be fair server issues tend to be fairly infrequent, but they do flair up every so often). I can't really afford to pay that much more than I am (say $20-$50 a month max) so am I stuck with shared hosting or is there anyway to pay a little more (my current package costs around $10 a month) to get better support and stability?

After a initial look around would something like MediaTemples GS or the low end MediaTemples dedicated virtual service be suitable? The pages do have moderate database use (a few forums and galleries) and use around 50GB a month bandwidth (which would climb slowly in future months)?

View 14 Replies View Related

Kernel: TCP: Time Wait Bucket Table Overflow With VePortal

Oct 5, 2009

Any one facing any issue when Running CPanel on the VPS.

I always seem to be getting these errors only for Cpanel VPS only.

kernel: TCP: time wait bucket table overflow

kernel: TCP: too many of orphaned sockets (90 in CT****)

Even Cpanel Install by SSH or VePortal gives the same error.

View 12 Replies View Related

High Server Load / High Swap / Lots Of Httpd

Feb 20, 2008

I have a cPanel server with 4GB RAM

My server hangs time to time, once or twice a day. This is the last status when it happens.

Server Load 75.90 (2 cpus)
Memory Used 92 %
Swap Used 65.78 %

When I was still inside SSH when it happens, the processes I can see inside "top" are a lot of httpd processes.

So I "killall -9 httpd", I had to do it 30~40 times

#killall -9 httpd
#killall -9 httpd
#killall -9 httpd
x 30~40 times until no pid process found & the server load is back to normal.

Before that, I check httpd fullstatus, they look very normal, same goes to what I see inside WHM Apache status & cpu usage status.

At first I thought it was a memory problem after consulting with a server admin, so I replaced all 4GB new ram stick (such a waste)

View 12 Replies View Related

Plesk 12.x / Linux :: High Memory Usage - Swap So High

Nov 14, 2014

This is my free -m

total used free shared buffers cached
Mem: 1998 1903 95 0 45 542
-/+ buffers/cache: 1315 683
Swap: 2662 36 2625

Not good ....

I got 5 wordpress and 5 statics website on this server and 100 visitors by 24H00 each day.

Question 1 : Why the memory is so low and the swap so high ?
Question 2 : Why i don't find high usage process in top command ?
Question 3 How can i resolve this problem ?

View 2 Replies View Related

My Server Is Very Slow, High CPU, High Apache Load

Oct 31, 2009

My server is very slow, High CPU, High Apache load....

I got a new server and i had setup a script on it.

No server tweaks has been done.

I run a filehosting site so it gets very slow when traffic is high.

Here is some info:

Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4135 filedip 19 0 12812 8892 2212 R 18.9 0.4 0:00.74 index.cgi
3140 apache 15 0 22624 9604 2768 S 17.3 0.5 1:54.45 httpd
3556 apache 15 0 22792 9592 2768 S 17.3 0.5 0:43.53 httpd
3739 apache 15 0 22672 9556 2744 S 17.3 0.5 1:09.67 httpd
3884 apache 15 0 22664 9560 2744 S 17.3 0.5 0:23.98 httpd
3474 apache 15 0 22672 9572 2756 R 16.1 0.5 1:34.09 httpd
3548 apache 15 0 22792 9560 2740 S 16.1 0.5 1:33.67 httpd
3991 apache 15 0 22640 9588 2756 S 15.1 0.5 0:22.44 httpd
3475 apache 15 0 22672 9580 2756 S 13.2 0.5 1:31.42 httpd
3493 apache 15 0 22664 9592 2768 S 12.9 0.5 1:15.52 httpd
3769 apache 15 0 22664 9580 2756 S 12.9 0.5 0:45.19 httpd
3638 apache 15 0 22664 9576 2756 S 12.3 0.5 0:32.82 httpd
3724 apache 16 0 22664 9580 2756 R 12.3 0.5 0:34.25 httpd
3626 apache 15 0 22672 9580 2756 S 11.7 0.5 0:52.54 httpd
4023 apache 16 0 22792 9560 2740 R 11.3 0.5 0:13.16 httpd
3882 apache 15 0 22664 9576 2756 S 10.1 0.5 0:38.56 httpd
3005 apache 15 0 22672 9588 2768 R 9.1 0.5 2:06.61 httpd

I dont know much about server managment...

how to fix this so server doesnt go slow?

View 6 Replies View Related

Server High Load/high Mysql Usage

Jul 2, 2009

I have a site that is eating up my server resources and need to know what the best solution for this is. I'm thinking of getting another server just for mysql but do not know what specs the server should be to handle the current traffic/database load and have the site run smoothly without slowing down to a snail's pace.

An alternative is to get another server just for the videos being served and leave the database and html on the current server. This is where I'm stuck and don't know what route to take with this.

My current server stats:

Dual Xeon 5130
4GB RAM
250GB
50 Mbit/sec
CentOS 3.9

Website traffic stats:

15,000 visitors/day
150,000 pageviews/day
Serving videos

I've attached screenshots of top and bandwidth usage per day. Hopefully with this information you could tell me if I need another server or if there are any things I can do to the current server to help things move faster.

View 13 Replies View Related

Session Directory

Oct 30, 2008

I need to make this writeable but I can't find it on my server with my FTPclient. Can someone tell me what it is and where it's likely to be?

Maybe I have to create one?

View 1 Replies View Related

Session Error

Feb 5, 2007

I have a large survey (I use phpsurveyor) on my reseller webdomain running. It takes about 30 minutes to fill in the complete survey. After 24 minutes my respondents get a session error and their data is lost.

I tried to solve this with a .htaccess

php_value max_execution_time 600
php_value session.gc_maxlifetime 3000
php_value session.cookie_lifetime 3000

With phpinfo.php I can see that the Local Values are session.gc_maxlifetime 3000 and session.cookie_lifetime 3000.

View 1 Replies View Related

Session Issue

Feb 6, 2007

I have got error:

Code:
Warning: session_start() [function.session-start]: Cannot send session cache limiter -
headers already sent (output started at /home/myhope/public_html/pro/index.php:1) in /home/myhope/public_html/pro/index.php on line 2

View 1 Replies View Related

Session.save_path

Jan 13, 2007

It could've gone into the php section as well...I think.

I got a dedicated server 2 days ago, but the "session.save_path" is not set. What I did was create a "php.ini" file, put the following code into it and uploaded it to my public directory.

Quote:

session.save_path = "/var/www/vhosts/contrid.com/subdomains/projects/httpdocs/tmp"

...but I'm not sure if this is right.
Unfortunately it doesn't work, therefore I'm making this post.

If anyone can help me, it will be greatly appreciated.

**
This is for a subdomain.
**

View 1 Replies View Related

Session Error

May 17, 2007

When i try to login my linux server from GUI i put my username "root" and then put the password, i am not able to login and getting following error

"Your session only lasted less then 10 sec. If you have not logged out yourself this could mean that there is some installation problem of that you may be out of disk space. Try logging in with one of the failsafe sessions to see if you can fix this problem view details in ~/.xsession.error file "

Does any one know about this error.

View 3 Replies View Related

Php Session.save_path

Jan 11, 2007

when I install Joomla, it said session.save_path = /tmp is unwriteable. however, following phpinfo(), the session.save_path on server is /tmp, and all my php sites are working fine, I can see many sess_ files in /tmp. That means the sessions are still written into /tmp by user apache, is that correct?

so, why Joomla instalation saying it's unwriteable? i am on a linux server

View 4 Replies View Related

Php Injection & Session Hacking

May 28, 2008

I had done a program in early 2006 for a site in php-mysql. At the time of doing the code, The code written was not so standard and it contained uninitialized variables used for include file paths (eventhough values are assigned to it before using) and the "sess" folder was created within the website folder. Also the parameters for the SQL query were not escaped, but everything was working fine.

And now i was informed that the insecure code in my program caused the server crash and i have to pay the penalty for the same. Can anyone let me know whether the below code / keeping the session variables within a folder inside the /www/ will make the sites hosted on the server where this program runs to stop/crash for ever ?

------------------------------------------------------------------
function update_region($id,$regname,$regcom)
{
$query = "UPDATE taxregion_mast SET taxregion_name = '". $regname."',
region_comments = '". $regcom."' WHERE region_id =" .$id;
mysql_query($query);

......
-------------------------------------------------------------------

View 3 Replies View Related

How To Extend Session Timeout In Php

Mar 10, 2008

My server session timeout is around 20mins. I wish to extend it longer such as 1 or 2 hours?

How can i extend it?

View 4 Replies View Related

Windows Server Session

Aug 8, 2008

Is it possible to have 1 session under XXX.XXX.XXX.XXX IP and the 2 session under a different IP allocated by your DC?.

The box is in Europe ..I need to log-in one session and download some files from a server so whenever the master sees it will see one IP and the other session from another.

Two of the reasons I need this done is 1. privacy 2. avoiding of buying another box.

View 4 Replies View Related

RDP Sessions - Forcing New Session

Sep 3, 2008

I've come across an issue where our users are not logging out of their terminal services session properly. Whether via TSWeb or MSTSC (remote desktop), if they close the browser or RDP window using the x it keeps the session alive for upto 1 minute.

The problem with this is that we use terminal services to host an application for users who can't install it, so other users that login (using a generic username and password) are adopting/hijacking the original session and seeing someone elses data.

Does anyone know of a way to force a new session each time a user connects to RDP? Whether via TSWeb or MSTSC (remote desktop)?

View 7 Replies View Related

A Public Key File Has Not Been Specified For The Session

Feb 21, 2008

When I try to login SSH using SecureCRT Software, following error it show.

A public key file has not been specified for the session. would you like to specify one now.

I am using CPanel.

View 1 Replies View Related

Log SSH Session To Email Or File

Jul 26, 2008

if it's possible to log all ssh commands to a file by session. For example, if I log in as user 'test123', once I close the session, all commands I ran will be saved to a file and either emailed to my server logs email address or saved to a file.

View 5 Replies View Related

Session Clustering With Apache/PHP

Feb 28, 2008

Is there any alternative to ZendPlatform's session clustering? ZendPlatform seems to be very easy to manage.

View 0 Replies View Related

Why Getting Session Timeout Error In IE

Aug 17, 2007

I am assisting a client who is linking to an online calculator, he is putting a frame on top of the calculator page, so people will still see his information. However, for some reason he is getting a Session Timeout Error in IE.

I don't get this error in Firefox using this method, or ever going to the direct page in IE.

Let me give a better explanation:

If you visit:
[url]

Just put in a fake name and email, it loads a frame at top, and then the online calculator, which is this page:
[url]

Why I am getting a Session Timeout? Is there a better solution. I never get the same error if I go directly too:
[url]

We want a frame or better solution because we still want the contact information to be in front of the consumer.

Does this maybe have to do with a cookie and frame?

View 4 Replies View Related

Turn Off Session Expiration On IIS 6.0

Jun 13, 2007

I have a website where people perform a number of tasks, saving some data to temporary session files. If the user is idle for a certain amount of time, then performs an action, his/her work will be gone.

I'd like to set the sessions to never expire, so that only a browser close would delete the temporary files.

I've tried looking around in the IIS manager, but I cannot find a way to do this.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved