在程序执行过程中mysql数据库会出现处理缓慢现象(近似周期性)
我的应用程序在实际环境中会出现近似周期性的 卡住 现象时间大概在一两秒,望各位有类似经历的朋友赐教!
程序核心代码如下:
index.jsp
select * from task where flag_send='1' and flag_submit='xxxx';
根据这条sql展示出一些图片信息,根据这些信息得出一个评价,也就是把评价提交到score_do.jsp页面,完成后在返回到这个页面
score_do.jsp
insert into tablexx (......) values (........);
insert into tableyy (......) values (.......);
update task set flag_send='0',flag_submit='00' where arg='yyyyy';
两个页面与数据库交互的就这四句sql比较简单,但是数据库会出现卡滞的现象。(数据库中没有其他定时任务)
环境:
JDK 5.0
tomcat5.5
mysql 5
IBM System 3650
windows server 2003
内存:2G