Results 1 to 9 of 9
  1. #1

    help optimize my vps!

    For some reason my site randomly becomes slow when the ram usage reaches 400mb+ and the only solution it to reboot. Accessing my control panel is fine it's just the site that loads slow. I have 512 guaranteed ram and 1gb burst. My site is http://www.lovelyanime.com

    Code:
    11852	mysql	143412 kB	/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-f ...
    11933	named	70036 kB	/usr/sbin/named -u named
    5157	apache	41364 kB	/usr/sbin/httpd
    12269	apache	41260 kB	/usr/sbin/httpd
    26133	apache	41212 kB	/usr/sbin/httpd
    4082	apache	41124 kB	/usr/sbin/httpd
    12101	apache	41124 kB	/usr/sbin/httpd
    11838	apache	41072 kB	/usr/sbin/httpd
    11948	apache	40776 kB	/usr/sbin/httpd
    24307	root	25912 kB	/usr/sbin/httpd
    24234	root	17924 kB	lfd - sleeping
    13336	root	12492 kB	/usr/libexec/webmin/proc/index_size.cgi
    24286	root	9024 kB	sendmail: accepting connections
    24294	smmsp	8116 kB	sendmail: Queue [email protected]:00:00 for /var/spool/clientmqueue
    24348	root	7484 kB	/usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/miniserv.conf
    22504	root	7120 kB	/usr/sbin/sshd
    24319	root	4396 kB	crond
    11782	root	3608 kB	/bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/my ...
    23675	root	2716 kB	xinetd -stayalive -pidfile /var/run/xinetd.pid
    24247	nobody	2480 kB	proftpd: (accepting connections)
    20384	root	2144 kB	/sbin/udevd -d
    1	root	2060 kB	init [3] 
    22103	root	1716 kB	syslogd -m 0

  2. #2
    Join Date
    Sep 2007
    Posts
    368

  3. #3
    Join Date
    Apr 2009
    Posts
    839
    recompile apache without un-needed modules, with mod_php (assuming you're only one owner of this site/vps) and with MPM set to "worker"

    it you have whm/cpanel you can do all of this in 'easyapache' section

  4. #4
    Join Date
    Mar 2009
    Posts
    245
    Switch to clean nginx and problem solved.

  5. #5
    What is clean nginx?

  6. #6
    Join Date
    Sep 2007
    Posts
    368

  7. #7
    What un-needed modules for wordpress site?

  8. #8
    Join Date
    Sep 2007
    Posts
    368

  9. #9
    Join Date
    Mar 2009
    Posts
    245
    Quote Originally Posted by Ruriko View Post
    What is clean nginx?
    You can have installed nginx three way-to have installed only nginx,to serve static and dynamic content,without anything else.
    Nginx proxy to apache is where nginx serves static content like images,videos,music,or anything else what you download while apache doing php and apache mods.
    And third solution would be where apache is also serves dynamic but if you have script which support hotlinking static content to another server you use nginx on that another server(or same).

    And also in some situation if you have more domains on one server then you can set some as clean nging domains and others as proxy.

Similar Threads

  1. optimize IIS
    By linktome in forum Dedicated Server
    Replies: 4
    Last Post: 09-15-2007, 12:43 PM
  2. Optimize VPS
    By stevebor1 in forum Systems Management Requests
    Replies: 0
    Last Post: 06-27-2007, 02:29 PM
  3. What i need to optimize?
    By solis in forum Hosting Security and Technology
    Replies: 8
    Last Post: 12-28-2004, 10:06 AM
  4. How to optimize?
    By koliber2 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 10-12-2004, 12:32 PM
  5. Optimize HDD?
    By wheimeng in forum Hosting Security and Technology
    Replies: 16
    Last Post: 11-10-2003, 10:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •