- 浏览: 25859 次
- 来自: ...
文章分类
最新评论
-
lianj_lee:
好像以前碰到过类似问题。
word引起mysql数据库崩溃? -
robbin:
不合理的MySQL参数太多了......text字段引起MyS ...
word引起mysql数据库崩溃? -
schweigen:
innodb_flush_log_at_trx_commit ...
word引起mysql数据库崩溃? -
wangzy:
innodb_buffer_pool_size = 4G 这 ...
word引起mysql数据库崩溃? -
dreamlakyxy:
这个服务器只跑mysql,没有其他的应用。
现在每天动态查询 ...
word引起mysql数据库崩溃?
word引起mysql数据库崩溃?
系统运行1年多了,现在平台基本实时是2000人在线。
但是在运行过程中,系统莫名的崩溃了几次。
第一次:
gentoo linux +mysql 5.0+innodb 引擎 ,崩溃症状:mysql的错误日志增加非常迅猛,一会把硬盘空间就沾满了(320G),同时整个mysql服务器访问很慢或拒绝访问。后来经过分析,发现是公告表出问题和笔记表出了问题,这两个表的数据库量不大,但是都一个功能特点,有一个content(text 字段)。使用的fckeditor富文本编辑框,用户经常通过拷贝word文档。后来把这连个表改为myisam引擎再也没有出现问题。
第二次:
gentoo linux +mysql 5.0+innodb 引擎 ,崩溃症状和第一次一样,一查问题,是一个新功能引擎的,而这个新功能涉及的一个表字段中,也是用到的富文本编辑框。后来把这连个表改为myisam引擎再也没有出现问题。
分析问题原因:
1) 基本可以确认 是 linux + msyql5 innodb引擎 + word通过fckeditor富文本编辑框引起的
2) 以前在 window2003+mysql5.0中,从来没有出现这个问题?
3) 改成myisam就不会出现这个问题了,但是就是不能使用事务了。
4) 基本可以排除是数据量大的问题。我们有两个单表,记录都在1800万行以上,innodb引擎,占用OS空间达到5G,也从来没有崩溃过。
5) 问题本地很难重现。自己通过word粘贴拷贝,保持到数据库text字段,怎么测试都没有问题。
不值得大家出现过这个问题没有? 问题是:真的是word中的不可见字符引擎mysql崩溃的吗?
肯定不是word引起
把你的my.cnf贴出来,
一旦使用到swap, mysql性能就会急剧下降,不排除crash的可能.
你的平台8G内存, swap还能使用2G? 都运行了哪些应用? 能够分配给mysql的又是多少?
如果fckeditor中有没处理的特殊字符,那fckeditor本身就先出问题了(页面脚本错误),等不到提交了,跟word已经没关系了。
能从日志中看出涉及text字段的操作频率么?如果很频繁的情况下都没有出问题,那就检查一下出问题时的那个操作的情况——字符长度,操作内容,有没有其它操作之类的。
看现象应该是MySQL在不断的重试某个操作。
还有,你们用没用数据库集群?
哦,,你是因为日志导致硬盘爆满?
那错误日志里都是些什么啊??
wk。。这个也太弱了吧。。。
但是在运行过程中,系统莫名的崩溃了几次。
第一次:
gentoo linux +mysql 5.0+innodb 引擎 ,崩溃症状:mysql的错误日志增加非常迅猛,一会把硬盘空间就沾满了(320G),同时整个mysql服务器访问很慢或拒绝访问。后来经过分析,发现是公告表出问题和笔记表出了问题,这两个表的数据库量不大,但是都一个功能特点,有一个content(text 字段)。使用的fckeditor富文本编辑框,用户经常通过拷贝word文档。后来把这连个表改为myisam引擎再也没有出现问题。
第二次:
gentoo linux +mysql 5.0+innodb 引擎 ,崩溃症状和第一次一样,一查问题,是一个新功能引擎的,而这个新功能涉及的一个表字段中,也是用到的富文本编辑框。后来把这连个表改为myisam引擎再也没有出现问题。
分析问题原因:
1) 基本可以确认 是 linux + msyql5 innodb引擎 + word通过fckeditor富文本编辑框引起的
2) 以前在 window2003+mysql5.0中,从来没有出现这个问题?
3) 改成myisam就不会出现这个问题了,但是就是不能使用事务了。
4) 基本可以排除是数据量大的问题。我们有两个单表,记录都在1800万行以上,innodb引擎,占用OS空间达到5G,也从来没有崩溃过。
5) 问题本地很难重现。自己通过word粘贴拷贝,保持到数据库text字段,怎么测试都没有问题。
不值得大家出现过这个问题没有? 问题是:真的是word中的不可见字符引擎mysql崩溃的吗?
评论
22 楼
lianj_lee
2009-09-06
好像以前碰到过类似问题。
21 楼
robbin
2009-09-05
不合理的MySQL参数太多了......
text字段引起MySQL崩溃很可能是因为你的表设计不合理造成的。InnoDB会缓存数据到buffer pool里面,如果你批量查询大字段很可能造成buffer pool换页出问题或者内存不足。而MyISAM只缓存index,不缓存数据,所以你改用MyISAM,反而没事。
text字段引起MySQL崩溃很可能是因为你的表设计不合理造成的。InnoDB会缓存数据到buffer pool里面,如果你批量查询大字段很可能造成buffer pool换页出问题或者内存不足。而MyISAM只缓存index,不缓存数据,所以你改用MyISAM,反而没事。
20 楼
schweigen
2009-06-16
innodb_flush_log_at_trx_commit = 1
改成2 更合适,1 会极大的降低事务效率
改成2 更合适,1 会极大的降低事务效率
19 楼
wangzy
2009-06-08
innodb_buffer_pool_size = 4G
这个太大了
这个太大了
18 楼
dreamlakyxy
2009-06-08
这个服务器只跑mysql,没有其他的应用。
现在每天动态查询量在1800万条,是什么水平?
现在每天动态查询量在1800万条,是什么水平?
17 楼
dreamlakyxy
2009-06-08
my.cnf配置如下:
#BEGIN CONFIG INFO #DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries #TYPE: SYSTEM #END CONFIG INFO # # This is a MySQL example config file for systems with 4GB of memory # running mostly MySQL using InnoDB only tables and performing complex # queries with few connections. # # You can copy this file to /etc/my.cnf to set global options, # mysql-data-dir/my.cnf to set server-specific options # (/db/mysql/var for this installation) or to # ~/.my.cnf to set user-specific options. # # In this file, you can use all long options that a program supports. # If you want to know which options a program supports, run the program # with the "--help" option. # # More detailed information about the individual options can also be # found in the manual. # # # The following options will be read by MySQL client applications. # Note that only client applications shipped by MySQL are guaranteed # to read this section. If you want your own MySQL client program to # honor these values, you need to specify it as an option during the # MySQL client library initialization. # [client] #password = [your_password] port = 3306 socket = /tmp/mysql.sock # *** Application-specific options follow here *** # # The MySQL server # [mysqld] # generic configuration options port = 3306 socket = /tmp/mysql.sock #log-error = /dev/null #large_pages # back_log is the number of connections the operating system can keep in # the listen queue, before the MySQL connection manager thread has # processed them. If you have a very high connection rate and experience # "connection refused" errors, you might need to increase this value. # Check your OS documentation for the maximum value of this parameter. # Attempting to set back_log higher than your operating system limit # will have no effect. back_log = 64 # Don't listen on a TCP/IP port at all. This can be a security # enhancement, if all processes that need to connect to mysqld run # on the same host. All interaction with mysqld must be made via Unix # sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (via the "enable-named-pipe" option) will render mysqld useless! #skip-networking # The maximum amount of concurrent sessions the MySQL server will # allow. One of these connections will be reserved for a user with # SUPER privileges to allow the administrator to login even if the # connection limit has been reached. max_connections = 2000 # Maximum amount of errors allowed per host. If this limit is reached, # the host will be blocked from connecting to the MySQL server until # "FLUSH HOSTS" has been run or the server was restarted. Invalid # passwords and other errors during the connect phase result in # increasing this value. See the "Aborted_connects" status variable for # global counter. max_connect_errors = 10 # The number of open tables for all threads. Increasing this value # increases the number of file descriptors that mysqld requires. # Therefore you have to make sure to set the amount of open files # allowed to at least 4096 in the variable "open-files-limit" in # section [mysqld_safe] table_cache = 2048 # Enable external file level locking. Enabled file locking will have a # negative impact on performance, so only use it in case you have # multiple database instances running on the same files (note some # restrictions still apply!) or if you use other software relying on # locking MyISAM tables on file level. #external-locking # The maximum size of a query packet the server can handle as well as # maximum query size server can process (Important when working with # large BLOBs). enlarged dynamically, for each connection. max_allowed_packet = 128M # The size of the cache to hold the SQL statements for the binary log # during a transaction. If you often use big, multi-statement # transactions you can increase this value to get more performance. All # statements from transactions are buffered in the binary log cache and # are being written to the binary log at once after the COMMIT. If the # transaction is larger than this value, temporary file on disk is used # instead. This buffer is allocated per connection on first update # statement in transaction binlog_cache_size = 8M # Maximum allowed size for a single HEAP (in memory) table. This option # is a protection against the accidential creation of a very large HEAP # table which could otherwise use up all memory resources. max_heap_table_size = 32M # Sort buffer is used to perform sorts for some ORDER BY and GROUP BY # queries. If sorted data does not fit into the sort buffer, a disk # based merge sort is used instead - See the "Sort_merge_passes" # status variable. Allocated per thread if sort is needed. sort_buffer_size = 2M # This buffer is used for the optimization of full JOINs (JOINs without # indexes). Such JOINs are very bad for performance in most cases # anyway, but setting this variable to a large value reduces the # performance impact. See the "Select_full_join" status variable for a # count of full JOINs. Allocated per thread if full join is found join_buffer_size = 2M # How many threads we should keep in a cache for reuse. When a client # disconnects, the client's threads are put in the cache if there aren't # more than thread_cache_size threads from before. This greatly reduces # the amount of thread creations needed if you have a lot of new # connections. (Normally this doesn't give a notable performance # improvement if you have a good thread implementation.) thread_cache_size = 16 # This permits the application to give the threads system a hint for the # desired number of threads that should be run at the same time. This # value only makes sense on systems that support the thread_concurrency() # function call (Sun Solaris, for example). # You should try [number of CPUs]*(2..4) for thread_concurrency thread_concurrency = 16 # Query cache is used to cache SELECT results and later return them # without actual executing the same query once again. Having the query # cache enabled may result in significant speed improvements, if your # have a lot of identical queries and rarely changing tables. See the # "Qcache_lowmem_prunes" status variable to check if the current value # is high enough for your load. # Note: In case your tables change very often or if your queries are # textually different every time, the query cache may result in a # slowdown instead of a performance improvement. query_cache_size = 32M # Only cache result sets that are smaller than this limit. This is to # protect the query cache of a very large result set overwriting all # other query results. query_cache_limit = 8M # Minimum word length to be indexed by the full text search index. # You might wish to decrease it if you need to search for shorter words. # Note that you need to rebuild your FULLTEXT index, after you have # modified this value. ft_min_word_len = 4 # If your system supports the memlock() function call, you might want to # enable this option while running MySQL to keep it locked in memory and # to avoid potential swapping out in case of high memory pressure. Good # for performance. #memlock # Table type which is used by default when creating new tables, if not # specified differently during the CREATE TABLE statement. #default_table_type = InnoDB default_table_type = MyISAM # Thread stack size to use. This amount of memory is always reserved at # connection time. MySQL itself usually needs no more than 64K of # memory, while if you use your own stack hungry UDF functions or your # OS requires more stack for some operations, you might need to set this # to a higher value. thread_stack = 192K # Set the default transaction isolation level. Levels available are: # READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, SERIALIZABLE transaction_isolation = REPEATABLE-READ # Maximum size for internal (in-memory) temporary tables. If a table # grows larger than this value, it is automatically converted to disk # based table This limitation is for a single table. There can be many # of them. tmp_table_size = 32M # Enable binary logging. This is required for acting as a MASTER in a # replication configuration. You also need the binary log if you need # the ability to do point in time recovery from your latest backup. log-bin=mysql-bin # If you're using replication with chained slaves (A->B->C), you need to # enable this option on server B. It enables logging of updates done by # the slave thread into the slave's binary log. #log_slave_updates # Enable the full query log. Every query (even ones with incorrect # syntax) that the server receives will be logged. This is useful for # debugging, it is usually disabled in production use. #log # Print warnings to the error log file. If you have any problem with # MySQL you should enable logging of warnings and examine the error log # for possible explanations. log_warnings # Log slow queries. Slow queries are queries which take more than the # amount of time defined in "long_query_time" or which do not use # indexes well, if log_long_format is enabled. It is normally good idea # to have this turned on if you frequently add new queries to the # system. log_slow_queries # All queries taking more than this amount of time (in seconds) will be # trated as slow. Do not use "1" as a value here, as this will result in # even very fast queries being logged from time to time (as MySQL # currently measures time with second accuracy only). #long_query_time = 2 # Log more information in the slow query log. Normally it is good to # have this turned on. This will enable logging of queries that are not # using indexes in addition to long running queries. #log_long_format # The directory used by MySQL for storing temporary files. For example, # it is used to perform disk based large sorts, as well as for internal # and explicit temporary tables. It might be good to put it on a # swapfs/tmpfs filesystem, if you do not create very large temporary # files. Alternatively you can put it on dedicated disk. You can # specify multiple paths here by separating them by ";" - they will then # be used in a round-robin fashion. tmpdir = /db/mysql/tmp # *** Replication related settings # Unique server identification number between 1 and 2^32-1. This value # is required for both master and slave hosts. It defaults to 1 if # "master-host" is not set, but will MySQL will not function as a master # if it is omitted. server-id = 1 # Replication Slave (comment out master section to use this) # # To configure this host as a replication slave, you can choose between # two methods : # # 1) Use the CHANGE MASTER TO command (fully described in our manual) - # the syntax is: # # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>, # MASTER_USER=<user>, MASTER_PASSWORD=<password> ; # # where you replace <host>, <user>, <password> by quoted strings and # <port> by the master's port number (3306 by default). # # Example: # # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306, # MASTER_USER='joe', MASTER_PASSWORD='secret'; # # OR # # 2) Set the variables below. However, in case you choose this method, then # start replication for the first time (even unsuccessfully, for example # if you mistyped the password in master-password and the slave fails to # connect), the slave will create a master.info file, and any later # changes in this file to the variable values below will be ignored and # overridden by the content of the master.info file, unless you shutdown # the slave server, delete master.info and restart the slaver server. # For that reason, you may want to leave the lines below untouched # (commented) and instead use CHANGE MASTER TO (see above) # # required unique id between 2 and 2^32 - 1 # (and different from the master) # defaults to 2 if master-host is set # but will not function as a slave if omitted #server-id = 2 # # The replication master for this slave - required #master-host = <hostname> # # The username the slave will use for authentication when connecting # to the master - required #master-user = <username> # # The password the slave will authenticate with when connecting to # the master - required #master-password = <password> # # The port the master is listening on. # optional - defaults to 3306 #master-port = <port> # Make the slave read-only. Only users with the SUPER privilege and the # replication slave thread will be able to modify data on it. You can # use this to ensure that no applications will accidently modify data on # the slave instead of the master #read_only #*** MyISAM Specific options # Size of the Key Buffer, used to cache index blocks for MyISAM tables. # Do not set it larger than 30% of your available memory, as some memory # is also required by the OS to cache rows. Even if you're not using # MyISAM tables, you should still set it to 8-64M as it will also be # used for internal temporary disk tables. key_buffer_size = 32M # Size of the buffer used for doing full table scans of MyISAM tables. # Allocated per thread, if a full scan is needed. read_buffer_size = 2M # When reading rows in sorted order after a sort, the rows are read # through this buffer to avoid disk seeks. You can improve ORDER BY # performance a lot, if set this to a high value. # Allocated per thread, when needed. read_rnd_buffer_size = 4M # MyISAM uses special tree-like cache to make bulk inserts (that is, # INSERT ... SELECT, INSERT ... VALUES (...), (...), ..., and LOAD DATA # INFILE) faster. This variable limits the size of the cache tree in # bytes per thread. Setting it to 0 will disable this optimisation. Do # not set it larger than "key_buffer_size" for optimal performance. # This buffer is allocated when a bulk insert is detected. bulk_insert_buffer_size = 8M # This buffer is allocated when MySQL needs to rebuild the index in # REPAIR, OPTIMIZE, ALTER table statements as well as in LOAD DATA INFILE # into an empty table. It is allocated per thread so be careful with # large settings. myisam_sort_buffer_size = 1M # The maximum size of the temporary file MySQL is allowed to use while # recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE. # If the file-size would be bigger than this, the index will be created # through the key cache (which is slower). myisam_max_sort_file_size = 10G # If the temporary file used for fast index creation would be bigger # than using the key cache by the amount specified here, then prefer the # key cache method. This is mainly used to force long character keys in # large tables to use the slower key cache method to create the index. myisam_max_extra_sort_file_size = 10G # If a table has more than one index, MyISAM can use more than one # thread to repair them by sorting in parallel. This makes sense if you # have multiple CPUs and plenty of memory. myisam_repair_threads = 4 # Automatically check and repair not properly closed MyISAM tables. myisam_recover # Disable Federated by default skip-federated # *** BDB Specific options *** # Use this option if you run a MySQL server with BDB support enabled but # you do not plan to use it. This will save memory and may speed up some # things. skip-bdb # *** INNODB Specific options *** # Use this option if you have a MySQL server with InnoDB support enabled # but you do not plan to use it. This will save memory and disk space # and speed up some things. #skip-innodb # Additional memory pool that is used by InnoDB to store metadata # information. If InnoDB requires more memory for this purpose it will # start to allocate it from the OS. As this is fast enough on most # recent operating systems, you normally do not need to change this # value. SHOW INNODB STATUS will display the current amount used. innodb_additional_mem_pool_size = 16M # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and # row data. The bigger you set this the less disk I/O is needed to # access data in tables. On a dedicated database server you may set this # parameter up to 80% of the machine physical memory size. Do not set it # too large, though, because competition of the physical memory may # cause paging in the operating system. Note that on 32bit systems you # might be limited to 2-3.5G of user level memory per process, so do not # set it too high. innodb_buffer_pool_size = 4G # InnoDB stores data in one or more data files forming the tablespace. # If you have a single logical drive for your data, a single # autoextending file would be good enough. In other cases, a single file # per device is often a good choice. You can configure InnoDB to use raw # disk partitions as well - please refer to the manual for more info # about this. innodb_data_file_path = ibdata1:64M:autoextend # Set this option if you would like the InnoDB tablespace files to be # stored in another location. By default this is the MySQL datadir. #innodb_data_home_dir = <directory> # Number of IO threads to use for async IO operations. This value is # hardcoded to 4 on Unix, but on Windows disk I/O may benefit from a # larger number. innodb_file_io_threads = 8 # If you run into InnoDB tablespace corruption, setting this to a nonzero # value will likely help you to dump your tables. Start from value 1 and # increase it until you're able to dump the table successfully. # innodb_force_recovery=1 # Number of threads allowed inside the InnoDB kernel. The optimal value # depends highly on the application, hardware as well as the OS # scheduler properties. A too high value may lead to thread thrashing. innodb_thread_concurrency = 8 # If set to 1, InnoDB will flush (fsync) the transaction logs to the # disk at each commit, which offers full ACID behavior. If you are # willing to compromise this safety, and you are running small # transactions, you may set this to 0 or 2 to reduce disk I/O to the # logs. Value 0 means that the log is only written to the log file and # the log file flushed to disk approximately once per second. Value 2 # means the log is written to the log file at each commit, but the log # file is only flushed to disk approximately once per second. innodb_flush_log_at_trx_commit = 1 # Speed up InnoDB shutdown. This will disable InnoDB to do a full purge # and insert buffer merge on shutdown. It may increase shutdown time a # lot, but InnoDB will have to do it on the next startup instead. #innodb_fast_shutdown # The size of the buffer InnoDB uses for buffering log data. As soon as # it is full, InnoDB will have to flush it to disk. As it is flushed # once per second anyway, it does not make sense to have it very large # (even with long transactions). innodb_log_buffer_size = 32M # Size of each log file in a log group. You should set the combined size # of log files to about 25%-100% of your buffer pool size to avoid # unneeded buffer pool flush activity on log file overwrite. However, # note that a larger logfile size will increase the time needed for the # recovery process. innodb_log_file_size = 128M # Total number of files in the log group. A value of 2-3 is usually good # enough. innodb_log_files_in_group = 16 # Location of the InnoDB log files. Default is the MySQL datadir. You # may wish to point it to a dedicated hard drive or a RAID1 volume for # improved performance #innodb_log_group_home_dir # Maximum allowed percentage of dirty pages in the InnoDB buffer pool. # If it is reached, InnoDB will start flushing them out agressively to # not run out of clean pages at all. This is a soft limit, not # guaranteed to be held. innodb_max_dirty_pages_pct = 2 # The flush method InnoDB will use for Log. The tablespace always uses # doublewrite flush logic. The default value is "fdatasync", another # option is "O_DSYNC". #innodb_flush_method=fdatasync innodb_flush_method=O_DIRECT # How long an InnoDB transaction should wait for a lock to be granted # before being rolled back. InnoDB automatically detects transaction # deadlocks in its own lock table and rolls back the transaction. If you # use the LOCK TABLES command, or other transaction-safe storage engines # than InnoDB in the same transaction, then a deadlock may arise which # InnoDB cannot notice. In cases like this the timeout is useful to # resolve the situation. innodb_lock_wait_timeout = 120 innodb_file_per_table [mysqldump] # Do not buffer the whole result set in memory before writing it to # file. Required for dumping very large tables quick max_allowed_packet = 128M [mysql] no-auto-rehash # Only allow UPDATEs and DELETEs that use keys. #safe-updates [isamchk] key_buffer = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [myisamchk] key_buffer = 512M sort_buffer_size = 512M read_buffer = 8M write_buffer = 8M [mysqlhotcopy] interactive-timeout [mysqld_safe] # Increase the amount of open files allowed per process. Warning: Make # sure you have set the global system limit high enough! The high value # is required for a large number of opened tables open-files-limit = 65535
16 楼
weishuwei
2009-06-08
应该是事务方面的问题,个人认为innodb在内存里保存了一份数据操作前的快照,当事务提交失败时进行回滚过程中,io操作和内存占用都比较厉害,造成数据库崩溃
15 楼
andyao
2009-06-08
dreamlakyxy 写道
但是按理说不应该引擎数据库崩溃吧。
现在怀疑是 双缓存问题。
服务器物理内存是8G
服务器现在top如下:
Mem: 8171048k total, 7537784k used, 633264k free, 140844k buffers
Swap: 4008208k total, 259612k used, 3748596k free, 1975508k cached
在下午16点服务器压力大的情况下,swap一般会用到2G左右。
现在怀疑是 双缓存问题。
服务器物理内存是8G
服务器现在top如下:
Mem: 8171048k total, 7537784k used, 633264k free, 140844k buffers
Swap: 4008208k total, 259612k used, 3748596k free, 1975508k cached
在下午16点服务器压力大的情况下,swap一般会用到2G左右。
肯定不是word引起
把你的my.cnf贴出来,
一旦使用到swap, mysql性能就会急剧下降,不排除crash的可能.
你的平台8G内存, swap还能使用2G? 都运行了哪些应用? 能够分配给mysql的又是多少?
14 楼
fuzao
2009-06-08
也这么用过,出的问题就是字段长度不够.我记得字段类型改成longtext之后,一直运行稳定,redhat+mysql
13 楼
shrpcn
2009-06-08
可能是多表连接查询,而这些表含text字段
12 楼
zookie
2009-06-07
真疯狂,没看太明白
11 楼
gqf2008
2009-06-05
问题比较诡异,建议你去CU的mysql板块去问问
10 楼
pipilu
2009-06-05
dreamlakyxy 写道
昨天早上,服务器又崩溃了一次。经检查崩溃的表也是含有一个text类型的字段。但是这个字段是不允许富文本编辑框的。所以基本排除word问题。
现在怀疑问题存在的原因就是text类型字段问题,不值得是不是又有db要做大量的select,update操作,导致磁盘碎片过多,在保存text字段时,瞬间内存不足,要使用交换分区引起的错误。
因为我们的平台内存8G,交换分区每次都能用到2G,感觉交换分区用的特别多。但是磁盘的io占用并不高!
现在怀疑问题存在的原因就是text类型字段问题,不值得是不是又有db要做大量的select,update操作,导致磁盘碎片过多,在保存text字段时,瞬间内存不足,要使用交换分区引起的错误。
因为我们的平台内存8G,交换分区每次都能用到2G,感觉交换分区用的特别多。但是磁盘的io占用并不高!
如果fckeditor中有没处理的特殊字符,那fckeditor本身就先出问题了(页面脚本错误),等不到提交了,跟word已经没关系了。
能从日志中看出涉及text字段的操作频率么?如果很频繁的情况下都没有出问题,那就检查一下出问题时的那个操作的情况——字符长度,操作内容,有没有其它操作之类的。
看现象应该是MySQL在不断的重试某个操作。
还有,你们用没用数据库集群?
9 楼
whaosoft
2009-06-05
估计是mysql的事 mysql没事 老崩~~
8 楼
dreamlakyxy
2009-06-05
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 170320 1779856 16624 797548 0 0 65 253 3 4 4 1 94 0
0 0 170320 1779972 16792 797424 0 0 148 36 3445 1279 3 1 96 0
0 0 170320 1780220 16832 797576 0 0 4 116 4125 2382 0 1 99 0
0 0 170320 1780344 16832 797600 0 0 64 0 4132 2397 5 1 93 0
0 0 170320 1780200 16848 797588 0 0 128 40 3970 2368 2 1 97 0
0 0 170320 1780936 16880 797592 0 0 64 124 4197 2134 3 1 97 0
0 0 170320 1781476 16904 797592 0 0 192 88 4766 2520 5 1 93 0
1 0 170320 1781744 16904 797612 0 0 0 0 4507 2166 4 1 96 0
0 0 170320 1781476 16928 797596 0 0 0 72 4334 1460 2 0 98 0
1 0 170320 1781704 16928 797616 0 0 0 0 3546 992 0 0 99 0
0 0 170320 1781364 16984 797572 0 0 4 24692 4395 2597 4 1 94 1
0 0 170320 1781000 16984 797620 0 0 0 0 3592 1165 0 1 100 0
0 0 170320 1779856 16624 797548 0 0 65 253 3 4 4 1 94 0
0 0 170320 1779972 16792 797424 0 0 148 36 3445 1279 3 1 96 0
0 0 170320 1780220 16832 797576 0 0 4 116 4125 2382 0 1 99 0
0 0 170320 1780344 16832 797600 0 0 64 0 4132 2397 5 1 93 0
0 0 170320 1780200 16848 797588 0 0 128 40 3970 2368 2 1 97 0
0 0 170320 1780936 16880 797592 0 0 64 124 4197 2134 3 1 97 0
0 0 170320 1781476 16904 797592 0 0 192 88 4766 2520 5 1 93 0
1 0 170320 1781744 16904 797612 0 0 0 0 4507 2166 4 1 96 0
0 0 170320 1781476 16928 797596 0 0 0 72 4334 1460 2 0 98 0
1 0 170320 1781704 16928 797616 0 0 0 0 3546 992 0 0 99 0
0 0 170320 1781364 16984 797572 0 0 4 24692 4395 2597 4 1 94 1
0 0 170320 1781000 16984 797620 0 0 0 0 3592 1165 0 1 100 0
7 楼
dreamlakyxy
2009-06-05
刚才又查了一下,
“此 MySQL 服务器已经运行了 0 天 16 小时,17 分 17 秒,启动时间为 2009 年 06 月 05 日 00:44。”
“查询统计:自从启动后,服务器共收到了 11,625,480 次查询。”
动态查询在16个小时之内竟然达到了1100万了.........
“此 MySQL 服务器已经运行了 0 天 16 小时,17 分 17 秒,启动时间为 2009 年 06 月 05 日 00:44。”
“查询统计:自从启动后,服务器共收到了 11,625,480 次查询。”
动态查询在16个小时之内竟然达到了1100万了.........
6 楼
dreamlakyxy
2009-06-05
昨天早上,服务器又崩溃了一次。经检查崩溃的表也是含有一个text类型的字段。但是这个字段是不允许富文本编辑框的。所以基本排除word问题。
现在怀疑问题存在的原因就是text类型字段问题,不值得是不是又有db要做大量的select,update操作,导致磁盘碎片过多,在保存text字段时,瞬间内存不足,要使用交换分区引起的错误。
因为我们的平台内存8G,交换分区每次都能用到2G,感觉交换分区用的特别多。但是磁盘的io占用并不高!
现在怀疑问题存在的原因就是text类型字段问题,不值得是不是又有db要做大量的select,update操作,导致磁盘碎片过多,在保存text字段时,瞬间内存不足,要使用交换分区引起的错误。
因为我们的平台内存8G,交换分区每次都能用到2G,感觉交换分区用的特别多。但是磁盘的io占用并不高!
5 楼
dreamlakyxy
2009-06-05
错误和 http://bugs.mysql.com/bug.php?id=38901 描述的类似。
google了一下,网上也有很多人有这个错误,但是没有好的解决办法
080815 12:05:52 InnoDB: Error: trying to access tablespace 120729648 page no. 942485559, InnoDB: but the tablespace does not exist or is just being dropped. 080815 12:05:52 InnoDB: Error: trying to access tablespace 120729648 page no. 942485559, InnoDB: but the tablespace does not exist or is just being dropped.
google了一下,网上也有很多人有这个错误,但是没有好的解决办法
4 楼
willko
2009-06-01
dreamlakyxy 写道
但是按理说不应该引擎数据库崩溃吧。
现在怀疑是 双缓存问题。
服务器物理内存是8G
服务器现在top如下:
Mem: 8171048k total, 7537784k used, 633264k free, 140844k buffers
Swap: 4008208k total, 259612k used, 3748596k free, 1975508k cached
在下午16点服务器压力大的情况下,swap一般会用到2G左右。
现在怀疑是 双缓存问题。
服务器物理内存是8G
服务器现在top如下:
Mem: 8171048k total, 7537784k used, 633264k free, 140844k buffers
Swap: 4008208k total, 259612k used, 3748596k free, 1975508k cached
在下午16点服务器压力大的情况下,swap一般会用到2G左右。
哦,,你是因为日志导致硬盘爆满?
那错误日志里都是些什么啊??
3 楼
mikeandmore
2009-06-01
willko 写道
这个和innodb的表空间有关系
当表空间不足时,会增长(配置的),然后当你把记录删除以后,实际上表空间是不会减少的。。
也就是说有增无减。。。。
当表空间不足时,会增长(配置的),然后当你把记录删除以后,实际上表空间是不会减少的。。
也就是说有增无减。。。。
wk。。这个也太弱了吧。。。
相关推荐
ft_min_word_len = 4 # 分词词汇最小长度,默认4 transaction_isolation = REPEATABLE-READ # MySQL支持4种事务隔离级别,他们分别是: # READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, SERIALIZABLE. # 如...
了解如何使用数据库管理系统(如MySQL、Oracle、SQL Server等)进行日常维护和管理。 5. **安全性与权限管理**:考生需要熟悉用户权限的分配,如GRANT和REVOKE命令,以及角色的概念。同时,理解数据库加密、审计和...
【小型超市信息管理系统】是一个基于Java编程语言和MySQL数据库的可视化应用,主要针对小型超市的日常运营进行数据管理和业务流程的自动化。这个系统可以作为学习和实践Java编程以及数据库管理系统的理想课程设计...
从标签"office Control"我们可以推断,它可能涉及到在计算机环境中对Microsoft Office应用程序(如Word、Excel、PowerPoint)的集成、控制或者自动化处理。这种控制可能包括批量处理文档、数据提取、格式转换、宏...
1. 数据源连接:首先,我们需要能够连接到数据源,这可能是一个本地数据库(如MySQL、SQL Server或Access),也可能是一个云数据库(如Oracle、PostgreSQL)。易语言提供了数据库类库,支持ODBC(Open Database ...
7.优化mysql数据库管理插件;8.文章列表页及详情页进行了优化;9.模板加载将.hst文件设为优先,.html次之;10.增加附件预览功能,暂仅支持不扣费且为Word、Excel、PowerPoint、PDF及txt形式的文件;11.增加应用数据...
4. MySQL数据库恢复:使用`mysql`命令可以恢复数据库,选项C是正确的。 5. C语言程序逻辑:此题涉及位运算和逻辑运算。`a=d/10%9`计算结果为2,`b=a&&(1)`等价于`b=2&&1`,结果为1。所以输出结果是2,1,选项B是...
3. **分布式数据库**:主从分离、集群化,提升读写能力,例如MySQL主从、MongoDB集群。 4. **NoSQL缓存**:Redis、MongoDB、Memcached主从集群,加速数据访问。 5. **CDN服务**:分发静态文件,减轻服务器压力。 **...
这些题目涵盖了计算机基础知识,主要涉及JavaScript、数据库管理(MySQL)、操作系统、网络协议、编程语言(如Java、VBScript)、Web应用、数据结构(如二叉树)、操作系统概念、数据库系统结构、文件操作以及数据...
考虑采用主流的Web技术栈,如Java或Python作为后端语言,搭配MySQL或PostgreSQL作为数据库,前端则可以使用React或Vue.js等框架。 七、项目实施 1. 需求调研:深入了解餐饮行业的业务流程和痛点,收集用户需求。 2....
6. 数据库管理:在MySQL中,恢复数据库的命令是`mysql`。 7. 文档窗口切换:在Word中,使用“窗口”菜单可以在多个文档窗口间切换。 8. 表达式优先级:在数学表达式中,乘除先于加减,指数运算(如SIN)优先于乘除...
5. MySQL 中的 `NULL`:在MySQL中,`NULL` 表示未知或无值,它不是空字符串或数值0。 6. 电脑病毒的危害:电脑病毒主要影响电脑的正常运行,可能导致数据丢失、系统崩溃等问题。 7. Access 查询方法:Access 提供...
5. **数据库原生支持**:标签中的“数据库原生”可能意味着程序使用了Java的JDBC(Java Database Connectivity)API来与数据库交互,比如MySQL、SQLite或Oracle。JDBC允许Java程序连接到各种类型的数据库,执行SQL...
数据库集群(如MySQL的Master-Slave模式)是应对策略之一,但可能受限于特定DB类型。另一种方法是库表散列,根据业务逻辑和模块将数据分散到多个数据库或表,例如按用户ID散列用户表,以低成本提升性能并保持扩展性...
可能使用如SQL Server、MySQL或SQLite等数据库,通过ADO.NET或Entity Framework等库进行数据库连接、查询、插入、更新和删除操作。 3. **数据库设计**:设计一个适合资料管理的数据库模型,包括表结构(如资料表、...
- **MySQL数据库**:存储用户信息、商品数据等核心业务数据。 - **Redis缓存**:减轻数据库压力,提升系统响应速度。 #### 4.3 第三方服务集成 - **支付接口**:集成第三方支付平台API实现在线支付功能。 - **物流...
14. 数据库运行故障:数据库可能遇到的故障包括事务失败(Transaction failure)、系统崩溃(System crash)和磁盘故障(Disk failure)。 15. Java字节码文件扩展名:Java源代码编译后生成的字节码文件扩展名为....
计算机二级等级考试主要考察考生对计算机基础知识和基本技能的掌握程度,涉及JSP编程、Java语法、Word操作、数据结构、数据库设计、操作系统原理、网络基础等多个方面。 1. JSP(JavaServer Pages)是Java平台上...
5. **数据库设计**:员工管理系统可能使用MySQL、Oracle或SQL Server等关系型数据库。数据库设计包括表结构定义、数据类型选择、索引创建、关系设计等,以实现高效的数据存储和检索。 6. **异常处理**:在处理用户...
本文主要涉及计算机二级等级考试的相关知识点,包括汉字编码、数据类型、Word操作、SQL查询、进程与线程的区别、窗体属性、比较运算符、软件设计原则、Word表格操作、Windows操作、数据结构和数据库管理等内容。...