全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: leozhang

[Windows VPS] nginx高手进来看看这个神马情况? linode768内存,

[复制链接]
发表于 2012-1-20 21:20:59 | 显示全部楼层
MySQL用innoDB,用优化工具看参数够不够。
nginx和MySQL加上加google-perftools,耗内存增加性能。
 楼主| 发表于 2012-1-20 21:21:12 | 显示全部楼层
Kvm 发表于 2012-1-20 21:19
nginx重来不处理动态

你的意思是搞成AP?
 楼主| 发表于 2012-1-20 21:22:24 | 显示全部楼层
Kvm 发表于 2012-1-20 21:19
nginx重来不处理动态

我原来弄了个brust的便宜VPS, 装NGINX还能跑,AP直接卡死
 楼主| 发表于 2012-1-20 21:27:37 | 显示全部楼层
wdlth 发表于 2012-1-20 21:20
MySQL用innoDB,用优化工具看参数够不够。
nginx和MySQL加上加google-perftools,耗内存增加性能。 ...

我再去看看innoDB的参数,这个用哪个工具可以看呢? google-perftools?
发表于 2012-1-20 21:32:04 | 显示全部楼层
leozhang 发表于 2012-1-20 21:27
我再去看看innoDB的参数,这个用哪个工具可以看呢? google-perftools?

http://www.day32.com/MySQL/tuning-primer.sh
这个工具可以检测你的MySQL参数设置是否恰当,这类工具很多。
google-perftools是编译软件时加进去的。
 楼主| 发表于 2012-1-20 21:44:07 | 显示全部楼层
wdlth 发表于 2012-1-20 21:32
http://www.day32.com/MySQL/tuning-primer.sh
这个工具可以检测你的MySQL参数设置是否恰当,这类工具很 ...

弄下来了,不知道怎么用呢....小白了...
发表于 2012-1-20 21:47:13 | 显示全部楼层
leozhang 发表于 2012-1-20 21:44
弄下来了,不知道怎么用呢....小白了...

搜 tuning-primer.sh ,就有很多资料。
不过还是看官方文档认清参数比较好。
 楼主| 发表于 2012-1-25 09:51:14 | 显示全部楼层
是不是应该找个高手来优化下呢
发表于 2012-1-25 09:59:10 | 显示全部楼层
阿帕奇处理动态 ngx处理静态
 楼主| 发表于 2012-1-25 10:13:54 | 显示全部楼层
wdlth 发表于 2012-1-20 21:47
搜 tuning-primer.sh ,就有很多资料。
不过还是看官方文档认清参数比较好。

   -- MYSQL PERFORMANCE TUNING PRIMER --
             - By: Matthew Montgomery -

MySQL Version 5.0.84 i686

Uptime = 0 days 0 hrs 5 min 28 sec
Avg. qps = 77
Total Questions = 25387
Threads Connected = 1

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 0 out of 25408 that take longer than 10 sec. to complete
Your long_query_time seems to be fine

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html

WORKER THREADS
Current thread_cache_size = 8
Current threads_cached = 4
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 400
Current threads_connected = 2
Historic max_used_connections = 6
The number of used connections is 1% of the configured maximum.
You are using less than 10% of your configured max_connections.
Lowering max_connections could help to avoid an over-allocation of memory
See "MEMORY USAGE" section to make sure you are not over-allocating

INNODB STATUS
Current InnoDB index space = 132 M
Current InnoDB data space = 232 M
Current InnoDB buffer pool free = 91 %
Current innodb_buffer_pool_size = 640 M
Depending on how much space your innodb indexes take up it may be safe
to increase this value to up to 2 / 3 of total system memory

MEMORY USAGE
Max Memory Ever Allocated : 854 M
Configured Max Per-thread Buffers : 4.02 G
Configured Max Global Buffers : 792 M
Configured Max Memory Limit : 4.80 G
Physical Memory : 750 M

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 2 M
Current key_buffer_size = 7 M
Key cache miss rate is 1 : 134
Key buffer free ratio = 88 %
Your key_buffer_size seems to be fine

QUERY CACHE
Query cache is enabled
Current query_cache_size = 128 M
Current query_cache_used = 9 M
Current query_cache_limit = 1 M
Current Query cache Memory fill ratio = 7.38 %
Current query_cache_min_res_unit = 4 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 4 M
Current read_rnd_buffer_size = 2 M
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 132.00 K
You have had 0 queries where a join could not use an index properly
Your joins seem to be using indexes properly

OPEN FILES LIMIT
Current open_files_limit = 2000 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 64 tables
You have a total of 447 tables
You have 64 open tables.
Current table_cache hit rate is 3%
, while 100% of your table cache is in use
You should probably increase your table_cache

TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 128 M
Of 3036 temp tables, 6% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 4 M
Current table scan ratio = 6 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 0 : 26776
Your table locking seems to be fine
  tuning-primer的结果出来了,4核的XEN, 768内存.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-4 05:12 , Processed in 0.091881 second(s), 5 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表