LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > getting slow

Reply
 
Thread Tools Display Modes
  #1  
Old 02-13-2013, 11:17 PM
m-mehdipoor m-mehdipoor is offline
Member
 
Join Date: Dec 2012
Posts: 13
Default getting slow

Hi,
I have a new problem.
I have a server with these HDD combination .
3 X 300 GIG sas 15 RPM
1 X 2 TB sata 2 .
when there is a huge process in my server and the server get slow ( for example copy a heavy file ) the webserver get slow after that , and when the process finishes the webserver is slow till we restart the webserver ...
is there any solution to solve this issue?
I use Litespeed Web Server Enterprise v4.2.1.
2 X E5645 processor
32 Gig of memory.
Reply With Quote
  #2  
Old 02-14-2013, 11:25 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
run 'top -c' to see which process consumes cpu cycles the most when it is slow.
Reply With Quote
  #3  
Old 02-14-2013, 02:36 PM
m-mehdipoor m-mehdipoor is offline
Member
 
Join Date: Dec 2012
Posts: 13
here you are


top - 23:35:54 up 14 days, 13:55, 2 users, load average: 4.14, 4.48, 5.49
Tasks: 614 total, 4 running, 610 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.1%us, 2.2%sy, 0.0%ni, 84.9%id, 6.7%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 32869940k total, 31205192k used, 1664748k free, 867556k buffers
Swap: 4194296k total, 469832k used, 3724464k free, 25757684k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
31615 mysql 20 0 12.8g 1.0g 5188 S 55.2 3.2 2050:05 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mys
30474 moviefa 20 0 232m 36m 7884 S 31.5 0.1 0:01.82 lsphp5
30421 funmusi1 20 0 248m 53m 7816 R 28.9 0.2 0:03.55 lsphp5:/home1/funmusi1/public_html/index.php
30418 ariapato 20 0 337m 47m 8100 S 23.7 0.1 0:01.12 lsphp5:/home1/ariapato/public_html/index.php
30509 sohrabs 20 0 211m 14m 7392 S 15.8 0.0 0:00.06 lsphp5
30506 vatanpho 20 0 236m 41m 7716 S 13.1 0.1 0:00.40 lsphp5
30464 hollywoo 20 0 307m 16m 7612 S 7.9 0.1 0:00.21 lsphp5
25216 nobody 1 -19 234m 107m 31m D 5.3 0.3 2:12.43 litespeed (lshttpd)
30493 root 20 0 15428 1672 940 R 5.3 0.0 0:00.08 top -c
1391 root 20 0 0 0 0 S 2.6 0.0 19:25.57 [flush-8:0]
1972 root 20 0 0 0 0 S 2.6 0.0 19:29.27 [kondemand/0]
1984 root 20 0 0 0 0 S 2.6 0.0 13:29.92 [kondemand/12]
30323 celebba1 20 0 237m 42m 7784 S 2.6 0.1 0:03.89 lsphp5
30472 jazireh0 20 0 242m 44m 7784 S 2.6 0.1 0:00.30 lsphp5:/home1/jazireh0/public_html/index.php
30503 dlandsh 20 0 211m 14m 7332 S 2.6 0.0 0:00.05 lsphp5
1 root 20 0 19356 948 724 S 0.0 0.0 1:37.13 /sbin/init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 [kthreadd]
3 root RT 0 0 0 0 S 0.0 0.0 1:33.17 [migration/0]
4 root 20 0 0 0 0 S 0.0 0.0 6:05.35 [ksoftirqd/0]
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [migration/0]
6 root RT 0 0 0 0 S 0.0 0.0 0:01.53 [watchdog/0]
7 root RT 0 0 0 0 S 0.0 0.0 1:15.90 [migration/1]
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [migration/1]
9 root 20 0 0 0 0 S 0.0 0.0 5:40.84 [ksoftirqd/1]
10 root RT 0 0 0 0 S 0.0 0.0 0:00.86 [watchdog/1]
11 root RT 0 0 0 0 S 0.0 0.0 1:01.63 [migration/2]
12 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [migration/2]
13 root 20 0 0 0 0 S 0.0 0.0 5:51.90 [ksoftirqd/2]
14 root RT 0 0 0 0 S 0.0 0.0 0:00.98 [watchdog/2]
15 root RT 0 0 0 0 S 0.0 0.0 0:51.85 [migration/3]
16 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [migration/3]
17 root 20 0 0 0 0 S 0.0 0.0 5:51.91 [ksoftirqd/3]
18 root RT 0 0 0 0 S 0.0 0.0 0:00.96 [watchdog/3]
19 root RT 0 0 0 0 S 0.0 0.0 0:45.83 [migration/4]
20 root RT 0 0 0 0 S 0.0 0.0 0:00.00 [migration/4]
21 root 20 0 0 0 0 S 0.0 0.0 5:33.91 [ksoftirqd/4]
22 root RT 0 0 0 0 S 0.0 0.0 0:00.91 [watchdog/4]
Reply With Quote
  #4  
Old 02-14-2013, 03:52 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
mysql database consumes the most resources. likely it is overloaded. hence the slow. better run db on its own disk or move db to its own server.
Reply With Quote
  #5  
Old 02-14-2013, 03:54 PM
m-mehdipoor m-mehdipoor is offline
Member
 
Join Date: Dec 2012
Posts: 13
I seprated if before on another disk sir...
Reply With Quote
  #6  
Old 02-15-2013, 10:31 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
what about static file download? are those files are separate drives from db? are they slow as well?
Reply With Quote
  #7  
Old 02-15-2013, 01:48 PM
m-mehdipoor m-mehdipoor is offline
Member
 
Join Date: Dec 2012
Posts: 13
they had problem as well
I found the problem in IO wait time .
it seems there are a lot of process on that sata HDD..
but I don't know why I restart the webserver the speed will be well for some minutes...
is it possible to do such a thing like this automaticaly ?
I means the server do that it self and I wont have to do it manually ..
Reply With Quote
  #8  
Old 02-15-2013, 03:16 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
try enable AIO (http://www.litespeedtech.com/docs/we...tuning/#useAIO) and see any difference.
Reply With Quote
  #9  
Old 02-15-2013, 03:17 PM
m-mehdipoor m-mehdipoor is offline
Member
 
Join Date: Dec 2012
Posts: 13
how should I enable it ?
Reply With Quote
  #10  
Old 02-15-2013, 07:49 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
As the URL path indicates: LSWS Web Admin Console => Configuation => Server => Tuning
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:29 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.