马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
×
用友OA 282sp1版本、32位数据库
服务器内存:2G
HTTP500错误,查看知识库说要更改my.ini文件。根据操作手册上说明,但是不了解应该怎么改。因为有些数值在服务器的my.ini里是没有的。如果有了解的请告诉我一下。
32位mysql数据库调优对于32位数据库的调整,主要是根据物理内存的大小,对mysql的配置文件my.ini文件做修改,my.ini文件在其服务器Mysql\Bin目录)下。此配置方法只针对282版本(mysql版本是5.0.41)。 my.ini内容如下所示。 1、物理内存为4G以上: ·················· [mysqld] #port为3306,如未做服务器分离,该值不能更改 port=3306 ·················· back_log=128 max_connections=125 wait_timeout=864000 interactive_timeout=864000 read_rnd_buffer_size=8M sort_buffer_size=2M read_buffer_size=2M join_buffer_size = 2M query_cache_size=96M query_cache_limit=8M query_alloc_block_size=128K query_prealloc_size=512K key_buffer_size=384M table_cache=512 tmp_table_size=384M thread_concurrency=8 thread_cache_size=125 myisam_max_sort_file_size=100G myisam_max_extra_sort_file_size=100G myisam_sort_buffer_size=32M max_allowed_packet=16M #log-queries-not-using-indexes #long_query_time=5 #log_slow_queries=slow.log #max_heap_table_size=512M myisam-recover=FORCE,BACKUP … [myisamchk] key_buffer = 384M sort_buffer_size = 384M read_buffer = 4M write_buffer = 4M … 2、物理内存为2G-4G范围: ·················· [mysqld] #port为3306,如未做服务器分离,该值不能更改 port=3306 … back_log=128 max_connections=125 wait_timeout=864000 interactive_timeout=864000 read_rnd_buffer_size=4M sort_buffer_size=1M read_buffer_size=1M join_buffer_size =1M query_cache_size=32M query_cache_limit=2M key_buffer_size=256M table_cache=512 tmp_table_size=128M thread_concurrency=4 thread_cache_size=80 myisam_max_sort_file_size=100G myisam_max_extra_sort_file_size=100G myisam_sort_buffer_size=8M max_allowed_packet=8M #log-queries-not-using-indexes #long_query_time=5 #log_slow_queries=slow.log #max_heap_table_size=512M myisam-recover=FORCE,BACKUP … [myisamchk] key_buffer = 256M sort_buffer_size = 384M read_buffer = 2M write_buffer = 2M 上述参数是我们32位版本针对2G或4G及其之上的标准配置,如无特殊说明,请不要随便调整。另外,由于282版本中对数据库连接算法有所调整,如果是以前老版本版本升级到282版本的客户朋友请注意:请将原有的数据库参数调整到上述相近的配置。 |