Lunarpages Web Hosting Forum

Author Topic: Needed for 400+ Visitor online ( VPS10)  (Read 1384 times)

Offline thanh

  • Newbie
  • *
  • Posts: 2
Needed for 400+ Visitor online ( VPS10)
« on: October 05, 2007, 12:02:41 AM »
Hi Everybody,

I'm the VPS10 Owner with 512mb of ram

I moved my site from shared hosting to VPS, but this VPS config cant help my site up.

My site alway have about 400+ visitors online.

I do search in this forum and someone said that I need to edit the httpd.conf file with line prefork MPM and worker MPM

But I dont know how to config it with my ram memories and my site visitor online 400+

Could you have any recommended?

- I was install FASTCGI for PHP

- My current config

<IfModule prefork.c>
StartServers       2
MinSpareServers    5
MaxSpareServers    10
ServerLimit       100
MaxRequestsPerChild  4000

<IfModule worker.c>
StartServers         2
MaxClients         150
MinSpareThreads     50
MaxSpareThreads     300
ThreadsPerChild     35
MaxRequestsPerChild  4000

- And my server load very slow when i have 400 visitor online ( CPU USage take only 7.0%, But system Usage take 77.18% )
- CPU and SYSTEM USAGE are attached

Offline thanh

  • Newbie
  • *
  • Posts: 2
Re: Needed for 400+ Visitor online ( VPS10)
« Reply #1 on: October 05, 2007, 12:05:45 AM »
Why the CPU usage is very low but make the system usage alway high (over 70% )

Offline perestrelka

  • Master Jedi
  • *****
  • Posts: 1397
Re: Needed for 400+ Visitor online ( VPS10)
« Reply #2 on: October 05, 2007, 10:55:24 AM »

System usage is a cumulative picture presenting the average consumption of a number of critical memory-related parameters of your VPS. It is not related to the CPU consumption and thus it is different from the CPU usage figure.

Depending on which Apache forking model is active, you may slightly  increase ServerLimit or MaxClients as you have some memory still free. By default the prefork model is enabled and ServerLimit would be the parameter that should be adjusted. However, when all 512 Megs of RAM are in use in VPS, you will need to consider optimizing your scripts and server software to reduce the memory consumption or upgrading to a dedicated plan as your current site appears to be memory intensive. More than likely the reason is its popularity.

I hope this helps.
Kind Regards,
Vlad Artamonov