2014年6月26日
摘要: Regular http:client 发出请求到serverserver 计算 responseserver 响应 response 给 clientPolling:A client requests 发出常规请求 (同上).client每隔n个时间发出request给server (e.g. 0... 阅读全文
posted @ 2014-06-26 10:51 leeying 阅读(434) 评论(0) 推荐(0)
  2014年6月19日
摘要: 该文章转自:聂永的博客(http://www.blogjava.net/yongboy/archive/2014/02/15/409893.html)网络故障在任何网络环境下,都会出现一方连接失败,比如离开公司大门那一刻没有了WIFI信号。但持续连接的另一端-服务器可能不能立即知道对方已断开。类似网... 阅读全文
posted @ 2014-06-19 10:02 leeying 阅读(4327) 评论(0) 推荐(0)
  2014年6月17日
摘要: 客户端/服务器的发布消息行为,与PUBLISH相关的消息类型:PUBLISH客户端发布消息经由服务器分发到所有对应的订阅者那里。一个订阅者可以订阅若干个主题(Topic name),但一个PUBLISH消息只能拥有一个主题。消息架构一览:Description76543210Fixed header... 阅读全文
posted @ 2014-06-17 17:37 leeying 阅读(4644) 评论(0) 推荐(0)
  2014年6月16日
摘要: 最近因为工作需要,需要对推送消息了解,因此对MQTT进行了整理,这里更多的是对MQTT英文版的翻译和理解。MQTT(Message Queue Telemetry Transport),遥测传输协议,提供订阅/发布模式,更为简约、轻量,易于使用,针对受限环境(带宽低、网络延迟高、网络通信不稳定),可... 阅读全文
posted @ 2014-06-16 15:43 leeying 阅读(22229) 评论(1) 推荐(2)
  2014年6月11日
摘要: 一个小业务,流量并不大,功能也很简单,spring framework+mybatis+quartz,一启动就看到gc的频次和full gc的频次非常高:4.202: [Full GC 4.202: [Tenured: 0K->6653K(349568K), 0.1948910 secs] 1397... 阅读全文
posted @ 2014-06-11 17:38 leeying 阅读(6027) 评论(0) 推荐(0)
摘要: web应用借助于结构:spring mvc + quartz结构,部署到tomcat容器时,shutdown时的error信息:appears to have started a thread named [schedulerFactoryBean_Worker-1] but has failed ... 阅读全文
posted @ 2014-06-11 15:40 leeying 阅读(7650) 评论(0) 推荐(0)
摘要: 使用的是:+PrintGCDetails -XX:+PrintGCTimeStamps输出的日志格式: [Times: user=0.03 sys=0.00, real=0.01 secs]363.375: [GC 363.375: [ParNew: 39424K->3249K(39424K), 0... 阅读全文
posted @ 2014-06-11 11:28 leeying 阅读(735) 评论(0) 推荐(0)
  2014年6月10日
摘要: The JAVA_OPTS environment variable can be used to specify additional arguments to the JVM JBoss will be run in. These can be set as regular environmen... 阅读全文
posted @ 2014-06-10 17:19 leeying 阅读(4247) 评论(0) 推荐(0)
  2014年6月9日
摘要: 使用threadpoolExecutor,主要是任务的提交的执行和获取结果。提交任务的方法有:1、submit2、execute3、queue的add其中1和2的使用必须是threadpoolExecutor的实例,直接提交。两种做法:1、暴露threadpool实例,2、封装threadpool,... 阅读全文
posted @ 2014-06-09 16:15 leeying 阅读(1070) 评论(0) 推荐(0)
摘要: 获取资源timeout:异常信息如下:Caused by: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.[Cause: com.mchange.v2.resourcepool... 阅读全文
posted @ 2014-06-09 09:55 leeying 阅读(4192) 评论(0) 推荐(0)