Monster Oasis
覺得累就是進步的開始!

2010/01/31

Protected: oracle problem 2010.0131

Filed under: DATABASE, JOB, System/Linux/Unix* — Tags: — 7:01 pm

This post is password protected. To view it please enter your password below:


2010/01/30

Protected: 2010.0130 shutdown web

Filed under: DATABASE, JOB — Tags: — 7:05 pm

This post is password protected. To view it please enter your password below:


2010/01/29

Protected: msg 0129

Filed under: JOB — 10:46 pm

This post is password protected. To view it please enter your password below:


Protected: mysql myisam performance tunning 過程 – sample data

Filed under: DATABASE, JOB — Tags: , — 6:44 pm

This post is password protected. To view it please enter your password below:


Protected: mysql innodb 的部份參數 , my.cnf

Filed under: DATABASE, JOB — Tags: , — 5:57 pm

This post is password protected. To view it please enter your password below:


2010/01/28

MySQL performance tunning

Filed under: JOB — Tags: — 10:56 pm

重要參數1 = key_buffer_size 這個值只針對 MYISAM engine 有作用 , 這個值用來設定 index 使用多少 memory , mysql 把 index 儘可能的放在 memory 中, 這 key_buffer_size 決定 index 的使用效率 , 效率高的話就是多數的 索引 index 都是存在 memory 中, 那就 select 會快, 一般這個值是 16M , 這兩個狀態值可以用來判斷: Key_reads , Key_read_requests

看以下的例子:
DBM53 的 
show global status like ‘Key_read%’
Key_read_requests 36,479,348,961 
Key_reads 1,009,874,537 

Key_reads / Key_read_requests = 0.02 這樣偏高, 不太好 , 這個值正常是 0.01 , 0.001 最佳

好朋友 phpmyadmin 裡面有很好的解釋:


Key_read_requests 36 G The number of requests to read a key block from the cache.
Key_reads 1,010 M The number of physical reads of a key block from disk. If Key_reads is big, then your key_buffer_size value is probably too small. The cache miss rate can be calculated as Key_reads/Key_read_requests.

這台的 show global variables like ‘key_%’ 是 128MB
key_buffer_size 134,217,728

set global key_buffer_size=1024M

重要參數2 = table_cache

show global status like ‘Open%’

Open_tables 2,048 

若等於

show global variables like ‘%table%cache%’

table_cache 2,048 

並且 Opened_tables 一直增加 , 那要增加 table_cache 的值 , server 1G RAM 推薦 table_cache 128 ~ 256

沒錯, phpmyadmin 指示

Open_tables 2,048 The number of tables that are open.
Opened_tables 6,529 The number of tables that have been opened. If opened tables is big, your table cache value is probably too small.

那麼就來修改 table_cache 吧!

set global table_cache=3000;

 

 

 

not finish!

參考網址:

2010/01/26

把 fstab 改壞了, 怎麼辦? Booting into Rescue Mode

Filed under: System/Linux/Unix* — Tags: — 12:30 am

開機進入 single user mode 了, 那 / 都 mount 成了 read-only 怎改 /etc/fstab 呢?

mount -o remount,rw /

另外可以參考這篇講 Redhat 的 rescue mode steps : http://bbs.518z.net/read-htm-tid-242.html

2010/01/23

50 個超好用的 PHP 工具 – 50 Extremely Useful PHP Tools

Filed under: JOB, Programming/php — 10:04 pm

http://www.smashingmagazine.com/2009/01/20/50-extremely-useful-php-tools/

Protected: 觀察 22:40 – 23:15 apache log 的變化

Filed under: JOB — Tags: — 9:51 am

This post is password protected. To view it please enter your password below:


GRDIII – 拍早餐

Filed under: PHOTO — 9:00 am

R0010880

下頁»

www.monster.com.tw , © Copyright 2008