项目部署在window server 2008下,后台服务器要监控一些IP设备的在线状态,找不到好的方法,虽然用window的cmd可以实现,但发现那个很慢,实时性不高,思前想后,迫于无奈,用c++写了一个能够发送icmp数据包的dll,再通过java的jni调,实时性还是挺高的! 一般不建议使用jni最终是以另外一个进程的形式通过socket与java通讯完成ping的功能!
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001051s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.065784s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001039s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001187s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.001011s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003091s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000910s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003735s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.015614s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001258s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 53788 [ RunTime:0.015433s ]