请教大神这是数据库问题还是代码问题

走一路_拈花瓣翩翩 2018-10-07 12:27:34
代码中利用的是线程池,多线程解析xml文件,把数据保存到数据库。
--------------
ROW OPERATIONS
--------------
0 queries inside InnoDB, 0 queries in queue
3 read views open inside InnoDB
Process ID=3408, Main thread ID=4508, state: sleeping
Number of rows inserted 20037484, updated 32888, deleted 5, read 1080534421
0.00 inserts/s, 0.00 updates/s, 0.00 deletes/s, 0.00 reads/s
----------------------------
----------------------------
END OF INNODB MONITOR OUTPUT
============================
InnoDB: ###### Diagnostic info printed to the standard error stream
2018-09-29T13:14:21.502160Z 0 [ERROR] [FATAL] InnoDB: Semaphore wait has lasted > 600 seconds. We intentionally crash the server because it appears to be hung.
2018-09-29 21:14:21 0x1028 InnoDB: Assertion failure in thread 4136 in file le ut0ut.cc lin line 942
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to to http://bugs.mysql.com.
In.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: B: http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html
Inn
InnoDB: about forcing recovery.
13:14:21 UTC - mysqld got exception 0x80000003 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=8388608
max_used_connections=103
max_threads=1000
thread_count=4
connection_count=4
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 3821459 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x0
Attempting backtrace.
You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
13f9b1f22 mysqld.exe!my_sigabrt_handler()[my_thr_init.c:449]
7fef7d8ee1d MSVCR120.dll!raise()
7fef7d94a14 MSVCR120.dll!abort()
13facd9d4 mysqld.exe!ut_dbg_assertion_failed()[ut0dbg.cc:67]
13facdbb1 mysqld.exe!ib::fatal::~fatal()[ut0ut.cc:942]
13fa15183 mysqld.exe!srv_error_monitor_thread()[srv0srv.cc:1738]
77aa652d kernel32.dll!BaseThreadInitThunk()
77bdc521 ntdll.dll!RtlUserThreadStart()
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
...全文
553 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
冲上云霄 、 2018-10-13
  • 打赏
  • 举报
回复
看异常信息连接出现了问题应该是代码或者配置有问题
鬼善 2018-10-13
  • 打赏
  • 举报
回复
不知所云
HeiBoyYang 2018-10-10
  • 打赏
  • 举报
回复
或者
具体过程:

mysql -u root -t;

set global innodb_adaptive_hash_index=off;

查看修改结果
SHOW GLOBAL VARIABLES LIKE 'innodb_ada%';
HeiBoyYang 2018-10-10
  • 打赏
  • 举报
回复
set global innodb_adaptive_hash_index=0;
tianfang 2018-10-10
  • 打赏
  • 举报
回复
系统环境是什么?CPU,内存,操作系统,mysql版本

67,516

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧