Jump to content

Server Optimalization


Recommended Posts

Hello everybody,
I'm not so familiar with server and my last admin make my server crashed, so I would like to ask You to help me tweak my server.
Let me start from the begining:

HW:
Athlon64 3700+
2gb memory
sata disk

General usage:
IPB + IPG +ICB wit other small addons:
average 150 users online, peak 220-250,
3k users
70k post,

also on this server I have:
small SMF forum, average 3users online
small 2 wordpresses with only few visits monthly
small Joomla cms - average 20 visits daily
small oscommerce shop - average 100 visits monthly :(

SOftware installed:
Apache 2.2.6
PHP 5.2.4+ eaccelerator 0.9.5.2
mysql 4.1

here are my configs:

my.cnf


What should I do to tweak my server?

Thanks in advance,
BR

YacentY

[mysqld]

default-character-set=latin2

init-connect = "SET NAMES latin2"

language=polish

skip-bdb

#skip-innodb

key_buffer = 192M

#16MB

myisam_sort_buffer_size = 34M

join_buffer_size = 1M

read_buffer_size = 1M

sort_buffer_size = 2M

table_cache = 1528

thread_cache_size = 286

tmp_table_size = 64M

max_allowed_packet = 16M

query_cache_limit = 2M

query_cache_size = 256M

#64M

query_cache_type = 1

query_prealloc_size = 16384

query_alloc_block_size = 16384

tmpdir=/tmp

#myisam-recover



[mysqld_safe]

open_files_limit = 8192


[mysqldump]

quick

max_allowed_packet = 10M


[myisamchk]

key_buffer = 64M

sort_buffer = 64M

read_buffer = 16M

write_buffer = 16M


[client]

default-character-set=latin2


my apache conf - threads section

<IfModule mpm_prefork_module>

	StartServers		 30

	MinSpareServers	  10

	MaxSpareServers	  30

	MaxClients		  150

	MaxRequestsPerChild   0

</IfModule>
Link to comment
Share on other sites

key_buffer should be right around 25% of the memory since it's not a dedicated. I would increase it to 256M to start with though. Add to mysql config

read_rnd_buffer_size = 1M

Save the my.cnf and restart mysql.

Make sure your ibf_sessions table is type HEAP. You can change it in phpmyadmin.

Link to comment
Share on other sites

  • 4 months later...

[quote name='bfarber' post='1674036' date='Sep 14 2007, 09:16 AM']key_buffer should be right around 25% of the memory since it's not a dedicated. I would increase it to 256M to start with though. Add to mysql config

read_rnd_buffer_size = 1M

Save the my.cnf and restart mysql.

Make sure your ibf_sessions table is type HEAP. You can change it in phpmyadmin.

how do i do this?

thank you

Link to comment
Share on other sites

  • 2 weeks later...

OK, now I have this situation:

ibf_sessions table has been switched to HEAP - when I tried to optimize database and export, in both cases I got error message (I wasn't able optimize nor export) and I had to switch ibf_sessions table back to MyIsam. Is it right procedure or can I optimize (export) database without this table?

Link to comment
Share on other sites


All right ;)


I want to export whole database, all tables togheter. When I export gzip, file is big about 16 MB. When I exported whole database (ibf_sessions table HEAP included) downloading was suddenly aborted around 3,5 MB. I switched that table to MyIsam and gzip was successfuly exported in right size (16 MB).

You can only optimize MyISAM tables with MySQL, so that's normal.

You should be able to export the table.

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...
  • 2 weeks later...
  • 4 months later...

You know for anyone wanting their server optimized, I would save all the heartache and get IPS to optimize your server for you. I had them do this for my dedicated server last week. The price was pretty reasonable and saved me tinkering with stuff I didn't have a clue with.

3DKiwi

Link to comment
Share on other sites

[quote name='3DKiwi' timestamp='1281981510' post='2006889']
No my server isn't hosted with IPS.

I just got in touch by email and asked them about making my server more reliable. They came back with a price. I agreed and they did it.

3DKiwi


may we know for exemple how resonable was this price and wich kind of tweaks were performed ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...